Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
FlattenListModel
is a list model that takes a list model containing
list models and flattens it into a single model.
Another term for this is concatenation: FlattenListModel
takes a
list of lists and concatenates them into a single list.
Synopsis
- newtype FlattenListModel = FlattenListModel (ManagedPtr FlattenListModel)
- class (GObject o, IsDescendantOf FlattenListModel o) => IsFlattenListModel o
- toFlattenListModel :: (MonadIO m, IsFlattenListModel o) => o -> m FlattenListModel
- flattenListModelGetModel :: (HasCallStack, MonadIO m, IsFlattenListModel a) => a -> m (Maybe ListModel)
- flattenListModelGetModelForItem :: (HasCallStack, MonadIO m, IsFlattenListModel a) => a -> Word32 -> m ListModel
- flattenListModelNew :: (HasCallStack, MonadIO m, IsListModel a) => Maybe a -> m FlattenListModel
- flattenListModelSetModel :: (HasCallStack, MonadIO m, IsFlattenListModel a, IsListModel b) => a -> Maybe b -> m ()
- clearFlattenListModelModel :: (MonadIO m, IsFlattenListModel o) => o -> m ()
- constructFlattenListModelModel :: (IsFlattenListModel o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
- getFlattenListModelModel :: (MonadIO m, IsFlattenListModel o) => o -> m (Maybe ListModel)
- setFlattenListModelModel :: (MonadIO m, IsFlattenListModel o, IsListModel a) => o -> a -> m ()
Exported types
newtype FlattenListModel Source #
Memory-managed wrapper type.
FlattenListModel (ManagedPtr FlattenListModel) |
Instances
Eq FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel (==) :: FlattenListModel -> FlattenListModel -> Bool # (/=) :: FlattenListModel -> FlattenListModel -> Bool # | |
GObject FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel | |
ManagedPtrNewtype FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel toManagedPtr :: FlattenListModel -> ManagedPtr FlattenListModel | |
TypedObject FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel | |
HasParentTypes FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel | |
IsGValue (Maybe FlattenListModel) Source # | Convert |
Defined in GI.Gtk.Objects.FlattenListModel gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FlattenListModel -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FlattenListModel) | |
type ParentTypes FlattenListModel Source # | |
Defined in GI.Gtk.Objects.FlattenListModel |
class (GObject o, IsDescendantOf FlattenListModel o) => IsFlattenListModel o Source #
Type class for types which can be safely cast to FlattenListModel
, for instance with toFlattenListModel
.
Instances
(GObject o, IsDescendantOf FlattenListModel o) => IsFlattenListModel o Source # | |
Defined in GI.Gtk.Objects.FlattenListModel |
toFlattenListModel :: (MonadIO m, IsFlattenListModel o) => o -> m FlattenListModel Source #
Cast to FlattenListModel
, 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, getModel, getModelForItem, getNItems, getProperty, getQdata.
Setters
getModel
flattenListModelGetModel Source #
:: (HasCallStack, MonadIO m, IsFlattenListModel a) | |
=> a |
|
-> m (Maybe ListModel) | Returns: The model flattened by |
Gets the model set via flattenListModelSetModel
.
getModelForItem
flattenListModelGetModelForItem Source #
:: (HasCallStack, MonadIO m, IsFlattenListModel a) | |
=> a |
|
-> Word32 |
|
-> m ListModel | Returns: the model containing the item at |
Returns the model containing the item at the given position.
new
:: (HasCallStack, MonadIO m, IsListModel a) | |
=> Maybe a |
|
-> m FlattenListModel | Returns: a new |
Creates a new FlattenListModel
that flattens list
.
setModel
flattenListModelSetModel Source #
:: (HasCallStack, MonadIO m, IsFlattenListModel a, IsListModel b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets a new model to be flattened.
Properties
model
The model being flattened
clearFlattenListModelModel :: (MonadIO m, IsFlattenListModel o) => o -> m () Source #
Set the value of the “model
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#model
constructFlattenListModelModel :: (IsFlattenListModel o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “model
” property. This is rarely needed directly, but it is used by new
.
getFlattenListModelModel :: (MonadIO m, IsFlattenListModel o) => o -> m (Maybe ListModel) Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
flattenListModel #model
setFlattenListModelModel :: (MonadIO m, IsFlattenListModel o, IsListModel a) => o -> a -> m () Source #
Set the value of the “model
” property.
When overloading is enabled, this is equivalent to
set
flattenListModel [ #model:=
value ]