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.FlagsValue

Description

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

Synopsis

Exported types

newtype FlagsValue Source #

Memory-managed wrapper type.

Constructors

FlagsValue (ManagedPtr FlagsValue) 

Instances

Instances details
Eq FlagsValue Source # 
Instance details

Defined in GI.GObject.Structs.FlagsValue

BoxedPtr FlagsValue Source # 
Instance details

Defined in GI.GObject.Structs.FlagsValue

CallocPtr FlagsValue Source # 
Instance details

Defined in GI.GObject.Structs.FlagsValue

ManagedPtrNewtype FlagsValue Source # 
Instance details

Defined in GI.GObject.Structs.FlagsValue

Methods

toManagedPtr :: FlagsValue -> ManagedPtr FlagsValue

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

Defined in GI.GObject.Structs.FlagsValue

Methods

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

newZeroFlagsValue :: MonadIO m => m FlagsValue Source #

Construct a FlagsValue struct initialized to zero.

Methods

Properties

value

the flags value

getFlagsValueValue :: MonadIO m => FlagsValue -> m Word32 Source #

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

get flagsValue #value

setFlagsValueValue :: MonadIO m => FlagsValue -> Word32 -> m () Source #

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

set flagsValue [ #value := value ]

valueName

the name of the value

clearFlagsValueValueName :: MonadIO m => FlagsValue -> m () Source #

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

clear #valueName

getFlagsValueValueName :: MonadIO m => FlagsValue -> m (Maybe Text) Source #

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

get flagsValue #valueName

setFlagsValueValueName :: MonadIO m => FlagsValue -> CString -> m () Source #

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

set flagsValue [ #valueName := value ]

valueNick

the nickname of the value

clearFlagsValueValueNick :: MonadIO m => FlagsValue -> m () Source #

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

clear #valueNick

getFlagsValueValueNick :: MonadIO m => FlagsValue -> m (Maybe Text) Source #

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

get flagsValue #valueNick

setFlagsValueValueNick :: MonadIO m => FlagsValue -> CString -> m () Source #

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

set flagsValue [ #valueNick := value ]