| 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 |
GI.WebKit2.Structs.JavascriptResult
Contents
Description
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.
Constructors
| JavascriptResult (ManagedPtr JavascriptResult) |
Instances
Methods
Click to display all available methods, including inherited ones
getJsValue
javascriptResultGetJsValue Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => JavascriptResult |
|
| -> m Value | Returns: the |
Get the Value of jsResult.
Since: 2.22
ref
Arguments
| :: (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 #
Arguments
| :: (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.