gi-webkit-6.0.2: WebKit bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit.Structs.ApplicationInfo

Description

Information about an application running in automation mode.

Synopsis

Exported types

newtype ApplicationInfo Source #

Memory-managed wrapper type.

Constructors

ApplicationInfo (ManagedPtr ApplicationInfo) 

Instances

Instances details
Eq ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

GBoxed ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

ManagedPtrNewtype ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

TypedObject ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

Methods

glibType :: IO GType

HasParentTypes ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

IsGValue (Maybe ApplicationInfo) Source #

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

Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes ApplicationInfo Source # 
Instance details

Defined in GI.WebKit.Structs.ApplicationInfo

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

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getName, getVersion.

Setters

setName, setVersion.

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 #

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