Package org.gnome.gtk
Interface Overlay.GetChildPositionCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Overlay
- 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 Overlay.GetChildPositionCallback
extends FunctionPointer
Functional interface declaration of the
GetChildPositionCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Emitted to determine the position and size of any overlay child widgets.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 int
upcall
(MemorySegment sourceOverlay, MemorySegment widget, MemorySegment allocation) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted to determine the position and size of any overlay child widgets.A handler for this signal should fill
allocation
with the desired position and size forwidget
, relative to the 'main' child ofoverlay
.The default handler for this signal uses the
widget
's halign and valign properties to determine the position and gives the widget its natural size (except that an alignment ofAlign.FILL
will cause the overlay to be full-width/height). If the main child is aGtkScrolledWindow
, the overlays are placed relative to its contents. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.Widget, org.gnome.gdk.Rectangle)
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
-