gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Objects.ReadOnlyListModel

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ReadOnlyListModel Source #

Memory-managed wrapper type.

Constructors

ReadOnlyListModel (ManagedPtr ReadOnlyListModel) 

Instances

Instances details
Eq ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

GObject ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

ManagedPtrNewtype ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

TypedObject ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

Methods

glibType :: IO GType

HasParentTypes ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

IsGValue (Maybe ReadOnlyListModel) Source #

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

Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes ReadOnlyListModel Source # 
Instance details

Defined in GI.Dazzle.Objects.ReadOnlyListModel

type ParentTypes ReadOnlyListModel = '[Object, ListModel]

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

Instances details
(GObject o, IsDescendantOf ReadOnlyListModel o) => IsReadOnlyListModel o Source # 
Instance details

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

new

readOnlyListModelNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsListModel a) 
=> a

baseModel: a ListModel

-> m ListModel

Returns: a ReadOnlyListModel

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.