Gtk.Widget.prototype.is_visible

function is_visible():Boolean {
    // Gjs wrapper for gtk_widget_is_visible()
}

Determines whether the widget and all its parents are marked as visible.

This function does not check if the widget is obscured in any way.

See also Gtk.Widget.prototype.get_visible and Gtk.set_visible

Since 3.8

Returns

true if the widget and all its parents are visible