gi-webkit2-4.0.19: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Structs.JavascriptResult

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype JavascriptResult Source #

Memory-managed wrapper type.

Methods

getGlobalContext

javascriptResultGetGlobalContext Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> JavascriptResult

jsResult: a JavascriptResult

-> m GlobalContext

Returns: the <function>JSGlobalContextRef</function> for the JavascriptResult

Get the global Javascript context that should be used with the <function>JSValueRef</function> returned by javascriptResultGetValue.

getValue

javascriptResultGetValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> JavascriptResult

jsResult: a JavascriptResult

-> m Value

Returns: the <function>JSValueRef</function> of the JavascriptResult

Get the value of jsResult. You should use the <function>JSGlobalContextRef</function> returned by javascriptResultGetGlobalContext to use the <function>JSValueRef</function>.

ref

javascriptResultRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> JavascriptResult

jsResult: a JavascriptResult

-> m JavascriptResult

Returns: The passed in JavascriptResult

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

jsResult: a 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.