Gimp.Display.prototype.is_valid

function is_valid(): Boolean {
    // Gjs wrapper for gimp_display_is_valid()
}
  

Returns TRUE if the display is valid.

This procedure checks if the given display is valid and refers to an existing display.

Since 2.4

Returns

Whether the display is valid.