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

GI.GObject.Structs.EnumValue

Description

A structure which contains a single enum value, its name, and its nickname.

Synopsis

Exported types

newtype EnumValue Source #

Memory-managed wrapper type.

Instances

Instances details
Eq EnumValue Source # 
Instance details

Defined in GI.GObject.Structs.EnumValue

CallocPtr EnumValue Source # 
Instance details

Defined in GI.GObject.Structs.EnumValue

BoxedPtr EnumValue Source # 
Instance details

Defined in GI.GObject.Structs.EnumValue

ManagedPtrNewtype EnumValue Source # 
Instance details

Defined in GI.GObject.Structs.EnumValue

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

Defined in GI.GObject.Structs.EnumValue

Methods

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

newZeroEnumValue :: MonadIO m => m EnumValue Source #

Construct a EnumValue struct initialized to zero.

Methods

Overloaded methods

Properties

value

the enum value

getEnumValueValue :: MonadIO m => EnumValue -> m Int32 Source #

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

get enumValue #value

setEnumValueValue :: MonadIO m => EnumValue -> Int32 -> m () Source #

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

set enumValue [ #value := value ]

valueName

the name of the value

clearEnumValueValueName :: MonadIO m => EnumValue -> m () Source #

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

clear #valueName

getEnumValueValueName :: MonadIO m => EnumValue -> m (Maybe Text) Source #

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

get enumValue #valueName

setEnumValueValueName :: MonadIO m => EnumValue -> CString -> m () Source #

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

set enumValue [ #valueName := value ]

valueNick

the nickname of the value

clearEnumValueValueNick :: MonadIO m => EnumValue -> m () Source #

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

clear #valueNick

getEnumValueValueNick :: MonadIO m => EnumValue -> m (Maybe Text) Source #

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

get enumValue #valueNick

setEnumValueValueNick :: MonadIO m => EnumValue -> CString -> m () Source #

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

set enumValue [ #valueNick := value ]