Class SelectionModel.SelectionModelInterface

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gtk.SelectionModel.SelectionModelInterface
All Implemented Interfaces:
Proxy
Enclosing interface:
SelectionModel<T extends GObject>

public static class SelectionModel.SelectionModelInterface extends TypeInterface

The list of virtual functions for the GtkSelectionModel interface. No function must be implemented, but unless GtkSelectionModel::is_selected() is implemented, it will not be possible to select items in the set.

The model does not need to implement any functions to support either selecting or unselecting items. Of course, if the model does not do that, it means that users cannot select or unselect items in a list widget using the model.

All selection functions fall back to GtkSelectionModel::set_selection() so it is sufficient to implement just that function for full selection support.

  • Constructor Details

    • SelectionModelInterface

      public SelectionModelInterface(MemorySegment address)
      Create a SelectionModelInterface proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideIsSelected

      public void overrideIsSelected(Arena arena, @Nullable Method method)
      Override virtual method is_selected.
      Parameters:
      method - the method to invoke
    • overrideGetSelectionInRange

      public void overrideGetSelectionInRange(Arena arena, @Nullable Method method)
      Override virtual method get_selection_in_range.
      Parameters:
      method - the method to invoke
    • overrideSelectItem

      public void overrideSelectItem(Arena arena, @Nullable Method method)
      Override virtual method select_item.
      Parameters:
      method - the method to invoke
    • overrideUnselectItem

      public void overrideUnselectItem(Arena arena, @Nullable Method method)
      Override virtual method unselect_item.
      Parameters:
      method - the method to invoke
    • overrideSelectRange

      public void overrideSelectRange(Arena arena, @Nullable Method method)
      Override virtual method select_range.
      Parameters:
      method - the method to invoke
    • overrideUnselectRange

      public void overrideUnselectRange(Arena arena, @Nullable Method method)
      Override virtual method unselect_range.
      Parameters:
      method - the method to invoke
    • overrideSelectAll

      public void overrideSelectAll(Arena arena, @Nullable Method method)
      Override virtual method select_all.
      Parameters:
      method - the method to invoke
    • overrideUnselectAll

      public void overrideUnselectAll(Arena arena, @Nullable Method method)
      Override virtual method unselect_all.
      Parameters:
      method - the method to invoke
    • overrideSetSelection

      public void overrideSetSelection(Arena arena, @Nullable Method method)
      Override virtual method set_selection.
      Parameters:
      method - the method to invoke