Package: gtk
Class gtk:overlay
Superclassesgtk:bin, gtk:container, gtk:widget, gtk:buildable, gobject: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. For example, 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 Detailsindex The index child property of type :int (Read / Write) The index of the overlay in the parent, -1 for the main child. Allowed values: >= -1 Default value: 0 pass-through The pass-through child property of type :boolean (Read / Write) Whether pass through input does not affect main child. Default value: false Signal DetailsThe "get-child-position" signallambda (overlay widget allocation) :run-last
| Inherited Slot Access FunctionsSee also |
2025-06-27