Class

GtkFlattenListModel

Description [src]

final class Gtk.FlattenListModel : GObject.Object {
  /* No available fields */
}

GtkFlattenListModel is 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.

Ancestors

  • GObject

Implements

Constructors

gtk_flatten_list_model_new

Creates a new GtkFlattenListModel that flattens list.

Instance methods

gtk_flatten_list_model_get_model

Gets the model set via gtk_flatten_list_model_set_model().

gtk_flatten_list_model_get_model_for_item

Returns the model containing the item at the given position.

gtk_flatten_list_model_set_model

Sets a new model to be flattened.

Methods inherited from GtkSectionModel (2)
gtk_section_model_get_section

Query the section that covers the given position. The number of items in the section can be computed by out_end - out_start.

Available since: 4.12

gtk_section_model_sections_changed
No description available.

Properties

Gtk.FlattenListModel:item-type

The type of items. See g_list_model_get_item_type().

Available since: 4.8

Gtk.FlattenListModel:model

The model being flattened.

Gtk.FlattenListModel:n-items

The number of items. See g_list_model_get_n_items().

Available since: 4.8

Class structure

struct GtkFlattenListModelClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.