Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Handy.Objects.EnumValueObject
Description
An object representing an [structgObject
.EnumValue].
The HdyEnumValueObject
object represents a [structgObject
.EnumValue],
allowing it to be used with ListModel
.
Since: 1.0
Synopsis
- newtype EnumValueObject = EnumValueObject (ManagedPtr EnumValueObject)
- class (GObject o, IsDescendantOf EnumValueObject o) => IsEnumValueObject o
- toEnumValueObject :: (MonadIO m, IsEnumValueObject o) => o -> m EnumValueObject
- enumValueObjectGetName :: (HasCallStack, MonadIO m, IsEnumValueObject a) => a -> m Text
- enumValueObjectGetNick :: (HasCallStack, MonadIO m, IsEnumValueObject a) => a -> m Text
- enumValueObjectGetValue :: (HasCallStack, MonadIO m, IsEnumValueObject a) => a -> m Int32
- enumValueObjectNew :: (HasCallStack, MonadIO m) => EnumValue -> m EnumValueObject
Exported types
newtype EnumValueObject Source #
Memory-managed wrapper type.
Constructors
EnumValueObject (ManagedPtr EnumValueObject) |
Instances
class (GObject o, IsDescendantOf EnumValueObject o) => IsEnumValueObject o Source #
Type class for types which can be safely cast to EnumValueObject
, for instance with toEnumValueObject
.
Instances
(GObject o, IsDescendantOf EnumValueObject o) => IsEnumValueObject o Source # | |
Defined in GI.Handy.Objects.EnumValueObject |
toEnumValueObject :: (MonadIO m, IsEnumValueObject o) => o -> m EnumValueObject Source #
Cast to EnumValueObject
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getName, getNick, getProperty, getQdata, getValue.
Setters
getName
enumValueObjectGetName Source #
Arguments
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Text | Returns: the name of |
Gets the name of self
.
Since: 1.0
getNick
enumValueObjectGetNick Source #
Arguments
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Text | Returns: the nick of |
Gets the nick of self
.
Since: 1.0
getValue
enumValueObjectGetValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Int32 | Returns: the value of |
Gets the value of self
.
Since: 1.0
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> EnumValue | |
-> m EnumValueObject | Returns: the newly created |
Creates a new HdyEnumValueObject
.
Since: 1.0