Cogl.Framebuffer.prototype.get_viewport_height

function get_viewport_height(): Number(gfloat) {
    // Gjs wrapper for cogl_framebuffer_get_viewport_height()
}
  

Queries the height of the viewport as set using Cogl.Framebuffer.prototype.set_viewport or the default value which is the height of the framebuffer.

Since 1.8

Returns

The height of the viewport.