Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A structure which contains a single enum value, its name, and its nickname.
Synopsis
- newtype EnumValue = EnumValue (ManagedPtr EnumValue)
- newZeroEnumValue :: MonadIO m => m EnumValue
- getEnumValueValue :: MonadIO m => EnumValue -> m Int32
- setEnumValueValue :: MonadIO m => EnumValue -> Int32 -> m ()
- clearEnumValueValueName :: MonadIO m => EnumValue -> m ()
- getEnumValueValueName :: MonadIO m => EnumValue -> m (Maybe Text)
- setEnumValueValueName :: MonadIO m => EnumValue -> CString -> m ()
- clearEnumValueValueNick :: MonadIO m => EnumValue -> m ()
- getEnumValueValueNick :: MonadIO m => EnumValue -> m (Maybe Text)
- setEnumValueValueNick :: MonadIO m => EnumValue -> CString -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq EnumValue Source # | |
BoxedPtr EnumValue Source # | |
Defined in GI.GObject.Structs.EnumValue boxedPtrCopy :: EnumValue -> IO EnumValue boxedPtrFree :: EnumValue -> IO () | |
CallocPtr EnumValue Source # | |
Defined in GI.GObject.Structs.EnumValue boxedPtrCalloc :: IO (Ptr EnumValue) | |
ManagedPtrNewtype EnumValue Source # | |
Defined in GI.GObject.Structs.EnumValue toManagedPtr :: EnumValue -> ManagedPtr EnumValue | |
tag ~ 'AttrSet => Constructible EnumValue tag Source # | |
newZeroEnumValue :: MonadIO m => m EnumValue Source #
Construct a EnumValue
struct initialized to zero.
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 ]