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 |
GtkNoSelection is an implementation of the SelectionModel
interface
that does not allow selecting anything.
This model is meant to be used as a simple wrapper to GListModels
when a
SelectionModel
is required.
Synopsis
- newtype NoSelection = NoSelection (ManagedPtr NoSelection)
- class (GObject o, IsDescendantOf NoSelection o) => IsNoSelection o
- toNoSelection :: (MonadIO m, IsNoSelection o) => o -> m NoSelection
- noSelectionGetModel :: (HasCallStack, MonadIO m, IsNoSelection a) => a -> m ListModel
- noSelectionNew :: (HasCallStack, MonadIO m, IsListModel a) => Maybe a -> m NoSelection
- noSelectionSetModel :: (HasCallStack, MonadIO m, IsNoSelection a, IsListModel b) => a -> Maybe b -> m ()
- clearNoSelectionModel :: (MonadIO m, IsNoSelection o) => o -> m ()
- constructNoSelectionModel :: (IsNoSelection o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
- getNoSelectionModel :: (MonadIO m, IsNoSelection o) => o -> m ListModel
- setNoSelectionModel :: (MonadIO m, IsNoSelection o, IsListModel a) => o -> a -> m ()
Exported types
newtype NoSelection Source #
Memory-managed wrapper type.
NoSelection (ManagedPtr NoSelection) |
Instances
Eq NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection (==) :: NoSelection -> NoSelection -> Bool # (/=) :: NoSelection -> NoSelection -> Bool # | |
GObject NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
ManagedPtrNewtype NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection toManagedPtr :: NoSelection -> ManagedPtr NoSelection | |
TypedObject NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
HasParentTypes NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
IsGValue (Maybe NoSelection) Source # | Convert |
Defined in GI.Gtk.Objects.NoSelection gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe NoSelection -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe NoSelection) | |
type ParentTypes NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection |
class (GObject o, IsDescendantOf NoSelection o) => IsNoSelection o Source #
Type class for types which can be safely cast to NoSelection
, for instance with toNoSelection
.
Instances
(GObject o, IsDescendantOf NoSelection o) => IsNoSelection o Source # | |
Defined in GI.Gtk.Objects.NoSelection |
toNoSelection :: (MonadIO m, IsNoSelection o) => o -> m NoSelection Source #
Cast to NoSelection
, 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
:: (HasCallStack, MonadIO m, IsNoSelection a) | |
=> a |
|
-> m ListModel | Returns: The model being wrapped |
Gets the model that self
is wrapping.
new
:: (HasCallStack, MonadIO m, IsListModel a) | |
=> Maybe a | |
-> m NoSelection | Returns: a new |
Creates a new selection to handle model
.
setModel
:: (HasCallStack, MonadIO m, IsNoSelection a, IsListModel b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the model that self
should wrap.
If model
is Nothing
, this model will be empty.
Properties
model
The model being managed
clearNoSelectionModel :: (MonadIO m, IsNoSelection o) => o -> m () Source #
Set the value of the “model
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#model
constructNoSelectionModel :: (IsNoSelection 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
.
getNoSelectionModel :: (MonadIO m, IsNoSelection o) => o -> m ListModel Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
noSelection #model
setNoSelectionModel :: (MonadIO m, IsNoSelection o, IsListModel a) => o -> a -> m () Source #
Set the value of the “model
” property.
When overloading is enabled, this is equivalent to
set
noSelection [ #model:=
value ]