Package ch.bailu.gtk.gtk
Interface Overlay.OnGetChildPosition
- 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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onGetChildPosition
(Widget widget, Rectangle allocation) Emitted to determine the position and size of any overlay
child widgets.
-
Method Details
-
onGetChildPosition
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 for @widget, relative to
the 'main' child of @overlay.
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 of %GTK_ALIGN_FILL will cause the overlay to
be full-width/height). If the main child is a
`GtkScrolledWindow`, the overlays are placed relative
to its contents.- Parameters:
widget
- the child widget to positionallocation
- return location for the allocation- Returns:
- %TRUE if the @allocation has been filled
-