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 |
No description available in the introspection data.
Synopsis
- newtype WebEditor = WebEditor (ManagedPtr WebEditor)
- class (GObject o, IsDescendantOf WebEditor o) => IsWebEditor o
- toWebEditor :: (MonadIO m, IsWebEditor o) => o -> m WebEditor
- webEditorGetPage :: (HasCallStack, MonadIO m, IsWebEditor a) => a -> m WebPage
- type WebEditorSelectionChangedCallback = IO ()
- afterWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> ((?self :: a) => WebEditorSelectionChangedCallback) -> m SignalHandlerId
- onWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> ((?self :: a) => WebEditorSelectionChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq WebEditor Source # | |
GObject WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor | |
ManagedPtrNewtype WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor | |
TypedObject WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor | |
HasParentTypes WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor | |
IsGValue (Maybe WebEditor) Source # | Convert |
Defined in GI.WebKit2WebExtension.Objects.WebEditor | |
type ParentTypes WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor |
class (GObject o, IsDescendantOf WebEditor o) => IsWebEditor o Source #
Type class for types which can be safely cast to WebEditor
, for instance with toWebEditor
.
Instances
(GObject o, IsDescendantOf WebEditor o) => IsWebEditor o Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor |
toWebEditor :: (MonadIO m, IsWebEditor o) => o -> m WebEditor Source #
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, getPage, getProperty, getQdata.
Setters
getPage
:: (HasCallStack, MonadIO m, IsWebEditor a) | |
=> a |
|
-> m WebPage | Returns: the associated |
Gets the WebPage
that is associated with the WebEditor
that can
be used to access the DOMDocument
currently loaded into it.
Since: 2.10
Signals
selectionChanged
type WebEditorSelectionChangedCallback = IO () Source #
This signal is emitted for every selection change inside a WebPage
as well as for every caret position change as the caret is a collapsed
selection.
Since: 2.10
afterWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> ((?self :: a) => WebEditorSelectionChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the selectionChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
webEditor #selectionChanged 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.
onWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> ((?self :: a) => WebEditorSelectionChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the selectionChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
webEditor #selectionChanged callback