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 TypeMethodDescriptionvoidThis 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 MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceCellRendererCombo, MemorySegment pathString, MemorySegment newIter) Theupcallmethod 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 argumentnewItercorresponds 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) Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-