Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Form manager of a WebPage
in a ScriptWorld
Since: 2.40
Synopsis
- newtype WebFormManager = WebFormManager (ManagedPtr WebFormManager)
- class (GObject o, IsDescendantOf WebFormManager o) => IsWebFormManager o
- toWebFormManager :: (MonadIO m, IsWebFormManager o) => o -> m WebFormManager
- webFormManagerInputElementAutoFill :: (HasCallStack, MonadIO m, IsValue a) => a -> Text -> m ()
- webFormManagerInputElementIsAutoFilled :: (HasCallStack, MonadIO m, IsValue a) => a -> m Bool
- webFormManagerInputElementIsUserEdited :: (HasCallStack, MonadIO m, IsValue a) => a -> m Bool
- type WebFormManagerFormControlsAssociatedCallback = Frame -> [Value] -> IO ()
- afterWebFormManagerFormControlsAssociated :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerFormControlsAssociatedCallback) -> m SignalHandlerId
- onWebFormManagerFormControlsAssociated :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerFormControlsAssociatedCallback) -> m SignalHandlerId
- type WebFormManagerWillSendSubmitEventCallback = Value -> Frame -> Frame -> IO ()
- afterWebFormManagerWillSendSubmitEvent :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSendSubmitEventCallback) -> m SignalHandlerId
- onWebFormManagerWillSendSubmitEvent :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSendSubmitEventCallback) -> m SignalHandlerId
- type WebFormManagerWillSubmitFormCallback = Value -> Frame -> Frame -> IO ()
- afterWebFormManagerWillSubmitForm :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSubmitFormCallback) -> m SignalHandlerId
- onWebFormManagerWillSubmitForm :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSubmitFormCallback) -> m SignalHandlerId
Exported types
newtype WebFormManager Source #
Memory-managed wrapper type.
WebFormManager (ManagedPtr WebFormManager) |
Instances
Eq WebFormManager Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebFormManager (==) :: WebFormManager -> WebFormManager -> Bool # (/=) :: WebFormManager -> WebFormManager -> Bool # | |
GObject WebFormManager Source # | |
ManagedPtrNewtype WebFormManager Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebFormManager toManagedPtr :: WebFormManager -> ManagedPtr WebFormManager | |
TypedObject WebFormManager Source # | |
HasParentTypes WebFormManager Source # | |
IsGValue (Maybe WebFormManager) Source # | Convert |
Defined in GI.WebKit2WebExtension.Objects.WebFormManager gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe WebFormManager -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe WebFormManager) | |
type ParentTypes WebFormManager Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebFormManager type ParentTypes WebFormManager = '[Object] |
class (GObject o, IsDescendantOf WebFormManager o) => IsWebFormManager o Source #
Type class for types which can be safely cast to WebFormManager
, for instance with toWebFormManager
.
Instances
(GObject o, IsDescendantOf WebFormManager o) => IsWebFormManager o Source # | |
toWebFormManager :: (MonadIO m, IsWebFormManager o) => o -> m WebFormManager Source #
Cast to WebFormManager
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
inputElementAutoFill
webFormManagerInputElementAutoFill Source #
:: (HasCallStack, MonadIO m, IsValue a) | |
=> a |
|
-> Text |
|
-> m () |
Set the value of an HTML input element as if it had been edited by
the user, triggering a change event, and set it as filled automatically.
If element
is not an HTML input element this function does nothing.
Since: 2.40
inputElementIsAutoFilled
webFormManagerInputElementIsAutoFilled Source #
:: (HasCallStack, MonadIO m, IsValue a) | |
=> a |
|
-> m Bool | Returns: |
Get whether element
is an HTML input element that has been filled automatically.
Since: 2.40
inputElementIsUserEdited
webFormManagerInputElementIsUserEdited Source #
:: (HasCallStack, MonadIO m, IsValue a) | |
=> a |
|
-> m Bool | Returns: |
Get whether element
is an HTML text input element that has been edited by a user action.
Since: 2.40
Signals
formControlsAssociated
type WebFormManagerFormControlsAssociatedCallback Source #
= Frame |
|
-> [Value] |
|
-> IO () |
Emitted after form elements (or form associated elements) are associated to frame
.
This is useful to implement form auto filling for web pages where form fields are added
dynamically. This signal might be emitted multiple times for the same frame.
Note that this signal could be also emitted when form controls are moved between forms. In
that case, the elements
array carries the list of those elements which have moved.
Clients should take a reference to the members of the elements
array if it is desired to
keep them alive after the signal handler returns.
Since: 2.40
afterWebFormManagerFormControlsAssociated :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerFormControlsAssociatedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the formControlsAssociated signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
webFormManager #formControlsAssociated callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onWebFormManagerFormControlsAssociated :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerFormControlsAssociatedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the formControlsAssociated signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
webFormManager #formControlsAssociated callback
willSendSubmitEvent
type WebFormManagerWillSendSubmitEventCallback Source #
= Value |
|
-> Frame |
|
-> Frame |
|
-> IO () |
This signal is emitted when the DOM submit event is about to be fired for form
.
JavaScript code may rely on the submit event to detect that the user has clicked
on a submit button, and to possibly cancel the form submission before
WebFormManager::willSubmitForm signal is emitted.
However, beware that, for historical reasons, the submit event is not emitted at
all if the form submission is triggered by JavaScript. For these reasons,
this signal may not be used to reliably detect whether a form will be submitted.
Instead, use it to detect if a user has clicked on a form's submit button even if
JavaScript later cancels the form submission, or to read the values of the form's
fields even if JavaScript later clears certain fields before submitting. This may
be needed, for example, to implement a robust browser password manager, as some
misguided websites may use such techniques to attempt to thwart password managers.
Since: 2.40
afterWebFormManagerWillSendSubmitEvent :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSendSubmitEventCallback) -> m SignalHandlerId Source #
Connect a signal handler for the willSendSubmitEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
webFormManager #willSendSubmitEvent callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onWebFormManagerWillSendSubmitEvent :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSendSubmitEventCallback) -> m SignalHandlerId Source #
Connect a signal handler for the willSendSubmitEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
webFormManager #willSendSubmitEvent callback
willSubmitForm
type WebFormManagerWillSubmitFormCallback Source #
= Value |
|
-> Frame |
|
-> Frame |
|
-> IO () |
This signal is emitted when form
will imminently be submitted. It can no longer
be cancelled. This event always occurs immediately before a form is submitted to
its target, so use this event to reliably detect when a form is submitted. This
signal is emitted after WebFormManager::willSendSubmitEvent if that
signal is emitted.
Since: 2.40
afterWebFormManagerWillSubmitForm :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSubmitFormCallback) -> m SignalHandlerId Source #
Connect a signal handler for the willSubmitForm signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
webFormManager #willSubmitForm callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onWebFormManagerWillSubmitForm :: (IsWebFormManager a, MonadIO m) => a -> ((?self :: a) => WebFormManagerWillSubmitFormCallback) -> m SignalHandlerId Source #
Connect a signal handler for the willSubmitForm signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
webFormManager #willSubmitForm callback