gi-handy-1.0.5: libhandy bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Exported types

newtype EnumValueObject Source #

Memory-managed wrapper type.

Constructors

EnumValueObject (ManagedPtr EnumValueObject) 

Instances

Instances details
Eq EnumValueObject Source # 
Instance details

Defined in GI.Handy.Objects.EnumValueObject

GObject EnumValueObject Source # 
Instance details

Defined in GI.Handy.Objects.EnumValueObject

ManagedPtrNewtype EnumValueObject Source # 
Instance details

Defined in GI.Handy.Objects.EnumValueObject

TypedObject EnumValueObject Source # 
Instance details

Defined in GI.Handy.Objects.EnumValueObject

Methods

glibType :: IO GType

HasParentTypes EnumValueObject Source # 
Instance details

Defined in GI.Handy.Objects.EnumValueObject

IsGValue (Maybe EnumValueObject) Source #

Convert EnumValueObject to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.EnumValueObject

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe EnumValueObject -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe EnumValueObject)

type ParentTypes EnumValueObject Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf EnumValueObject o) => IsEnumValueObject o Source # 
Instance details

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

getName

enumValueObjectGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumValueObject a) 
=> a

self: an enum value object

-> m Text

Returns: the name of self

Gets the name of self.

Since: 1.0

getNick

enumValueObjectGetNick Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumValueObject a) 
=> a

self: an enum value object

-> m Text

Returns: the nick of self

Gets the nick of self.

Since: 1.0

getValue

enumValueObjectGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumValueObject a) 
=> a

self: an enum value object

-> m Int32

Returns: the value of self

Gets the value of self.

Since: 1.0

new

enumValueObjectNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> EnumValue 
-> m EnumValueObject

Returns: the newly created HdyEnumValueObject

Creates a new HdyEnumValueObject.

Since: 1.0