gi-javascriptcore-6.0.4: JavaScriptCore bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.JavaScriptCore.Functions

Description

 
Synopsis

Methods

getMajorVersion

getMajorVersion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Word32

Returns: the major version number of the JavaScriptCore library

Returns the major version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 1.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the MAJOR_VERSION macro, which represents the major version of the JavaScriptCore headers you have included when compiling your code.

getMicroVersion

getMicroVersion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Word32

Returns: the micro version number of the JavaScriptCore library

Returns the micro version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 3.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the MICRO_VERSION macro, which represents the micro version of the JavaScriptCore headers you have included when compiling your code.

getMinorVersion

getMinorVersion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Word32

Returns: the minor version number of the JavaScriptCore library

Returns the minor version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 8.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the MINOR_VERSION macro, which represents the minor version of the JavaScriptCore headers you have included when compiling your code.

optionsForeach

optionsForeach Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> OptionsFunc

function: a OptionsFunc callback

-> m () 

Iterates all available options calling function for each one. Iteration can stop early if function returns False.

Since: 2.24

optionsGetBoolean

optionsGetBoolean Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Bool)

Returns: True if value has been set or False if the option doesn't exist

Get option as a Bool value.

Since: 2.24

optionsGetDouble

optionsGetDouble Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Double)

Returns: True if value has been set or False if the option doesn't exist

Get option as a gdouble value.

Since: 2.24

optionsGetInt

optionsGetInt Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Int32)

Returns: True if value has been set or False if the option doesn't exist

Get option as a gint value.

Since: 2.24

optionsGetOptionGroup

optionsGetOptionGroup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m OptionGroup

Returns: a OptionGroup for the JSCOptions

Create a OptionGroup to handle JSCOptions as command line arguments. The options will be exposed as command line arguments with the form <emphasis>--jsc-&lt;option&gt;=&lt;value&gt;</emphasis>. Each entry in the returned OptionGroup is configured to apply the corresponding option during command line parsing. Applications only need to pass the returned group to optionContextAddGroup, and the rest will be taken care for automatically.

Since: 2.24

optionsGetRangeString

optionsGetRangeString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Text)

Returns: True if value has been set or False if the option doesn't exist

Get option as a range string. The string must be in the format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are guint values. Values between low and high (both included) will be considered in the range, unless <emphasis>!</emphasis> is used to invert the range.

Since: 2.24

optionsGetSize

optionsGetSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, CSize)

Returns: True if value has been set or False if the option doesn't exist

Get option as a gsize value.

Since: 2.24

optionsGetString

optionsGetString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Text)

Returns: True if value has been set or False if the option doesn't exist

Get option as a string.

Since: 2.24

optionsGetUint

optionsGetUint Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> m (Bool, Word32)

Returns: True if value has been set or False if the option doesn't exist

Get option as a guint value.

Since: 2.24

optionsSetBoolean

optionsSetBoolean Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Bool

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a Bool value.

Since: 2.24

optionsSetDouble

optionsSetDouble Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Double

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a gdouble value.

Since: 2.24

optionsSetInt

optionsSetInt Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Int32

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a gint value.

Since: 2.24

optionsSetRangeString

optionsSetRangeString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Text

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a range string. The string must be in the format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are guint values. Values between low and high (both included) will be considered in the range, unless <emphasis>!</emphasis> is used to invert the range.

Since: 2.24

optionsSetSize

optionsSetSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> CSize

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a gsize value.

Since: 2.24

optionsSetString

optionsSetString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Text

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a string.

Since: 2.24

optionsSetUint

optionsSetUint Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

option: the option identifier

-> Word32

value: the value to set

-> m Bool

Returns: True if option was correctly set or False otherwise.

Set option as a guint value.

Since: 2.24