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 |
GtkMultiSelection is an implementation of the SelectionModel
interface
that allows selecting multiple elements.
Synopsis
- newtype MultiSelection = MultiSelection (ManagedPtr MultiSelection)
- class (GObject o, IsDescendantOf MultiSelection o) => IsMultiSelection o
- toMultiSelection :: (MonadIO m, IsMultiSelection o) => o -> m MultiSelection
- multiSelectionGetModel :: (HasCallStack, MonadIO m, IsMultiSelection a) => a -> m ListModel
- multiSelectionNew :: (HasCallStack, MonadIO m, IsListModel a) => Maybe a -> m MultiSelection
- multiSelectionSetModel :: (HasCallStack, MonadIO m, IsMultiSelection a, IsListModel b) => a -> Maybe b -> m ()
- clearMultiSelectionModel :: (MonadIO m, IsMultiSelection o) => o -> m ()
- constructMultiSelectionModel :: (IsMultiSelection o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
- getMultiSelectionModel :: (MonadIO m, IsMultiSelection o) => o -> m ListModel
- setMultiSelectionModel :: (MonadIO m, IsMultiSelection o, IsListModel a) => o -> a -> m ()
Exported types
newtype MultiSelection Source #
Memory-managed wrapper type.
MultiSelection (ManagedPtr MultiSelection) |
Instances
Eq MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection (==) :: MultiSelection -> MultiSelection -> Bool # (/=) :: MultiSelection -> MultiSelection -> Bool # | |
GObject MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection | |
ManagedPtrNewtype MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection toManagedPtr :: MultiSelection -> ManagedPtr MultiSelection | |
TypedObject MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection | |
HasParentTypes MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection | |
IsGValue (Maybe MultiSelection) Source # | Convert |
Defined in GI.Gtk.Objects.MultiSelection gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MultiSelection -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MultiSelection) | |
type ParentTypes MultiSelection Source # | |
Defined in GI.Gtk.Objects.MultiSelection |
class (GObject o, IsDescendantOf MultiSelection o) => IsMultiSelection o Source #
Type class for types which can be safely cast to MultiSelection
, for instance with toMultiSelection
.
Instances
(GObject o, IsDescendantOf MultiSelection o) => IsMultiSelection o Source # | |
Defined in GI.Gtk.Objects.MultiSelection |
toMultiSelection :: (MonadIO m, IsMultiSelection o) => o -> m MultiSelection Source #
Cast to MultiSelection
, 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, isSelected, itemsChanged, notify, notifyByPspec, ref, refSink, runDispose, selectAll, selectItem, selectRange, selectionChanged, stealData, stealQdata, thawNotify, unref, unselectAll, unselectItem, unselectRange, watchClosure.
Getters
getData, getItem, getItemType, getModel, getNItems, getProperty, getQdata, getSelection, getSelectionInRange.
Setters
getModel
multiSelectionGetModel Source #
:: (HasCallStack, MonadIO m, IsMultiSelection a) | |
=> a |
|
-> m ListModel | Returns: the underlying model |
Returns the underlying model of self
.
new
:: (HasCallStack, MonadIO m, IsListModel a) | |
=> Maybe a | |
-> m MultiSelection | Returns: a new |
Creates a new selection to handle model
.
setModel
multiSelectionSetModel Source #
:: (HasCallStack, MonadIO m, IsMultiSelection a, IsListModel b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the model that self
should wrap. If model
is Nothing
, self
will be empty.
Properties
model
The list managed by this selection
clearMultiSelectionModel :: (MonadIO m, IsMultiSelection o) => o -> m () Source #
Set the value of the “model
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#model
constructMultiSelectionModel :: (IsMultiSelection 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
.
getMultiSelectionModel :: (MonadIO m, IsMultiSelection o) => o -> m ListModel Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
multiSelection #model
setMultiSelectionModel :: (MonadIO m, IsMultiSelection o, IsListModel a) => o -> a -> m () Source #
Set the value of the “model
” property.
When overloading is enabled, this is equivalent to
set
multiSelection [ #model:=
value ]