gi-webkit2webextension-4.0.28: WebKit2-WebExtension bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.WebEditor

Description

Access to editing capabilities of a WebPage.

The WebKitWebEditor provides access to various editing capabilities of a WebPage such as a possibility to react to the current selection in WebPage.

Since: 2.10

Synopsis

Exported types

newtype WebEditor Source #

Memory-managed wrapper type.

Constructors

WebEditor (ManagedPtr WebEditor) 

Instances

Instances details
Eq WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

GObject WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

ManagedPtrNewtype WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

Methods

toManagedPtr :: WebEditor -> ManagedPtr WebEditor

TypedObject WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

Methods

glibType :: IO GType

HasParentTypes WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

IsGValue (Maybe WebEditor) Source #

Convert WebEditor to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe WebEditor -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe WebEditor)

type ParentTypes WebEditor Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

type ParentTypes WebEditor = '[Object]

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

Instances details
(GObject o, IsDescendantOf WebEditor o) => IsWebEditor o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebEditor

toWebEditor :: (MonadIO m, IsWebEditor o) => o -> m WebEditor Source #

Cast to WebEditor, for types for which this is known to be safe. For general casts, use castTo.

Methods

getPage

webEditorGetPage Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebEditor a) 
=> a

editor: a WebEditor

-> m WebPage

Returns: the associated WebPage

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