gi-webkit2webextension-4.0.23: WebKit2-WebExtension bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.WebEditor

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype WebEditor Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf WebEditor o) => IsWebEditor o Source #

Type class for types which can be safely cast to WebEditor, for instance with toWebEditor.

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.

noWebEditor :: Maybe WebEditor Source #

A convenience alias for Nothing :: Maybe WebEditor.

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 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 “selection-changed” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after webEditor #selectionChanged callback

onWebEditorSelectionChanged :: (IsWebEditor a, MonadIO m) => a -> WebEditorSelectionChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the “selection-changed” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on webEditor #selectionChanged callback