Grx.save_current_context
@accepts(Grx.Context)
@returns(Grx.Context)
def save_current_context(where):
# Python wrapper for grx_save_current_context()
Saves a copy of the current context.
This is generally used to temporarily save and restore a context. Example: |[<!-- language="C" --> void my_function (GrxContext *my_context) { GrxContext save;
grx_save_current_context (&save); grx_set_current_context (my_context); // call some drawing functions grx_set_current_context (&save); } ]|
- where
unused Grx.Context where the context will be saved or None
- Returns