Cogl.Context¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Cogl.Context¶
- Bases:
- Abstract:
No
- classmethod new(display)¶
- Parameters:
display (
Cogl.Display
orNone
) – ACogl.Display
pointer- Raises:
- Returns:
A newly allocated
Cogl.Context
- Return type:
Creates a new
Cogl.Context
which acts as an application sandbox for any state objects that are allocated.New in version 1.8.
- get_display()¶
- Returns:
The
Cogl.Display
associated with the given self.- Return type:
Retrieves the
Cogl.Display
that is internally associated with the given self. This will return the sameCogl.Display
that was passed toCogl.Context.new
() or ifNone
was passed toCogl.Context.new
() then this function returns a pointer to the display that was automatically setup internally.New in version 1.8.
- get_renderer()¶
- Returns:
The
Cogl.Renderer
associated with the given self.- Return type:
Retrieves the
Cogl.Renderer
that is internally associated with the given self. This will return the sameCogl.Renderer
that was passed toCogl.Display.new
() or ifNone
was passed toCogl.Display.new
() orCogl.Context.new
() then this function returns a pointer to the renderer that was automatically connected internally.New in version 1.16.