Package org.gnome.gtk
Interface CellRendererCombo.ChangedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
CellRendererCombo
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface CellRendererCombo.ChangedCallback
extends FunctionPointer
Functional interface declaration of the
ChangedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceCellRendererCombo, MemorySegment pathString, MemorySegment newIter) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to GtkComboBox, GtkCellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argumentnewIter
corresponds to the newly selected item in the combo box and it is relative to the GtkTreeModel set via the model property on GtkCellRendererCombo.Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or editing_canceled signal.
-
upcall
default void upcall(MemorySegment sourceCellRendererCombo, MemorySegment pathString, MemorySegment newIter) Theupcall
method is called from native code. The parameters are marshaled andrun(java.lang.String, org.gnome.gtk.TreeIter)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-