Picasso API
2.2
|
Typedefs | |
typedef enum _ps_line_cap | ps_line_cap |
Styles for rendering the endpoint of a stroked line. | |
typedef enum _ps_line_join | ps_line_join |
Junction types for stroked lines. | |
typedef enum _ps_line_inner_join | ps_line_inner_join |
Inner junction types for stroked lines. | |
Enumerations | |
enum | _ps_line_cap { LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE } |
Styles for rendering the endpoint of a stroked line. More... | |
enum | _ps_line_join { LINE_JOIN_MITER, LINE_JOIN_MITER_REVERT, LINE_JOIN_MITER_ROUND, LINE_JOIN_ROUND, LINE_JOIN_BEVEL } |
Junction types for stroked lines. More... | |
enum | _ps_line_inner_join { LINE_INNER_MITER, LINE_INNER_BEVEL, LINE_INNER_JAG, LINE_INNER_ROUND } |
Inner junction types for stroked lines. More... | |
Functions | |
PEXPORT void PICAPI | ps_set_line_cap (ps_context *ctx, ps_line_cap line_cap) |
Set the style for the endpoint of lines in a graphics context. | |
PEXPORT void PICAPI | ps_set_line_join (ps_context *ctx, ps_line_join line_join) |
Set the style for the joins of connected lines in a graphics context. | |
PEXPORT void PICAPI | ps_set_line_inner_join (ps_context *ctx, ps_line_inner_join line_inner_join) |
Set the style for the inner joins of connected lines in a graphics context. | |
PEXPORT float PICAPI | ps_set_line_width (ps_context *ctx, float width) |
Set the line width for a graphics context. | |
PEXPORT float PICAPI | ps_set_miter_limit (ps_context *ctx, float limit) |
Set the miter limit for the joins of connected lines in a graphics context. | |
PEXPORT void PICAPI | ps_set_stroke_color (ps_context *ctx, const ps_color *color) |
Set a color to the context, it is used to stroke a graphic object. | |
PEXPORT void PICAPI | ps_set_stroke_image (ps_context *ctx, const ps_image *image) |
Set a image to the context, it is used to stroke a graphic object. | |
PEXPORT void PICAPI | ps_set_stroke_pattern (ps_context *ctx, const ps_pattern *pattern) |
Set a pattern to the context, it is used to stroke a graphic object. | |
PEXPORT void PICAPI | ps_set_stroke_gradient (ps_context *ctx, const ps_gradient *gradient) |
Set a gradient to the context, it is used to stroke a graphic object. | |
PEXPORT void PICAPI | ps_set_stroke_canvas (ps_context *ctx, const ps_canvas *canvas) |
Set a canvas to the context, it is used to stroke a graphic object. | |
PEXPORT void PICAPI | ps_set_line_dash (ps_context *ctx, float start, const float *dashes, unsigned int num_dashes) |
Set the pattern for dashed lines in the context. | |
PEXPORT void PICAPI | ps_reset_line_dash (ps_context *ctx) |
Clear the dashs from the context, and set to solid. |
enum _ps_line_cap |
Styles for rendering the endpoint of a stroked line.
enum _ps_line_inner_join |
enum _ps_line_join |
Junction types for stroked lines.
void ps_reset_line_dash | ( | ps_context * | ctx | ) |
Clear the dashs from the context, and set to solid.
ctx | Pointer to an existing context object. |
void ps_set_line_cap | ( | ps_context * | ctx, |
ps_line_cap | line_cap | ||
) |
Set the style for the endpoint of lines in a graphics context.
ctx | Pointer to an existing context object. |
line_cap | The cap style of the lines. |
void ps_set_line_dash | ( | ps_context * | ctx, |
float | start, | ||
const float * | dashes, | ||
unsigned int | num_dashes | ||
) |
Set the pattern for dashed lines in the context.
ctx | Pointer to an existing context object. |
start | A value that specifies how far into the dash pattern the line start. |
dashes | An array of values that specify the length of the painted segments and unpainted segments. |
num_dashes | The number of elements in the array. |
void ps_set_line_inner_join | ( | ps_context * | ctx, |
ps_line_inner_join | line_inner_join | ||
) |
Set the style for the inner joins of connected lines in a graphics context.
ctx | Pointer to an existing context object. |
line_inner_join | The inner join style of the lines. |
void ps_set_line_join | ( | ps_context * | ctx, |
ps_line_join | line_join | ||
) |
Set the style for the joins of connected lines in a graphics context.
ctx | Pointer to an existing context object. |
line_join | The join style of the lines. |
float ps_set_line_width | ( | ps_context * | ctx, |
float | width | ||
) |
Set the line width for a graphics context.
ctx | Pointer to an existing context object. |
width | The line width to use, in pixels, must be greater than 0. |
float ps_set_miter_limit | ( | ps_context * | ctx, |
float | limit | ||
) |
Set the miter limit for the joins of connected lines in a graphics context.
ctx | Pointer to an existing context object. |
limit | The miter limit to use. |
void ps_set_stroke_canvas | ( | ps_context * | ctx, |
const ps_canvas * | canvas | ||
) |
Set a canvas to the context, it is used to stroke a graphic object.
ctx | Pointer to an existing context object. |
canvas | The canvas to be set. |
void ps_set_stroke_color | ( | ps_context * | ctx, |
const ps_color * | color | ||
) |
Set a color to the context, it is used to stroke a graphic object.
ctx | Pointer to an existing context object. |
color | The color to be set. |
void ps_set_stroke_gradient | ( | ps_context * | ctx, |
const ps_gradient * | gradient | ||
) |
Set a gradient to the context, it is used to stroke a graphic object.
ctx | Pointer to an existing context object. |
gradient | The gradient to be set. |
void ps_set_stroke_image | ( | ps_context * | ctx, |
const ps_image * | image | ||
) |
Set a image to the context, it is used to stroke a graphic object.
ctx | Pointer to an existing context object. |
image | The image to be set. |
void ps_set_stroke_pattern | ( | ps_context * | ctx, |
const ps_pattern * | pattern | ||
) |
Set a pattern to the context, it is used to stroke a graphic object.
ctx | Pointer to an existing context object. |
pattern | The pattern to be set. |