Package ch.bailu.gtk.gtk
Klasse SelectionModelInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.SelectionModelInterface
- Alle implementierten Schnittstellen:
PointerInterface
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.
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.
https://docs.gtk.org/gtk4/struct.SelectionModelInterface.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
Private field: direct-typestatic final StringReturn a bitset with all currently selected
items in the given range.static final StringReturn if the item at the given position is selected.static final StringSelect all items in the model.static final StringSelect the item in the given position.static final StringSelect all items in the given range.static final StringSet selection state of all items in mask to selected.static final StringUnselect all items in the model.static final StringUnselect the item in the given position.static final StringUnselect all items in the given range. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandlerch.bailu.gtk.gtk.JnaSelectionModelInterface.OnGetSelectionInRangeReturn a bitset with all currently selected
items in the given range.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnIsSelectedReturn if the item at the given position is selected.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectAllSelect all items in the model.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectItemSelect the item in the given position.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectRangeSelect all items in the given range.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSetSelectionSet selection state of all items in mask to selected.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectAllUnselect all items in the model.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectItemUnselect the item in the given position.ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectRangeUnselect all items in the given range.static intstatic TypeSystem.TypeSizestatic TypeSystem.TypeSizevoidsetFieldGetSelectionInRange(SelectionModelInterface.OnGetSelectionInRange get_selection_in_range) Return a bitset with all currently selected
items in the given range.voidsetFieldIsSelected(SelectionModelInterface.OnIsSelected is_selected) Return if the item at the given position is selected.voidsetFieldSelectAll(SelectionModelInterface.OnSelectAll select_all) Select all items in the model.voidsetFieldSelectItem(SelectionModelInterface.OnSelectItem select_item) Select the item in the given position.voidsetFieldSelectRange(SelectionModelInterface.OnSelectRange select_range) Select all items in the given range.voidsetFieldSetSelection(SelectionModelInterface.OnSetSelection set_selection) Set selection state of all items in mask to selected.voidsetFieldUnselectAll(SelectionModelInterface.OnUnselectAll unselect_all) Unselect all items in the model.voidsetFieldUnselectItem(SelectionModelInterface.OnUnselectItem unselect_item) Unselect the item in the given position.voidsetFieldUnselectRange(SelectionModelInterface.OnUnselectRange unselect_range) Unselect all items in the given range.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
G_IFACE
Private field: direct-type- Siehe auch:
-
IS_SELECTED
Return if the item at the given position is selected.
SeeSelectionModelInterface.OnIsSelected.onIsSelected(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int)- Siehe auch:
-
GET_SELECTION_IN_RANGE
Return a bitset with all currently selected
items in the given range. By default, this function will call
`GtkSelectionModel::is_selected()` on all items in the given range.
SeeSelectionModelInterface.OnGetSelectionInRange.onGetSelectionInRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int)- Siehe auch:
-
SELECT_ITEM
Select the item in the given position. If the operation
is known to fail, return %FALSE.
SeeSelectionModelInterface.OnSelectItem.onSelectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, boolean)- Siehe auch:
-
UNSELECT_ITEM
Unselect the item in the given position. If the
operation is known to fail, return %FALSE.
SeeSelectionModelInterface.OnUnselectItem.onUnselectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int)- Siehe auch:
-
SELECT_RANGE
Select all items in the given range. If the operation
is unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectRange.onSelectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int, boolean)- Siehe auch:
-
UNSELECT_RANGE
Unselect all items in the given range. If the
operation is unsupported or known to fail for all items, return
%FALSE.
SeeSelectionModelInterface.OnUnselectRange.onUnselectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int)- Siehe auch:
-
SELECT_ALL
Select all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectAll.onSelectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel)- Siehe auch:
-
UNSELECT_ALL
Unselect all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnUnselectAll.onUnselectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel)- Siehe auch:
-
SET_SELECTION
Set selection state of all items in mask to selected.
See gtk_selection_model_set_selection() for a detailed explanation
of this function.
SeeSelectionModelInterface.OnSetSelection.onSetSelection(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, ch.bailu.gtk.gtk.Bitset, ch.bailu.gtk.gtk.Bitset)- Siehe auch:
-
-
Konstruktordetails
-
SelectionModelInterface
-
SelectionModelInterface
public SelectionModelInterface()
-
-
Methodendetails
-
getClassHandler
-
setFieldIsSelected
Return if the item at the given position is selected.
SeeSelectionModelInterface.OnIsSelected.onIsSelected(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int) -
getFieldIsSelected
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnIsSelected getFieldIsSelected()Return if the item at the given position is selected.
SeeSelectionModelInterface.OnIsSelected.onIsSelected(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int) -
setFieldGetSelectionInRange
public void setFieldGetSelectionInRange(SelectionModelInterface.OnGetSelectionInRange get_selection_in_range) Return a bitset with all currently selected
items in the given range. By default, this function will call
`GtkSelectionModel::is_selected()` on all items in the given range.
SeeSelectionModelInterface.OnGetSelectionInRange.onGetSelectionInRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int) -
getFieldGetSelectionInRange
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnGetSelectionInRange getFieldGetSelectionInRange()Return a bitset with all currently selected
items in the given range. By default, this function will call
`GtkSelectionModel::is_selected()` on all items in the given range.
SeeSelectionModelInterface.OnGetSelectionInRange.onGetSelectionInRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int) -
setFieldSelectItem
Select the item in the given position. If the operation
is known to fail, return %FALSE.
SeeSelectionModelInterface.OnSelectItem.onSelectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, boolean) -
getFieldSelectItem
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectItem getFieldSelectItem()Select the item in the given position. If the operation
is known to fail, return %FALSE.
SeeSelectionModelInterface.OnSelectItem.onSelectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, boolean) -
setFieldUnselectItem
Unselect the item in the given position. If the
operation is known to fail, return %FALSE.
SeeSelectionModelInterface.OnUnselectItem.onUnselectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int) -
getFieldUnselectItem
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectItem getFieldUnselectItem()Unselect the item in the given position. If the
operation is known to fail, return %FALSE.
SeeSelectionModelInterface.OnUnselectItem.onUnselectItem(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int) -
setFieldSelectRange
Select all items in the given range. If the operation
is unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectRange.onSelectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int, boolean) -
getFieldSelectRange
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectRange getFieldSelectRange()Select all items in the given range. If the operation
is unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectRange.onSelectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int, boolean) -
setFieldUnselectRange
Unselect all items in the given range. If the
operation is unsupported or known to fail for all items, return
%FALSE.
SeeSelectionModelInterface.OnUnselectRange.onUnselectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int) -
getFieldUnselectRange
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectRange getFieldUnselectRange()Unselect all items in the given range. If the
operation is unsupported or known to fail for all items, return
%FALSE.
SeeSelectionModelInterface.OnUnselectRange.onUnselectRange(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, int, int) -
setFieldSelectAll
Select all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectAll.onSelectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel) -
getFieldSelectAll
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSelectAll getFieldSelectAll()Select all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnSelectAll.onSelectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel) -
setFieldUnselectAll
Unselect all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnUnselectAll.onUnselectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel) -
getFieldUnselectAll
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnUnselectAll getFieldUnselectAll()Unselect all items in the model. If the operation is
unsupported or known to fail for all items, return %FALSE.
SeeSelectionModelInterface.OnUnselectAll.onUnselectAll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel) -
setFieldSetSelection
Set selection state of all items in mask to selected.
See gtk_selection_model_set_selection() for a detailed explanation
of this function.
SeeSelectionModelInterface.OnSetSelection.onSetSelection(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, ch.bailu.gtk.gtk.Bitset, ch.bailu.gtk.gtk.Bitset) -
getFieldSetSelection
public ch.bailu.gtk.gtk.JnaSelectionModelInterface.OnSetSelection getFieldSetSelection()Set selection state of all items in mask to selected.
See gtk_selection_model_set_selection() for a detailed explanation
of this function.
SeeSelectionModelInterface.OnSetSelection.onSetSelection(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.SelectionModel, ch.bailu.gtk.gtk.Bitset, ch.bailu.gtk.gtk.Bitset) -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-