A list model that concatenates other list models.
GtkFlattenListModel takes a list model containing list models, and flattens it into a single model. Each list model becomes a section in the single model.
function "+"
(Widget : access Gtk_Flatten_List_Model_Record'Class)
return Glib.List_Model.Glist_Model
function "+"
(Widget : access Gtk_Flatten_List_Model_Record'Class)
return Gtk.Section_Model.Gtk_Section_Model
function "-"
(Interf : Glib.List_Model.Glist_Model)
return Gtk_Flatten_List_Model
function "-"
(Interf : Gtk.Section_Model.Gtk_Section_Model)
return Gtk_Flatten_List_Model
function Get_Item
(Self : not null access Gtk_Flatten_List_Model_Record;
Position : Guint) return Glib.Object.GObject
function Get_Item_Type
(Self : not null access Gtk_Flatten_List_Model_Record) return GType
function Get_Model
(Self : not null access Gtk_Flatten_List_Model_Record)
return Glib.List_Model.Glist_Model
Gets the model set via Gtk.Flatten_List_Model.Set_Model.
The model flattened by Self
function Get_Model_For_Item
(Self : not null access Gtk_Flatten_List_Model_Record;
Position : Guint) return Glib.List_Model.Glist_Model
Returns the model containing the item at the given position.
a position
the model containing the item at Position
function Get_N_Items
(Self : not null access Gtk_Flatten_List_Model_Record) return Guint
procedure Get_Section
(Self : not null access Gtk_Flatten_List_Model_Record;
Position : Guint;
Out_Start : out Guint;
Out_End : out Guint)
function Get_Type return Glib.GType
type Gtk_Flatten_List_Model is access all Gtk_Flatten_List_Model_Record'Class;
function Gtk_Flatten_List_Model_New
(Model : Glib.List_Model.Glist_Model) return Gtk_Flatten_List_Model
Creates a new GtkFlattenListModel that flattens List.
the model to be flattened
type Gtk_Flatten_List_Model_Record is new GObject_Record with null record;
procedure Gtk_New
(Self : out Gtk_Flatten_List_Model;
Model : Glib.List_Model.Glist_Model)
Creates a new GtkFlattenListModel that flattens List. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the model to be flattened
package Implements_Glist_Model is new Glib.Types.Implements
(Glib.List_Model.Glist_Model, Gtk_Flatten_List_Model_Record, Gtk_Flatten_List_Model);
package Implements_Gtk_Section_Model is new Glib.Types.Implements
(Gtk.Section_Model.Gtk_Section_Model, Gtk_Flatten_List_Model_Record, Gtk_Flatten_List_Model);
procedure Initialize
(Self : not null access Gtk_Flatten_List_Model_Record'Class;
Model : Glib.List_Model.Glist_Model)
Creates a new GtkFlattenListModel that flattens List. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the model to be flattened
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_Flatten_List_Model_Record;
Position : Guint;
Removed : Guint;
Added : Guint)
Model_Property : constant Glib.Properties.Property_Boxed;
Type: Gio.List_Model The model being flattened.
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_Flatten_List_Model_Record;
Position : Guint;
N_Items : Guint)
procedure Set_Model
(Self : not null access Gtk_Flatten_List_Model_Record;
Model : Glib.List_Model.Glist_Model)
Sets a new model to be flattened.
the new model