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 |
A ListModel
representing values of a given enum.
AdwEnumListModel
contains objects of type [classadwEnumListItem
].
Since: 1.0
Synopsis
- newtype EnumListModel = EnumListModel (ManagedPtr EnumListModel)
- class (GObject o, IsDescendantOf EnumListModel o) => IsEnumListModel o
- toEnumListModel :: (MonadIO m, IsEnumListModel o) => o -> m EnumListModel
- enumListModelFindPosition :: (HasCallStack, MonadIO m, IsEnumListModel a) => a -> Int32 -> m Word32
- enumListModelGetEnumType :: (HasCallStack, MonadIO m, IsEnumListModel a) => a -> m GType
- enumListModelNew :: (HasCallStack, MonadIO m) => GType -> m EnumListModel
- constructEnumListModelEnumType :: (IsEnumListModel o, MonadIO m) => GType -> m (GValueConstruct o)
- getEnumListModelEnumType :: (MonadIO m, IsEnumListModel o) => o -> m GType
Exported types
newtype EnumListModel Source #
Memory-managed wrapper type.
Instances
Eq EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel (==) :: EnumListModel -> EnumListModel -> Bool # (/=) :: EnumListModel -> EnumListModel -> Bool # | |
GObject EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel | |
ManagedPtrNewtype EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel | |
TypedObject EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel | |
HasParentTypes EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel | |
IsGValue (Maybe EnumListModel) Source # | Convert |
Defined in GI.Adw.Objects.EnumListModel gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe EnumListModel -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe EnumListModel) # | |
type ParentTypes EnumListModel Source # | |
Defined in GI.Adw.Objects.EnumListModel |
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
(GObject o, IsDescendantOf EnumListModel o) => IsEnumListModel o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, findPosition, forceFloating, freezeNotify, getv, isFloating, itemsChanged, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getEnumType, getItem, getItemType, getNItems, getProperty, getQdata.
Setters
findPosition
enumListModelFindPosition Source #
:: (HasCallStack, MonadIO m, IsEnumListModel a) | |
=> a | |
-> Int32 |
|
-> m Word32 |
Finds the position of a given enum value in self
.
Since: 1.0
getEnumType
enumListModelGetEnumType Source #
:: (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
:: (HasCallStack, MonadIO m) | |
=> GType |
|
-> m EnumListModel | Returns: the newly created |
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