Gtk.Widget.prototype.has_screen
function has_screen():Boolean {
// Gjs wrapper for gtk_widget_has_screen()
}Checks whether there is a Gdk.Screen is associated with this widget. All toplevel widgets have an associated screen, and all widgets added into a hierarchy with a toplevel window at the top.
Since 2.2
- Returns
true if there is a Gdk.Screen associcated with the widget.