Class FlattenListModel

All Implemented Interfaces:
PointerInterface

public class FlattenListModel extends Object
`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.

https://docs.gtk.org/gtk4/class.FlattenListModel.html

  • Constructor Details

    • FlattenListModel

      public FlattenListModel(PointerContainer pointer)
    • FlattenListModel

      public FlattenListModel(@Nullable ListModel model)
      Creates a new `GtkFlattenListModel` that flattens @list.
      Parameters:
      model - the model to be flattened
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getModel

      public ListModel getModel()
      Gets the model set via gtk_flatten_list_model_set_model().
      Returns:
      The model flattened by @self
    • getModelForItem

      public ListModel getModelForItem(int position)
      Returns the model containing the item at the given position.
      Parameters:
      position - a position
      Returns:
      the model containing the item at @position
    • setModel

      public void setModel(@Nullable ListModel model)
      Sets a new model to be flattened.
      Parameters:
      model - the new model
    • asListModel

      public ListModel asListModel()
      Implements interface ListModel. Call this to get access to interface functions.
      Returns:
      ListModel
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()