Classes | |
| struct | n_GContext |
Typedefs | |
| typedef struct n_GContext | n_GContext |
Functions | |
| void | n_graphics_context_set_stroke_color (n_GContext *ctx, n_GColor color) |
| void | n_graphics_context_set_fill_color (n_GContext *ctx, n_GColor color) |
| void | n_graphics_context_set_text_color (n_GContext *ctx, n_GColor color) |
| void | n_graphics_context_set_stroke_caps (n_GContext *ctx, bool caps) |
| void | n_graphics_context_set_stroke_width (n_GContext *ctx, uint16_t width) |
| void | n_graphics_context_set_antialiased (n_GContext *ctx, bool antialias) |
| void | n_graphics_context_begin (n_GContext *ctx) |
| void | n_graphics_context_end (n_GContext *ctx) |
| n_GContext * | n_graphics_context_from_buffer (uint8_t *buf) |
| n_GContext * | n_graphics_context_from_graphics_context (GContext *ctx) |
| void | n_graphics_context_destroy (n_GContext *ctx) |
The graphics context itself.
| typedef struct n_GContext n_GContext |
Internal representation of the graphics context itself. Created via n_graphics_context_from_buffer() or n_graphics_context_from_graphics_context().
| void n_graphics_context_begin | ( | n_GContext * | ctx | ) |
In Pebble OS, use this before drawing to the n_GContext for contexts created from a graphics context (via n_graphics_context_from_graphics_context()). Not required on other platforms.
| void n_graphics_context_destroy | ( | n_GContext * | ctx | ) |
Destroys a n_GContext.
| void n_graphics_context_end | ( | n_GContext * | ctx | ) |
In Pebble OS, use this before drawing to the n_GContext for contexts created from a graphics context (via n_graphics_context_from_graphics_context()). Not required on other platforms.
| n_GContext* n_graphics_context_from_buffer | ( | uint8_t * | buf | ) |
Creates a n_GContext based on a framebuffer.
| n_GContext* n_graphics_context_from_graphics_context | ( | GContext * | ctx | ) |
Creates a n_GContext based on a GContext (provided by Pebble OS).
| void n_graphics_context_set_antialiased | ( | n_GContext * | ctx, |
| bool | antialias | ||
| ) |
Sets whether antialiasing should be used.
| void n_graphics_context_set_fill_color | ( | n_GContext * | ctx, |
| n_GColor | color | ||
| ) |
Sets the n_GColor used to fill primitives.
| void n_graphics_context_set_stroke_caps | ( | n_GContext * | ctx, |
| bool | caps | ||
| ) |
Sets whether stroke caps should be drawn.
| void n_graphics_context_set_stroke_color | ( | n_GContext * | ctx, |
| n_GColor | color | ||
| ) |
Sets the n_GColor used to draw strokes.
| void n_graphics_context_set_stroke_width | ( | n_GContext * | ctx, |
| uint16_t | width | ||
| ) |
Sets the stroke width.
| void n_graphics_context_set_text_color | ( | n_GContext * | ctx, |
| n_GColor | color | ||
| ) |
Sets the n_GColor used to draw text.