Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype JavascriptResult = JavascriptResult (ManagedPtr JavascriptResult)
- noJavascriptResult :: Maybe JavascriptResult
- javascriptResultGetGlobalContext :: (HasCallStack, MonadIO m) => JavascriptResult -> m GlobalContext
- javascriptResultGetValue :: (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
getGlobalContext
javascriptResultGetGlobalContext Source #
:: (HasCallStack, MonadIO m) | |
=> JavascriptResult |
|
-> m GlobalContext | Returns: the <function>JSGlobalContextRef</function> for the |
Get the global Javascript context that should be used with the
<function>JSValueRef</function> returned by javascriptResultGetValue
.
getValue
javascriptResultGetValue Source #
:: (HasCallStack, MonadIO m) | |
=> JavascriptResult |
|
-> m Value | Returns: the <function>JSValueRef</function> of the |
Get the value of jsResult
. You should use the <function>JSGlobalContextRef</function>
returned by javascriptResultGetGlobalContext
to use the <function>JSValueRef</function>.
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.