Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The class of a flags type holds information about its possible values.
Synopsis
- newtype FlagsClass = FlagsClass (ManagedPtr FlagsClass)
- newZeroFlagsClass :: MonadIO m => m FlagsClass
- noFlagsClass :: Maybe FlagsClass
- getFlagsClassGTypeClass :: MonadIO m => FlagsClass -> m TypeClass
- getFlagsClassMask :: MonadIO m => FlagsClass -> m Word32
- setFlagsClassMask :: MonadIO m => FlagsClass -> Word32 -> m ()
- getFlagsClassNValues :: MonadIO m => FlagsClass -> m Word32
- setFlagsClassNValues :: MonadIO m => FlagsClass -> Word32 -> m ()
- clearFlagsClassValues :: MonadIO m => FlagsClass -> m ()
- getFlagsClassValues :: MonadIO m => FlagsClass -> m (Maybe FlagsValue)
- setFlagsClassValues :: MonadIO m => FlagsClass -> Ptr FlagsValue -> m ()
Exported types
newtype FlagsClass Source #
Memory-managed wrapper type.
Instances
Eq FlagsClass Source # | |
Defined in GI.GObject.Structs.FlagsClass (==) :: FlagsClass -> FlagsClass -> Bool # (/=) :: FlagsClass -> FlagsClass -> Bool # | |
WrappedPtr FlagsClass Source # | |
Defined in GI.GObject.Structs.FlagsClass | |
tag ~ 'AttrSet => Constructible FlagsClass tag Source # | |
Defined in GI.GObject.Structs.FlagsClass new :: MonadIO m => (ManagedPtr FlagsClass -> FlagsClass) -> [AttrOp FlagsClass tag] -> m FlagsClass # |
newZeroFlagsClass :: MonadIO m => m FlagsClass Source #
Construct a FlagsClass
struct initialized to zero.
noFlagsClass :: Maybe FlagsClass Source #
A convenience alias for Nothing
:: Maybe
FlagsClass
.
Methods
Overloaded methods
Properties
gTypeClass
the parent class
getFlagsClassGTypeClass :: MonadIO m => FlagsClass -> m TypeClass Source #
Get the value of the “g_type_class
” field.
When overloading is enabled, this is equivalent to
get
flagsClass #gTypeClass
mask
a mask covering all possible values.
getFlagsClassMask :: MonadIO m => FlagsClass -> m Word32 Source #
Get the value of the “mask
” field.
When overloading is enabled, this is equivalent to
get
flagsClass #mask
setFlagsClassMask :: MonadIO m => FlagsClass -> Word32 -> m () Source #
Set the value of the “mask
” field.
When overloading is enabled, this is equivalent to
set
flagsClass [ #mask:=
value ]
nValues
the number of possible values.
getFlagsClassNValues :: MonadIO m => FlagsClass -> m Word32 Source #
Get the value of the “n_values
” field.
When overloading is enabled, this is equivalent to
get
flagsClass #nValues
setFlagsClassNValues :: MonadIO m => FlagsClass -> Word32 -> m () Source #
Set the value of the “n_values
” field.
When overloading is enabled, this is equivalent to
set
flagsClass [ #nValues:=
value ]
values
an array of FlagsValue
structs describing the
individual values.
clearFlagsClassValues :: MonadIO m => FlagsClass -> m () Source #
Set the value of the “values
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#values
getFlagsClassValues :: MonadIO m => FlagsClass -> m (Maybe FlagsValue) Source #
Get the value of the “values
” field.
When overloading is enabled, this is equivalent to
get
flagsClass #values
setFlagsClassValues :: MonadIO m => FlagsClass -> Ptr FlagsValue -> m () Source #
Set the value of the “values
” field.
When overloading is enabled, this is equivalent to
set
flagsClass [ #values:=
value ]