gi-gio-hs-list-model-0.1.0.1: Haskell implementation of GListModel interface from gi-gio
Safe HaskellNone
LanguageHaskell2010

Data.GI.Gio.ListModel.CustomStore

Description

Allows a custom data structure to be used with ListView introduced in GTK4. The model SeqStore is based on CustomStore. This module should only be required for implementing a new type of store.

The users of a CustomStore will need to handle the Object that is returned by listItemGetItem, for this Data.GI.Gio.ListModel.CustomStoreItem can be used.

Synopsis

Documentation

newtype CustomStore private a Source #

A CustomStore is an instance of GListModel. This can be used for any widget that stores GListModel. The user may either create an instance using customStoreNew or use the predefined model SeqStore.

The private type can be used to represent any data that might be needed to perform operations on the implmentation of CustomStore. For example, this can be an IORef which can be manipulated as the list needs manipulating.

Constructors

CustomStore (ManagedPtr (CustomStore private a)) 

Instances

Instances details
GObject (CustomStore private a) Source # 
Instance details

Defined in Data.GI.Gio.ListModel.CustomStore

TypedObject (CustomStore private a) Source # 
Instance details

Defined in Data.GI.Gio.ListModel.CustomStore

Methods

glibType :: IO GType

HasParentTypes (CustomStore private row) Source # 
Instance details

Defined in Data.GI.Gio.ListModel.CustomStore

type ParentTypes (CustomStore private row) Source # 
Instance details

Defined in Data.GI.Gio.ListModel.CustomStore

type ParentTypes (CustomStore private row) = '[ListModel]

customStoreNew :: MonadIO m => private -> CustomStoreImpl model a -> (CustomStore private a -> model a) -> m (model a) Source #

Create a new instance of a CustomStore.

customStoreGetPrivate :: MonadIO m => CustomStore private a -> m private Source #

data CustomStoreImpl (model :: Type -> Type) a Source #

Operations required to be defined for any implementation of CustomStore.

Constructors

CustomStoreImpl 

Fields