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.EnumListModel

Description

A ListModel representing values of a given enum.

AdwEnumListModel contains objects of type [classadwEnumListItem].

Since: 1.0

Synopsis

Exported types

class (GObject o, IsDescendantOf EnumListModel o) => IsEnumListModel o Source #

Type class for types which can be safely cast to EnumListModel, for instance with toEnumListModel.

Instances

Instances details
(GObject o, IsDescendantOf EnumListModel o) => IsEnumListModel o Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

toEnumListModel :: (MonadIO m, IsEnumListModel o) => o -> m EnumListModel Source #

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

Methods

findPosition

enumListModelFindPosition Source #

Arguments

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

value: an enum value

-> m Word32 

Finds the position of a given enum value in self.

Since: 1.0

getEnumType

enumListModelGetEnumType Source #

Arguments

:: (HasCallStack, MonadIO m, IsEnumListModel a) 
=> a 
-> m GType

Returns: the enum type

Gets the type of the enum represented by self.

Since: 1.0

new

enumListModelNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GType

enumType: the type of the enum to construct the model from

-> m EnumListModel

Returns: the newly created AdwEnumListModel

Creates a new AdwEnumListModel for enumType.

Since: 1.0

Properties

enumType

The type of the enum represented by the model.

Since: 1.0

constructEnumListModelEnumType :: (IsEnumListModel o, MonadIO m) => GType -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enum-type” property. This is rarely needed directly, but it is used by new.

getEnumListModelEnumType :: (MonadIO m, IsEnumListModel o) => o -> m GType Source #

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

get enumListModel #enumType