| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GObject.Structs.FlagsValue
Description
A structure which contains a single flags value, its name, and its nickname.
Synopsis
- newtype FlagsValue = FlagsValue (ManagedPtr FlagsValue)
- newZeroFlagsValue :: MonadIO m => m FlagsValue
- type family ResolveFlagsValueMethod (t :: Symbol) o where ...
- flagsValue_value :: AttrLabelProxy "value"
- getFlagsValueValue :: MonadIO m => FlagsValue -> m Word32
- setFlagsValueValue :: MonadIO m => FlagsValue -> Word32 -> m ()
- clearFlagsValueValueName :: MonadIO m => FlagsValue -> m ()
- flagsValue_valueName :: AttrLabelProxy "valueName"
- getFlagsValueValueName :: MonadIO m => FlagsValue -> m (Maybe Text)
- setFlagsValueValueName :: MonadIO m => FlagsValue -> CString -> m ()
- clearFlagsValueValueNick :: MonadIO m => FlagsValue -> m ()
- flagsValue_valueNick :: AttrLabelProxy "valueNick"
- getFlagsValueValueNick :: MonadIO m => FlagsValue -> m (Maybe Text)
- setFlagsValueValueNick :: MonadIO m => FlagsValue -> CString -> m ()
Exported types
newtype FlagsValue Source #
Memory-managed wrapper type.
Constructors
| FlagsValue (ManagedPtr FlagsValue) |
Instances
newZeroFlagsValue :: MonadIO m => m FlagsValue Source #
Construct a FlagsValue struct initialized to zero.
Methods
type family ResolveFlagsValueMethod (t :: Symbol) o where ... Source #
Equations
| ResolveFlagsValueMethod l o = MethodResolutionFailed l o :: Type |
Properties
value
the flags value
flagsValue_value :: AttrLabelProxy "value" Source #
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
setflagsValue [ #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
flagsValue_valueName :: AttrLabelProxy "valueName" Source #
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
setflagsValue [ #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
flagsValue_valueNick :: AttrLabelProxy "valueNick" Source #
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
setflagsValue [ #valueNick:=value ]