Cogl.Context.prototype.get_display

function get_display(): Cogl.Display {
    // Gjs wrapper for cogl_context_get_display()
}
  

Retrieves the Cogl.Display that is internally associated with the given context. This will return the same Cogl.Display that was passed to Cogl.Context.new or if null was passed to Cogl.Context.new then this function returns a pointer to the display that was automatically setup internally.

Since 1.8

Returns

The Cogl.Display associated with the given context.