Class NoSelection

All Implemented Interfaces:
PointerInterface

public class NoSelection extends Object
`GtkNoSelection` is a `GtkSelectionModel` that does not allow selecting
anything.

This model is meant to be used as a simple wrapper around a `GListModel`
when a `GtkSelectionModel` is required.

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

  • Constructor Details

    • NoSelection

      public NoSelection(PointerContainer pointer)
    • NoSelection

      public NoSelection(@Nullable ListModel model)
      Creates a new selection to handle @model.
      Parameters:
      model - the `GListModel` to manage
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getModel

      public ListModel getModel()
      Gets the model that @self is wrapping.
      Returns:
      The model being wrapped
    • setModel

      public void setModel(@Nullable ListModel model)
      Sets the model that @self should wrap.

      If @model is %NULL, this model will be empty.
      Parameters:
      model - A `GListModel` to wrap
    • asListModel

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

      public SelectionModel asSelectionModel()
      Implements interface SelectionModel. Call this to get access to interface functions.
      Returns:
      SelectionModel
    • 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()