Cogl.kms_display_set_layout

function kms_display_set_layout(display: Cogl.Display, width: Number(gint), height: Number(gint), crtcs: Cogl.KmsCrtc, n_crtcs: Number(gint)): Cogl.Bool {
    // Gjs wrapper for cogl_kms_display_set_layout()
}
  

Configures display to use a framebuffer sized width x height, covering the CRTCS in crtcs. width and height must be within the driver framebuffer limits, and crtcs must be valid KMS API IDs.

Calling this function overrides the automatic mode setting done by Cogl, and for this reason must be called before the first call to Cogl.Onscreen.prototype.swap_buffers.

If you want to restore the default behaviour, you can call this function with width and height set to -1.

display
width

the framebuffer width

height

the framebuffer height

crtcs

the array of Cogl.KmsCrtc structure with the desired CRTC layout

n_crtcs
Returns