Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
The class of an enumeration type holds information about its possible values.
Synopsis
- newtype EnumClass = EnumClass (ManagedPtr EnumClass)
- newZeroEnumClass :: MonadIO m => m EnumClass
- noEnumClass :: Maybe EnumClass
- getEnumClassGTypeClass :: MonadIO m => EnumClass -> m TypeClass
- getEnumClassMaximum :: MonadIO m => EnumClass -> m Int32
- setEnumClassMaximum :: MonadIO m => EnumClass -> Int32 -> m ()
- getEnumClassMinimum :: MonadIO m => EnumClass -> m Int32
- setEnumClassMinimum :: MonadIO m => EnumClass -> Int32 -> m ()
- getEnumClassNValues :: MonadIO m => EnumClass -> m Word32
- setEnumClassNValues :: MonadIO m => EnumClass -> Word32 -> m ()
- clearEnumClassValues :: MonadIO m => EnumClass -> m ()
- getEnumClassValues :: MonadIO m => EnumClass -> m (Maybe EnumValue)
- setEnumClassValues :: MonadIO m => EnumClass -> Ptr EnumValue -> m ()
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr EnumClass Source # | |
Defined in GI.GObject.Structs.EnumClass wrappedPtrCalloc :: IO (Ptr EnumClass) # wrappedPtrCopy :: EnumClass -> IO EnumClass # | |
tag ~ AttrSet => Constructible EnumClass tag Source # | |
Defined in GI.GObject.Structs.EnumClass |
newZeroEnumClass :: MonadIO m => m EnumClass Source #
Construct a EnumClass
struct initialized to zero.
Properties
gTypeClass
the parent class
getEnumClassGTypeClass :: MonadIO m => EnumClass -> m TypeClass Source #
Get the value of the “g_type_class
” field.
When overloading is enabled, this is equivalent to
get
enumClass #gTypeClass
maximum
the largest possible value.
getEnumClassMaximum :: MonadIO m => EnumClass -> m Int32 Source #
Get the value of the “maximum
” field.
When overloading is enabled, this is equivalent to
get
enumClass #maximum
setEnumClassMaximum :: MonadIO m => EnumClass -> Int32 -> m () Source #
Set the value of the “maximum
” field.
When overloading is enabled, this is equivalent to
set
enumClass [ #maximum:=
value ]
minimum
the smallest possible value.
getEnumClassMinimum :: MonadIO m => EnumClass -> m Int32 Source #
Get the value of the “minimum
” field.
When overloading is enabled, this is equivalent to
get
enumClass #minimum
setEnumClassMinimum :: MonadIO m => EnumClass -> Int32 -> m () Source #
Set the value of the “minimum
” field.
When overloading is enabled, this is equivalent to
set
enumClass [ #minimum:=
value ]
nValues
the number of possible values.
getEnumClassNValues :: MonadIO m => EnumClass -> m Word32 Source #
Get the value of the “n_values
” field.
When overloading is enabled, this is equivalent to
get
enumClass #nValues
setEnumClassNValues :: MonadIO m => EnumClass -> Word32 -> m () Source #
Set the value of the “n_values
” field.
When overloading is enabled, this is equivalent to
set
enumClass [ #nValues:=
value ]
values
an array of EnumValue
structs describing the
individual values.
clearEnumClassValues :: MonadIO m => EnumClass -> m () Source #
Set the value of the “values
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#values
getEnumClassValues :: MonadIO m => EnumClass -> m (Maybe EnumValue) Source #
Get the value of the “values
” field.
When overloading is enabled, this is equivalent to
get
enumClass #values
setEnumClassValues :: MonadIO m => EnumClass -> Ptr EnumValue -> m () Source #
Set the value of the “values
” field.
When overloading is enabled, this is equivalent to
set
enumClass [ #values:=
value ]