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 |
A web page frame.
Each WebKitWebPage
has at least one main frame, and can have any number
of subframes.
Since: 2.26
Synopsis
- newtype Frame = Frame (ManagedPtr Frame)
- class (GObject o, IsDescendantOf Frame o) => IsFrame o
- toFrame :: (MonadIO m, IsFrame o) => o -> m Frame
- frameGetId :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Word64
- frameGetJsContext :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Context
- frameGetJsContextForScriptWorld :: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) => a -> b -> m Context
- frameGetJsValueForDomObject :: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b) => a -> b -> m Value
- frameGetJsValueForDomObjectInScriptWorld :: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b, IsScriptWorld c) => a -> b -> c -> m Value
- frameGetUri :: (HasCallStack, MonadIO m, IsFrame a) => a -> m (Maybe Text)
- frameIsMainFrame :: (HasCallStack, MonadIO m, IsFrame a) => a -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq Frame Source # | |
GObject Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame | |
ManagedPtrNewtype Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame toManagedPtr :: Frame -> ManagedPtr Frame | |
TypedObject Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame | |
HasParentTypes Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame | |
IsGValue (Maybe Frame) Source # | Convert |
Defined in GI.WebKit2WebExtension.Objects.Frame gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Frame -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Frame) | |
type ParentTypes Frame Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame type ParentTypes Frame = '[Object] |
class (GObject o, IsDescendantOf Frame o) => IsFrame o Source #
Instances
(GObject o, IsDescendantOf Frame o) => IsFrame o Source # | |
Defined in GI.WebKit2WebExtension.Objects.Frame |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, isMainFrame, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getId, getJsContext, getJsContextForScriptWorld, getJsValueForDomObject, getJsValueForDomObjectInScriptWorld, getProperty, getQdata, getUri.
Setters
getId
:: (HasCallStack, MonadIO m, IsFrame a) | |
=> a |
|
-> m Word64 | Returns: the identifier of |
Gets the process-unique identifier of this Frame
. No other
frame in the same web process will have the same ID; however, frames
in other web processes may.
Since: 2.26
getJsContext
:: (HasCallStack, MonadIO m, IsFrame a) | |
=> a |
|
-> m Context | Returns: the |
Get the JavaScript execution context of frame
. Use this function to bridge
between the WebKit and JavaScriptCore APIs.
Since: 2.22
getJsContextForScriptWorld
frameGetJsContextForScriptWorld Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsScriptWorld b) | |
=> a |
|
-> b |
|
-> m Context | Returns: the |
Get the JavaScript execution context of frame
for the given ScriptWorld
.
Since: 2.22
getJsValueForDomObject
frameGetJsValueForDomObject Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b) | |
=> a |
|
-> b |
|
-> m Value | Returns: the |
Get a Value
referencing the given DOM object. The value is created in the JavaScript execution
context of frame
.
Since: 2.22
getJsValueForDomObjectInScriptWorld
frameGetJsValueForDomObjectInScriptWorld Source #
:: (HasCallStack, MonadIO m, IsFrame a, IsDOMObject b, IsScriptWorld c) | |
=> a |
|
-> b |
|
-> c |
|
-> m Value | Returns: the |
Get a Value
referencing the given DOM object. The value is created in the JavaScript execution
context of frame
for the given ScriptWorld
.
Since: 2.22
getUri
:: (HasCallStack, MonadIO m, IsFrame a) | |
=> a |
|
-> m (Maybe Text) | Returns: the current active URI of |
Gets the current active URI of frame
.
Since: 2.2