Package: gtk
Class gtk-overlay
Superclassesgtk-bin, gtk-container, gtk-widget, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details The gtk-overlay widget is a container which contains a single main
widget, on top of which it can place overlay widgets.
The position of each overlay widget is determined by its halign and valign properties. E.g. a overlay widget with both alignments set to :start will be placed at
the top left corner of the main widget, whereas an overlay with the halign property set to :center and the valign property set to :end will be placed a the
bottom edge of the main widget, horizontally centered. The position can be
adjusted by setting the margin properties of the overlay widget to non-zero
values. More complicated placement of overlays is possible by connecting to the "get-child-position" signal. GtkOverlay as GtkBuildableCSS nodesChild Property Details
Signal DetailsThe "get-child-position" signallambda (overlay widget allocation) :run-lastThe signal is 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 the overlay. The default handler for this signal uses the halign and valign properties of the widget to determine the position and gives the widget its natural size, except that an alignment of :fill will cause the overlay to be full-width/height. If the main child is a gtk-scrolled-window widget, the overlays are placed relative to its contents.
| Inherited Slot Access FunctionsSee also |
*2021-10-21