Gtk.Widget.prototype.get_root_window
function get_root_window():Gdk.Window { // Gjs wrapper for gtk_widget_get_root_window() }
Get the root window where this widget is located. This function can only be called after the widget has been added to a widget hierarchy with Gtk.Window at the top.
The root window is useful for such purposes as creating a popup Gdk.Window associated with the window. In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
Since 2.2
- Returns
the Gdk.Window root window for the toplevel for this widget.