gi-adwaita-1.0.1: Adwaita bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Adw.Objects.EnumListItem

Description

AdwEnumListItem is the type of items in a EnumListModel.

Since: 1.0

Synopsis

Exported types

class (GObject o, IsDescendantOf EnumListItem o) => IsEnumListItem o Source #

Type class for types which can be safely cast to EnumListItem, for instance with toEnumListItem.

Instances

Instances details
(GObject o, IsDescendantOf EnumListItem o) => IsEnumListItem o Source # 
Instance details

Defined in GI.Adw.Objects.EnumListItem

toEnumListItem :: (MonadIO m, IsEnumListItem o) => o -> m EnumListItem Source #

Cast to EnumListItem, for types for which this is known to be safe. For general casts, use castTo.

Methods

getName

enumListItemGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumListItem a) 
=> a 
-> m Text

Returns: the enum value name

Gets the enum value name.

Since: 1.0

getNick

enumListItemGetNick Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumListItem a) 
=> a 
-> m Text

Returns: the enum value nick

Gets the enum value nick.

Since: 1.0

getValue

enumListItemGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumListItem a) 
=> a 
-> m Int32

Returns: the enum value

Gets the enum value.

Since: 1.0

Properties

name

The enum value name.

Since: 1.0

getEnumListItemName :: (MonadIO m, IsEnumListItem o) => o -> m Text Source #

Get the value of the “name” property. When overloading is enabled, this is equivalent to

get enumListItem #name

nick

The enum value nick.

Since: 1.0

getEnumListItemNick :: (MonadIO m, IsEnumListItem o) => o -> m Text Source #

Get the value of the “nick” property. When overloading is enabled, this is equivalent to

get enumListItem #nick

value

The enum value.

Since: 1.0

getEnumListItemValue :: (MonadIO m, IsEnumListItem o) => o -> m Int32 Source #

Get the value of the “value” property. When overloading is enabled, this is equivalent to

get enumListItem #value