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 |
GI.Dazzle.Objects.ReadOnlyListModel
Description
No description available in the introspection data.
Synopsis
- newtype ReadOnlyListModel = ReadOnlyListModel (ManagedPtr ReadOnlyListModel)
- class (GObject o, IsDescendantOf ReadOnlyListModel o) => IsReadOnlyListModel o
- toReadOnlyListModel :: (MonadIO m, IsReadOnlyListModel o) => o -> m ReadOnlyListModel
- readOnlyListModelNew :: (HasCallStack, MonadIO m, IsListModel a) => a -> m ListModel
- constructReadOnlyListModelBaseModel :: (IsReadOnlyListModel o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
Exported types
newtype ReadOnlyListModel Source #
Memory-managed wrapper type.
Constructors
ReadOnlyListModel (ManagedPtr ReadOnlyListModel) |
Instances
class (GObject o, IsDescendantOf ReadOnlyListModel o) => IsReadOnlyListModel o Source #
Type class for types which can be safely cast to ReadOnlyListModel
, for instance with toReadOnlyListModel
.
Instances
(GObject o, IsDescendantOf ReadOnlyListModel o) => IsReadOnlyListModel o Source # | |
Defined in GI.Dazzle.Objects.ReadOnlyListModel |
toReadOnlyListModel :: (MonadIO m, IsReadOnlyListModel o) => o -> m ReadOnlyListModel Source #
Cast to ReadOnlyListModel
, 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, forceFloating, freezeNotify, getv, isFloating, itemsChanged, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getItem, getItemType, getNItems, getProperty, getQdata.
Setters
new
Arguments
:: (HasCallStack, MonadIO m, IsListModel a) | |
=> a |
|
-> m ListModel | Returns: a |
Creates a new ReadOnlyListModel
which is a read-only wrapper around
baseModel
. This is useful when you want to give API consumers access to
a ListModel
but without the ability to mutate the underlying list.
Since: 3.30
Properties
baseModel
The "base-model" property is the ListModel
that will be wrapped.
This base model is not accessible after creation so that API creators can
be sure the consumer cannot mutate the underlying model. That is useful
when you want to give a caller access to a ListModel
without the ability
to introspect on the type and mutate it without your knowledge (such as
with ListStore
).
Since: 3.30
constructReadOnlyListModelBaseModel :: (IsReadOnlyListModel o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “base-model
” property. This is rarely needed directly, but it is used by new
.