Package org.gnome.gtk
Class SelectionModel.SelectionModelInterface
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gtk.SelectionModel.SelectionModelInterface
- All Implemented Interfaces:
Proxy
- Enclosing interface:
SelectionModel<T extends GObject>
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 Summary
ConstructorDescriptionAllocate a new SelectionModelInterface.SelectionModelInterface
(Arena arena) Allocate a new SelectionModelInterface.SelectionModelInterface
(MemorySegment address) Create a SelectionModelInterface proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideGetSelectionInRange
(Arena arena, Method method) Override virtual methodget_selection_in_range
.void
overrideIsSelected
(Arena arena, Method method) Override virtual methodis_selected
.void
overrideSelectAll
(Arena arena, Method method) Override virtual methodselect_all
.void
overrideSelectItem
(Arena arena, Method method) Override virtual methodselect_item
.void
overrideSelectRange
(Arena arena, Method method) Override virtual methodselect_range
.void
overrideSetSelection
(Arena arena, Method method) Override virtual methodset_selection
.void
overrideUnselectAll
(Arena arena, Method method) Override virtual methodunselect_all
.void
overrideUnselectItem
(Arena arena, Method method) Override virtual methodunselect_item
.void
overrideUnselectRange
(Arena arena, Method method) Override virtual methodunselect_range
.Methods inherited from class org.gnome.gobject.TypeInterface
addPrerequisite, getPlugin, instantiatablePrerequisite, peek, peekParent, prerequisites, readGInstanceType, readGType, writeGInstanceType, writeGType
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SelectionModelInterface
Create a SelectionModelInterface proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
SelectionModelInterface
Allocate a new SelectionModelInterface.- Parameters:
arena
- to control the memory allocation scope
-
SelectionModelInterface
public SelectionModelInterface()Allocate a new SelectionModelInterface. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideIsSelected
-
overrideGetSelectionInRange
-
overrideSelectItem
-
overrideUnselectItem
-
overrideSelectRange
-
overrideUnselectRange
-
overrideSelectAll
-
overrideUnselectAll
-
overrideSetSelection
-