gi-webkit2-4.0.30: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Structs.JavascriptResult

Description

Result of JavaScript evaluation in a web view.

Synopsis

Exported types

newtype JavascriptResult Source #

Memory-managed wrapper type.

Constructors

JavascriptResult (ManagedPtr JavascriptResult) 

Instances

Instances details
Eq JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

GBoxed JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

ManagedPtrNewtype JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

TypedObject JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

Methods

glibType :: IO GType

HasParentTypes JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

IsGValue (Maybe JavascriptResult) Source #

Convert JavascriptResult to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe JavascriptResult -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe JavascriptResult)

type ParentTypes JavascriptResult Source # 
Instance details

Defined in GI.WebKit2.Structs.JavascriptResult

type ParentTypes JavascriptResult = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getJsValue.

Setters

None.

getJsValue

javascriptResultGetJsValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> JavascriptResult

jsResult: a JavascriptResult

-> m Value

Returns: the Value of the JavascriptResult

Get the Value of jsResult.

Since: 2.22

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.