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 |
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.
EnumValueObject (ManagedPtr EnumValueObject) |
Instances
Eq EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject (==) :: EnumValueObject -> EnumValueObject -> Bool # (/=) :: EnumValueObject -> EnumValueObject -> Bool # | |
GObject EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject | |
ManagedPtrNewtype EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject toManagedPtr :: EnumValueObject -> ManagedPtr EnumValueObject | |
TypedObject EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject | |
HasParentTypes EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject | |
IsGValue (Maybe EnumValueObject) Source # | Convert |
Defined in GI.Handy.Objects.EnumValueObject gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe EnumValueObject -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe EnumValueObject) | |
type ParentTypes EnumValueObject Source # | |
Defined in GI.Handy.Objects.EnumValueObject type ParentTypes EnumValueObject = '[Object] |
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 #
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Text | Returns: the name of |
Gets the name of self
.
Since: 1.0
getNick
enumValueObjectGetNick Source #
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Text | Returns: the nick of |
Gets the nick of self
.
Since: 1.0
getValue
enumValueObjectGetValue Source #
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> m Int32 | Returns: the value of |
Gets the value of self
.
Since: 1.0
new
:: (HasCallStack, MonadIO m) | |
=> EnumValue | |
-> m EnumValueObject | Returns: the newly created |
Creates a new HdyEnumValueObject
.
Since: 1.0