gi-webkit2-4.0.21: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Structs.ApplicationInfo

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ApplicationInfo Source #

Memory-managed wrapper type.

Methods

getName

applicationInfoGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> m Text

Returns: the application name

Get the name of the application. If applicationInfoSetName hasn't been called with a valid name, this returns getPrgname.

Since: 2.18

getVersion

applicationInfoGetVersion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> m (Word64, Word64, Word64) 

Get the application version previously set with applicationInfoSetVersion.

Since: 2.18

new

applicationInfoNew Source #

Arguments

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

Returns: the newly created ApplicationInfo.

Creates a new ApplicationInfo

Since: 2.18

ref

applicationInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> m ApplicationInfo

Returns: The passed in ApplicationInfo

Atomically increments the reference count of info by one. This function is MT-safe and may be called from any thread.

Since: 2.18

setName

applicationInfoSetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> Text

name: the application name

-> m () 

Set the name of the application. If not provided, or Nothing is passed, getPrgname will be used.

Since: 2.18

setVersion

applicationInfoSetVersion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> Word64

major: the major version number

-> Word64

minor: the minor version number

-> Word64

micro: the micro version number

-> m () 

Set the application version. If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.

Since: 2.18

unref

applicationInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ApplicationInfo

info: a ApplicationInfo

-> m () 

Atomically decrements the reference count of info by one. If the reference count drops to 0, all memory allocated by the ApplicationInfo is released. This function is MT-safe and may be called from any thread.

Since: 2.18