Cogl.Framebuffer.prototype.get_context

function get_context(): Cogl.Context {
    // Gjs wrapper for cogl_framebuffer_get_context()
}
  

Can be used to query the Cogl.Context a given framebuffer was instantiated within. This is the Cogl.Context that was passed to Cogl.Onscreen.new for example.

Since 1.8

Returns

The Cogl.Context that the given framebuffer was instantiated within.