Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
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) => a -> m NoSelection
- constructNoSelectionModel :: (IsNoSelection o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
- getNoSelectionModel :: (MonadIO m, IsNoSelection o) => o -> m ListModel
Exported types
newtype NoSelection Source #
Memory-managed wrapper type.
Instances
Eq NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection (==) :: NoSelection -> NoSelection -> Bool # (/=) :: NoSelection -> NoSelection -> Bool # | |
IsGValue NoSelection Source # | Convert |
Defined in GI.Gtk.Objects.NoSelection toGValue :: NoSelection -> IO GValue # fromGValue :: GValue -> IO NoSelection # | |
ManagedPtrNewtype NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
TypedObject NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
GObject NoSelection Source # | |
Defined in GI.Gtk.Objects.NoSelection | |
HasParentTypes NoSelection Source # | |
Defined in GI.Gtk.Objects.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
Overloaded methods
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) | |
=> a |
|
-> m NoSelection | Returns: a new |
Creates a new selection to handle model
.
Properties
model
The model being managed
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