A selection model that allows selecting multiple elements.
function "+"
(Widget : access Gtk_Multi_Selection_Record'Class)
return Glib.List_Model.Glist_Model
function "+"
(Widget : access Gtk_Multi_Selection_Record'Class)
return Gtk.Section_Model.Gtk_Section_Model
function "+"
(Widget : access Gtk_Multi_Selection_Record'Class)
return Gtk.Selection_Model.Gtk_Selection_Model
function "-"
(Interf : Glib.List_Model.Glist_Model)
return Gtk_Multi_Selection
function "-"
(Interf : Gtk.Section_Model.Gtk_Section_Model)
return Gtk_Multi_Selection
function "-"
(Interf : Gtk.Selection_Model.Gtk_Selection_Model)
return Gtk_Multi_Selection
function Get_Item
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint) return Glib.Object.GObject
function Get_Item_Type
(Self : not null access Gtk_Multi_Selection_Record) return GType
function Get_Model
(Self : not null access Gtk_Multi_Selection_Record)
return Glib.List_Model.Glist_Model
Returns the underlying model of Self.
the underlying model
function Get_N_Items
(Self : not null access Gtk_Multi_Selection_Record) return Guint
procedure Get_Section
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
Out_Start : out Guint;
Out_End : out Guint)
function Get_Selection
(Self : not null access Gtk_Multi_Selection_Record)
return Gtk.Bitset.Gtk_Bitset
function Get_Selection_In_Range
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
N_Items : Guint) return Gtk.Bitset.Gtk_Bitset
function Get_Type return Glib.GType
type Gtk_Multi_Selection is access all Gtk_Multi_Selection_Record'Class;
function Gtk_Multi_Selection_New
(Model : Glib.List_Model.Glist_Model) return Gtk_Multi_Selection
Creates a new selection to handle Model.
the GListModel to manage
type Gtk_Multi_Selection_Record is new GObject_Record with null record;
procedure Gtk_New
(Self : out Gtk_Multi_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
package Implements_Glist_Model is new Glib.Types.Implements
(Glib.List_Model.Glist_Model, Gtk_Multi_Selection_Record, Gtk_Multi_Selection);
package Implements_Gtk_Section_Model is new Glib.Types.Implements
(Gtk.Section_Model.Gtk_Section_Model, Gtk_Multi_Selection_Record, Gtk_Multi_Selection);
package Implements_Gtk_Selection_Model is new Glib.Types.Implements
(Gtk.Selection_Model.Gtk_Selection_Model, Gtk_Multi_Selection_Record, Gtk_Multi_Selection);
procedure Initialize
(Self : not null access Gtk_Multi_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_Multi_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_Multi_Selection_Record;
Position : Guint;
Removed : Guint;
Added : Guint)
Model_Property : constant Glib.Properties.Property_Boxed;
Type: Gio.List_Model The list managed by this selection.
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_Multi_Selection_Record;
Position : Guint;
N_Items : Guint)
function Select_All
(Self : not null access Gtk_Multi_Selection_Record) return Boolean
function Select_Item
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
Unselect_Rest : Boolean) return Boolean
function Select_Range
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
N_Items : Guint;
Unselect_Rest : Boolean) return Boolean
procedure Selection_Changed
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
N_Items : Guint)
procedure Set_Model
(Self : not null access Gtk_Multi_Selection_Record;
Model : Glib.List_Model.Glist_Model)
Sets the model that Self should wrap. If Model is null, Self will be empty.
A GListModel to wrap
function Set_Selection
(Self : not null access Gtk_Multi_Selection_Record;
Selected : Gtk.Bitset.Gtk_Bitset;
Mask : Gtk.Bitset.Gtk_Bitset) return Boolean
function Unselect_All
(Self : not null access Gtk_Multi_Selection_Record) return Boolean
function Unselect_Item
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint) return Boolean
function Unselect_Range
(Self : not null access Gtk_Multi_Selection_Record;
Position : Guint;
N_Items : Guint) return Boolean