Class SelectionFilterModel

All Implemented Interfaces:
PointerInterface

public class SelectionFilterModel extends Object
`GtkSelectionFilterModel` is a list model that presents the selection from
a `GtkSelectionModel`.

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

  • Constructor Details

    • SelectionFilterModel

      public SelectionFilterModel(PointerContainer pointer)
    • SelectionFilterModel

      public SelectionFilterModel(@Nullable SelectionModel model)
      Creates a new `GtkSelectionFilterModel` that will include the
      selected items from the underlying selection model.
      Parameters:
      model - the selection model to filter
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getModel

      public SelectionModel getModel()
      Gets the model currently filtered or %NULL if none.
      Returns:
      The model that gets filtered
    • setModel

      public void setModel(@Nullable SelectionModel 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.
      Parameters:
      model - The model to be filtered
    • 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()