gi-adwaita-1.0.3: 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 [classenumListItem].

Since: 1.0

Synopsis

Exported types

newtype EnumListModel Source #

Memory-managed wrapper type.

Constructors

EnumListModel (ManagedPtr EnumListModel) 

Instances

Instances details
Eq EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

GObject EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

ManagedPtrNewtype EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

Methods

toManagedPtr :: EnumListModel -> ManagedPtr EnumListModel

TypedObject EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

Methods

glibType :: IO GType

HasParentTypes EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

IsGValue (Maybe EnumListModel) Source #

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

Instance details

Defined in GI.Adw.Objects.EnumListModel

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes EnumListModel Source # 
Instance details

Defined in GI.Adw.Objects.EnumListModel

type ParentTypes EnumListModel = '[Object, ListModel]

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