Set_overlay_pass_through() set_overlay_pass_through (self, widget:Gtk.Widget, pass_through:bool)Ĭonvenience function to set the value of the “pass-through”child property for widget. Whether the widget is a pass through child. Get_overlay_pass_through() get_overlay_pass_through (self, widget:Gtk.Widget) -> boolĬonvenience function to get the value of the “pass-through”child property for widget. It also affects the default focus chain order. Moves child to a new index in the list of overlay children.The list contains overlays in the order that these wereadded to overlay.Ī widget’s index in the overlay children list determines which orderthe children are drawn if they overlap. Reorder_overlay() reorder_overlay (self, child:Gtk.Widget, position:int) The position at whichwidget` is placed is determinedfrom its “halign” and “valign” properties. The widget will be stacked on top of the main widgetadded with `Gtk.Container:add(). The Gtk.Overlay implementation of the Gtk.Buildable interface supports placing a child as an overlay by specifying overlay as the type attribute of a \ element.įunction Details: new() new () -> Gtk.WidgetĪdd_overlay() add_overlay (self, widget:Gtk.Widget) More complicated placement of overlays is possible by connecting to the “get-child-position” signal. The position can be adjusted by setting the margin properties of the child to non-zero values. a widget with both alignments set to GTK_ALIGN_START will be placed at the top left corner of the Gtk.Overlay container, whereas an overlay with halign set to GTK_ALIGN_CENTER and valign set to GTK_ALIGN_END will be placed a the bottom edge of the Gtk.Overlay, horizontally centered. The position of each overlay widget is determined by its “halign” and “valign” properties. Gtk.Overlay is a container which contains a single main child, on top of which it can place “overlay” widgets.