Generated by Doxygen 1.8.14
Neographics
Context

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_GContextn_graphics_context_from_buffer (uint8_t *buf)
 
n_GContextn_graphics_context_from_graphics_context (GContext *ctx)
 
void n_graphics_context_destroy (n_GContext *ctx)
 

Detailed Description

The graphics context itself.

Typedef Documentation

◆ n_GContext

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().

Function Documentation

◆ n_graphics_context_begin()

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.

◆ n_graphics_context_destroy()

void n_graphics_context_destroy ( n_GContext ctx)

Destroys a n_GContext.

◆ n_graphics_context_end()

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_graphics_context_from_buffer()

n_GContext* n_graphics_context_from_buffer ( uint8_t *  buf)

Creates a n_GContext based on a framebuffer.

◆ n_graphics_context_from_graphics_context()

n_GContext* n_graphics_context_from_graphics_context ( GContext *  ctx)

Creates a n_GContext based on a GContext (provided by Pebble OS).

◆ n_graphics_context_set_antialiased()

void n_graphics_context_set_antialiased ( n_GContext ctx,
bool  antialias 
)

Sets whether antialiasing should be used.

Note
Not implemented yet.

◆ n_graphics_context_set_fill_color()

void n_graphics_context_set_fill_color ( n_GContext ctx,
n_GColor  color 
)

Sets the n_GColor used to fill primitives.

◆ n_graphics_context_set_stroke_caps()

void n_graphics_context_set_stroke_caps ( n_GContext ctx,
bool  caps 
)

Sets whether stroke caps should be drawn.

◆ n_graphics_context_set_stroke_color()

void n_graphics_context_set_stroke_color ( n_GContext ctx,
n_GColor  color 
)

Sets the n_GColor used to draw strokes.

◆ n_graphics_context_set_stroke_width()

void n_graphics_context_set_stroke_width ( n_GContext ctx,
uint16_t  width 
)

Sets the stroke width.

◆ n_graphics_context_set_text_color()

void n_graphics_context_set_text_color ( n_GContext ctx,
n_GColor  color 
)

Sets the n_GColor used to draw text.