Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype JavascriptResult = JavascriptResult (ManagedPtr JavascriptResult)
- noJavascriptResult :: Maybe 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.
Instances
BoxedObject JavascriptResult Source # | |
Defined in GI.WebKit2.Structs.JavascriptResult boxedType :: JavascriptResult -> IO GType # |
noJavascriptResult :: Maybe JavascriptResult Source #
A convenience alias for Nothing
:: Maybe
JavascriptResult
.
Methods
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.