A list model that presents the selection from a GtkSelectionModel.
function "+"
(Widget : access Gtk_Selection_Filter_Model_Record'Class)
return Glib.List_Model.Glist_Model
function "-"
(Interf : Glib.List_Model.Glist_Model)
return Gtk_Selection_Filter_Model
function Get_Item
(Self : not null access Gtk_Selection_Filter_Model_Record;
Position : Guint) return Glib.Object.GObject
function Get_Item_Type
(Self : not null access Gtk_Selection_Filter_Model_Record)
return GType
function Get_Model
(Self : not null access Gtk_Selection_Filter_Model_Record)
return Gtk.Selection_Model.Gtk_Selection_Model
Gets the model currently filtered or null if none.
The model that gets filtered
function Get_N_Items
(Self : not null access Gtk_Selection_Filter_Model_Record)
return Guint
function Get_Type return Glib.GType
procedure Gtk_New
(Self : out Gtk_Selection_Filter_Model;
Model : Gtk.Selection_Model.Gtk_Selection_Model)
Creates a new GtkSelectionFilterModel that will include the selected items from the underlying selection model. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the selection model to filter
type Gtk_Selection_Filter_Model is access all Gtk_Selection_Filter_Model_Record'Class;
function Gtk_Selection_Filter_Model_New
(Model : Gtk.Selection_Model.Gtk_Selection_Model)
return Gtk_Selection_Filter_Model
Creates a new GtkSelectionFilterModel that will include the selected items from the underlying selection model.
the selection model to filter
type Gtk_Selection_Filter_Model_Record is new GObject_Record with null record;
package Implements_Glist_Model is new Glib.Types.Implements
(Glib.List_Model.Glist_Model, Gtk_Selection_Filter_Model_Record, Gtk_Selection_Filter_Model);
procedure Initialize
(Self : not null access Gtk_Selection_Filter_Model_Record'Class;
Model : Gtk.Selection_Model.Gtk_Selection_Model)
Creates a new GtkSelectionFilterModel that will include the selected items from the underlying selection model. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the selection model to filter
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_Selection_Filter_Model_Record;
Position : Guint;
Removed : Guint;
Added : Guint)
Model_Property : constant Glib.Properties.Property_Interface;
Type: Gtk.Selection_Model.Gtk_Selection_Model The model being filtered.
N_Items_Property : constant Glib.Properties.Property_Uint;
The number of items. See [methodGio.ListModel.get_n_items].
procedure Set_Model
(Self : not null access Gtk_Selection_Filter_Model_Record;
Model : Gtk.Selection_Model.Gtk_Selection_Model)
Sets the model to be filtered. Note that GTK makes no effort to ensure that Model conforms to the item type of Self. It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.
The model to be filtered