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.DisplayorNone) – ACogl.Displaypointer- Raises:
- Returns:
A newly allocated
Cogl.Context- Return type:
Creates a new
Cogl.Contextwhich acts as an application sandbox for any state objects that are allocated.New in version 1.8.
- get_display()¶
- Returns:
The
Cogl.Displayassociated with the given self.- Return type:
Retrieves the
Cogl.Displaythat is internally associated with the given self. This will return the sameCogl.Displaythat was passed toCogl.Context.new() or ifNonewas 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.Rendererassociated with the given self.- Return type:
Retrieves the
Cogl.Rendererthat is internally associated with the given self. This will return the sameCogl.Rendererthat was passed toCogl.Display.new() or ifNonewas 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.