Cogl.Framebuffer.prototype.get_viewport_width
function get_viewport_width(): Number(gfloat) {
// Gjs wrapper for cogl_framebuffer_get_viewport_width()
}
Queries the width of the viewport as set using Cogl.Framebuffer.prototype.set_viewport or the default value which is the width of the framebuffer.
Since 1.8
- Returns
The width of the viewport.