Gtk.Overlay.prototype.add_overlay

function add_overlay(widget:Gtk.Widget):void {
    // Gjs wrapper for gtk_overlay_add_overlay()
}

Adds widget to overlay.

The widget will be stacked on top of the main widget added with Gtk.Container.prototype.add.

The position at which widget is placed is determined from its Gtk.halign and Gtk.valign properties.

Since 3.2

widget

a Gtk.Widget to be added to the container