gi-gtk-4.0.2: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.NoSelection

Description

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

Exported types

newtype NoSelection Source #

Memory-managed wrapper type.

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

Instances details
(GObject o, IsDescendantOf NoSelection o) => IsNoSelection o Source # 
Instance details

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

noSelectionGetModel Source #

Arguments

:: (HasCallStack, MonadIO m, IsNoSelection a) 
=> a

self: a NoSelection

-> m ListModel

Returns: The model being wrapped

Gets the model that self is wrapping.

new

noSelectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsListModel a) 
=> a

model: the ListModel to manage

-> m NoSelection

Returns: a new NoSelection

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