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 |
Result of JavaScript evaluation in a web view.
Synopsis
- newtype JavascriptResult = JavascriptResult (ManagedPtr JavascriptResult)
- javascriptResultGetJsValue :: (HasCallStack, MonadIO m) => JavascriptResult -> m Value
- javascriptResultRef :: (HasCallStack, MonadIO m) => JavascriptResult -> m JavascriptResult
- javascriptResultUnref :: (HasCallStack, MonadIO m) => JavascriptResult -> m ()
Exported types
newtype JavascriptResult Source #
Memory-managed wrapper type.
JavascriptResult (ManagedPtr JavascriptResult) |
Instances
Eq JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult (==) :: JavascriptResult -> JavascriptResult -> Bool # (/=) :: JavascriptResult -> JavascriptResult -> Bool # | |
GBoxed JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult | |
ManagedPtrNewtype JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult toManagedPtr :: JavascriptResult -> ManagedPtr JavascriptResult | |
TypedObject JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult | |
HasParentTypes JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult | |
IsGValue (Maybe JavascriptResult) Source # | Convert |
Defined in GI.WebKit2.Structs.JavascriptResult gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe JavascriptResult -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe JavascriptResult) | |
type ParentTypes JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult |
Methods
Click to display all available methods, including inherited ones
getJsValue
javascriptResultGetJsValue Source #
:: (HasCallStack, MonadIO m) | |
=> JavascriptResult |
|
-> m Value | Returns: the |
Get the Value
of jsResult
.
Since: 2.22
ref
:: (HasCallStack, MonadIO m) | |
=> JavascriptResult |
|
-> m JavascriptResult | Returns: The passed in |
Atomically increments the reference count of jsResult
by one.
This function is MT-safe and may be called from any thread.
unref
javascriptResultUnref Source #
:: (HasCallStack, MonadIO m) | |
=> JavascriptResult |
|
-> m () |
Atomically decrements the reference count of jsResult
by one.
If the reference count drops to 0,
all memory allocated by the JavascriptResult
is
released. This function is MT-safe and may be called from any
thread.