gi-webkit2-4.0.11: 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

 

Synopsis

Exported types

newtype JavascriptResult Source #

Instances

BoxedObject JavascriptResult Source # 
((~) * info (ResolveJavascriptResultMethod t JavascriptResult), MethodInfo * info JavascriptResult p) => IsLabel t (JavascriptResult -> p) Source # 
((~) * info (ResolveJavascriptResultMethod t JavascriptResult), MethodInfo * info JavascriptResult p) => IsLabelProxy t (JavascriptResult -> p) Source # 
HasAttributeList * JavascriptResult Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * JavascriptResultUnrefMethodInfo JavascriptResult signature Source # 
((~) * signature (m JavascriptResult), MonadIO m) => MethodInfo * JavascriptResultRefMethodInfo JavascriptResult signature Source # 
((~) * signature (m Value), MonadIO m) => MethodInfo * JavascriptResultGetValueMethodInfo JavascriptResult signature Source # 
((~) * signature (m GlobalContext), MonadIO m) => MethodInfo * JavascriptResultGetGlobalContextMethodInfo JavascriptResult signature Source # 
type AttributeList JavascriptResult Source # 

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.