|
Picasso API
2.8
|
Functions | |
| PEXPORT ps_context *PICAPI | ps_context_create (ps_canvas *canvas, ps_context *shared_context) |
| Create a new graphic context for a canvas. More... | |
| PEXPORT ps_context *PICAPI | ps_context_ref (ps_context *ctx) |
| Increases the reference count of the context by 1. More... | |
| PEXPORT void PICAPI | ps_context_unref (ps_context *ctx) |
| Decrements the reference count for the context object. If the reference count on the context falls to 0, the context is freed. More... | |
| PEXPORT ps_canvas *PICAPI | ps_context_set_canvas (ps_context *ctx, ps_canvas *canvas) |
| Set a new canvas into a context, and return the old one. More... | |
| PEXPORT ps_canvas *PICAPI | ps_context_get_canvas (ps_context *ctx) |
| Get the canvas from the context. More... | |
| ps_context * ps_context_create | ( | ps_canvas * | canvas, |
| ps_context * | shared_context | ||
| ) |
Create a new graphic context for a canvas.
| canvas | Pointer to an existing canvas object. |
| shared_context | Resources shared context, NULL mean resources not shared. |
| ps_canvas * ps_context_get_canvas | ( | ps_context * | ctx | ) |
Get the canvas from the context.
| ctx | Pointer to an existing context object. |
| ps_context * ps_context_ref | ( | ps_context * | ctx | ) |
Increases the reference count of the context by 1.
| ctx | Pointer to an existing context object. |
| ps_canvas * ps_context_set_canvas | ( | ps_context * | ctx, |
| ps_canvas * | canvas | ||
| ) |
Set a new canvas into a context, and return the old one.
| ctx | Pointer to an existing context object. |
| canvas | Pointer to an existing canvas object to be set. |
| void ps_context_unref | ( | ps_context * | ctx | ) |
Decrements the reference count for the context object. If the reference count on the context falls to 0, the context is freed.
| ctx | Pointer to an existing context object. |
1.8.17