| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit2WebExtension.Objects.WebEditor
Description
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
- noWebEditor :: Maybe WebEditor
- webEditorGetPage :: (HasCallStack, MonadIO m, IsWebEditor a) => a -> m WebPage
- type C_WebEditorSelectionChangedCallback = Ptr () -> Ptr () -> IO ()
- type WebEditorSelectionChangedCallback = IO ()
- afterWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> WebEditorSelectionChangedCallback -> m SignalHandlerId
- genClosure_WebEditorSelectionChanged :: MonadIO m => WebEditorSelectionChangedCallback -> m (GClosure C_WebEditorSelectionChangedCallback)
- mk_WebEditorSelectionChangedCallback :: C_WebEditorSelectionChangedCallback -> IO (FunPtr C_WebEditorSelectionChangedCallback)
- noWebEditorSelectionChangedCallback :: Maybe WebEditorSelectionChangedCallback
- onWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> WebEditorSelectionChangedCallback -> m SignalHandlerId
- wrap_WebEditorSelectionChangedCallback :: WebEditorSelectionChangedCallback -> C_WebEditorSelectionChangedCallback
Exported types
Memory-managed wrapper type.
Constructors
| WebEditor (ManagedPtr WebEditor) |
Instances
| Eq WebEditor Source # | |
| IsGValue WebEditor Source # | Convert |
| GObject WebEditor Source # | |
Defined in GI.WebKit2WebExtension.Objects.WebEditor Methods gobjectType :: IO GType # | |
| HasParentTypes WebEditor Source # | |
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
Overloaded methods
getPage
Arguments
| :: (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 C_WebEditorSelectionChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
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 -> 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
genClosure_WebEditorSelectionChanged :: MonadIO m => WebEditorSelectionChangedCallback -> m (GClosure C_WebEditorSelectionChangedCallback) Source #
Wrap the callback into a GClosure.
mk_WebEditorSelectionChangedCallback :: C_WebEditorSelectionChangedCallback -> IO (FunPtr C_WebEditorSelectionChangedCallback) Source #
Generate a function pointer callable from C code, from a C_WebEditorSelectionChangedCallback.
noWebEditorSelectionChangedCallback :: Maybe WebEditorSelectionChangedCallback Source #
A convenience synonym for .Nothing :: Maybe WebEditorSelectionChangedCallback
onWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => 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