A selection model that does not allow selecting anything.
This model is meant to be used as a simple wrapper around a GListModel when a GtkSelectionModel is required.
GtkNoSelection passes through sections from the underlying model.
function "+"
(Widget : access Gtk_No_Selection_Record'Class)
return Glib.List_Model.Glist_Model
function "+"
(Widget : access Gtk_No_Selection_Record'Class)
return Gtk.Section_Model.Gtk_Section_Model
function "+"
(Widget : access Gtk_No_Selection_Record'Class)
return Gtk.Selection_Model.Gtk_Selection_Model
function "-"
(Interf : Glib.List_Model.Glist_Model)
return Gtk_No_Selection
function "-"
(Interf : Gtk.Section_Model.Gtk_Section_Model)
return Gtk_No_Selection
function "-"
(Interf : Gtk.Selection_Model.Gtk_Selection_Model)
return Gtk_No_Selection
function Get_Item
(Self : not null access Gtk_No_Selection_Record;
Position : Guint) return Glib.Object.GObject
function Get_Item_Type
(Self : not null access Gtk_No_Selection_Record) return GType
function Get_Model
(Self : not null access Gtk_No_Selection_Record)
return Glib.List_Model.Glist_Model
Gets the model that Self is wrapping.
The model being wrapped
function Get_N_Items
(Self : not null access Gtk_No_Selection_Record) return Guint
procedure Get_Section
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
Out_Start : out Guint;
Out_End : out Guint)
function Get_Selection
(Self : not null access Gtk_No_Selection_Record)
return Gtk.Bitset.Gtk_Bitset
function Get_Selection_In_Range
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
N_Items : Guint) return Gtk.Bitset.Gtk_Bitset
function Get_Type return Glib.GType
procedure Gtk_New
(Self : out Gtk_No_Selection;
Model : Glib.List_Model.Glist_Model)
Creates a new selection to handle Model. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the GListModel to manage
type Gtk_No_Selection is access all Gtk_No_Selection_Record'Class;
function Gtk_No_Selection_New
(Model : Glib.List_Model.Glist_Model) return Gtk_No_Selection
Creates a new selection to handle Model.
the GListModel to manage
type Gtk_No_Selection_Record is new GObject_Record with null record;
package Implements_Glist_Model is new Glib.Types.Implements
(Glib.List_Model.Glist_Model, Gtk_No_Selection_Record, Gtk_No_Selection);
package Implements_Gtk_Section_Model is new Glib.Types.Implements
(Gtk.Section_Model.Gtk_Section_Model, Gtk_No_Selection_Record, Gtk_No_Selection);
package Implements_Gtk_Selection_Model is new Glib.Types.Implements
(Gtk.Selection_Model.Gtk_Selection_Model, Gtk_No_Selection_Record, Gtk_No_Selection);
procedure Initialize
(Self : not null access Gtk_No_Selection_Record'Class;
Model : Glib.List_Model.Glist_Model)
Creates a new selection to handle Model. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the GListModel to manage
function Is_Selected
(Self : not null access Gtk_No_Selection_Record;
Position : Guint) return Boolean
Item_Type_Property : constant Glib.Properties.Property_Boxed;
Type: GType The type of items. See [methodGio.ListModel.get_item_type].
procedure Items_Changed
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
Removed : Guint;
Added : Guint)
Model_Property : constant Glib.Properties.Property_Boxed;
Type: Gio.List_Model The model being managed.
N_Items_Property : constant Glib.Properties.Property_Uint;
The number of items. See [methodGio.ListModel.get_n_items].
procedure Sections_Changed
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
N_Items : Guint)
function Select_All
(Self : not null access Gtk_No_Selection_Record) return Boolean
function Select_Item
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
Unselect_Rest : Boolean) return Boolean
function Select_Range
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
N_Items : Guint;
Unselect_Rest : Boolean) return Boolean
procedure Selection_Changed
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
N_Items : Guint)
procedure Set_Model
(Self : not null access Gtk_No_Selection_Record;
Model : Glib.List_Model.Glist_Model)
Sets the model that Self should wrap. If Model is null, this model will be empty.
A GListModel to wrap
function Set_Selection
(Self : not null access Gtk_No_Selection_Record;
Selected : Gtk.Bitset.Gtk_Bitset;
Mask : Gtk.Bitset.Gtk_Bitset) return Boolean
function Unselect_All
(Self : not null access Gtk_No_Selection_Record) return Boolean
function Unselect_Item
(Self : not null access Gtk_No_Selection_Record;
Position : Guint) return Boolean
function Unselect_Range
(Self : not null access Gtk_No_Selection_Record;
Position : Guint;
N_Items : Guint) return Boolean