gi-gobject-2.0.26: GObject bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GObject.Structs.Parameter

Description

The GParameter struct is an auxiliary structure used to hand parameter name/value pairs to objectNewv.

Synopsis

Exported types

newtype Parameter Source #

Memory-managed wrapper type.

Constructors

Parameter (ManagedPtr Parameter) 

Instances

Instances details
Eq Parameter Source # 
Instance details

Defined in GI.GObject.Structs.Parameter

BoxedPtr Parameter Source # 
Instance details

Defined in GI.GObject.Structs.Parameter

CallocPtr Parameter Source # 
Instance details

Defined in GI.GObject.Structs.Parameter

ManagedPtrNewtype Parameter Source # 
Instance details

Defined in GI.GObject.Structs.Parameter

Methods

toManagedPtr :: Parameter -> ManagedPtr Parameter

tag ~ 'AttrSet => Constructible Parameter tag Source # 
Instance details

Defined in GI.GObject.Structs.Parameter

Methods

new :: MonadIO m => (ManagedPtr Parameter -> Parameter) -> [AttrOp Parameter tag] -> m Parameter

newZeroParameter :: MonadIO m => m Parameter Source #

Construct a Parameter struct initialized to zero.

Methods

Properties

name

the parameter name

clearParameterName :: MonadIO m => Parameter -> m () Source #

Set the value of the “name” field to Nothing. When overloading is enabled, this is equivalent to

clear #name

getParameterName :: MonadIO m => Parameter -> m (Maybe Text) Source #

Get the value of the “name” field. When overloading is enabled, this is equivalent to

get parameter #name

setParameterName :: MonadIO m => Parameter -> CString -> m () Source #

Set the value of the “name” field. When overloading is enabled, this is equivalent to

set parameter [ #name := value ]

value

the parameter value

clearParameterValue :: MonadIO m => Parameter -> m () Source #

Set the value of the “value” field to Nothing. When overloading is enabled, this is equivalent to

clear #value

getParameterValue :: MonadIO m => Parameter -> m (Maybe GValue) Source #

Get the value of the “value” field. When overloading is enabled, this is equivalent to

get parameter #value

setParameterValue :: MonadIO m => Parameter -> Ptr GValue -> m () Source #

Set the value of the “value” field. When overloading is enabled, this is equivalent to

set parameter [ #value := value ]