| Top |
| void | (*GOPathClosePathFunc) () |
| void | (*GOPathCurveToFunc) () |
| void | (*GOPathLineToFunc) () |
| void | (*GOPathMoveToFunc) () |
| GOPath * | go_path_append () |
| void | go_path_arc () |
| void | go_path_arc_to () |
| void | go_path_clear () |
| void | go_path_close () |
| GOPath * | go_path_copy () |
| GOPath * | go_path_copy_restricted () |
| void | go_path_curve_to () |
| void | go_path_free () |
| GOPathOptions | go_path_get_options () |
| void | go_path_interpret () |
| void | go_path_interpret_full () |
| void | go_path_line_to () |
| void | go_path_move_to () |
| GOPath * | go_path_new () |
| GOPath * | go_path_new_from_odf_enhanced_path () |
| GOPath * | go_path_new_from_svg () |
| void | go_path_pie_wedge () |
| void | go_path_rectangle () |
| GOPath * | go_path_ref () |
| void | go_path_ring_wedge () |
| void | go_path_set_options () |
| void | go_path_to_cairo () |
| char * | go_path_to_svg () |
| GOPath * | go_path_scale () |
void (*GOPathCurveToFunc) (void *closure,GOPathPoint const *point0,GOPathPoint const *point1,GOPathPoint const *point2);
GOPath * go_path_append (GOPath *path1,GOPath const *path2);
Appends path2
at the end of path1
.
void go_path_arc (GOPath *path,double cx,double cy,double rx,double ry,double th0,double th1);
void go_path_arc_to (GOPath *path,double cx,double cy,double rx,double ry,double th0,double th1);
GOPath * go_path_copy_restricted (GOPath const *path,gssize start,gssize end);
Copies actions between start and end will be copied inside a new GOPath.
Since 0.10.5
void go_path_curve_to (GOPath *path,double x0,double y0,double x1,double y1,double x2,double y2);
void
go_path_free (GOPath *path);
Decrements references count and frees all memory allocated for path
if
references count reaches 0.
void go_path_interpret (GOPath const *path,GOPathDirection direction,GOPathMoveToFunc move_to,GOPathLineToFunc line_to,GOPathCurveToFunc curve_to,GOPathClosePathFunc close_path,void *closure);
This function can be used to draw a path or for other purposes. To draw using cairo, the closure argument should be a valid cairo_t.
path |
||
direction |
||
move_to |
the callback for move to. |
[scope call] |
line_to |
the callback for drawing a line. |
[scope call] |
curve_to |
the callback for drawing a bezier cubic spline. |
[scope call] |
close_path |
the callback for closing the path. |
[scope call] |
closure |
data to pass as first argument to the callbacks. |
void go_path_interpret_full (GOPath const *path,gssize start,gssize end,GOPathDirection direction,GOPathMoveToFunc move_to,GOPathLineToFunc line_to,GOPathCurveToFunc curve_to,GOPathClosePathFunc close_path,void *closure);
This function can be used to draw a portion path or for other purposes. Only actions between start and end will be executed. If start or end is negative, it is not taken into account.
path |
||
start |
index of the first action to interpret |
|
end |
index of the last action to interpret |
|
direction |
||
move_to |
the callback for move to. |
[scope call] |
line_to |
the callback for drawing a line. |
[scope call] |
curve_to |
the callback for drawing a bezier cubic spline. |
[scope call] |
close_path |
the callback for closing the path. |
[scope call] |
closure |
data to pass as first argument to the callbacks. |
Since 0.10.5
GOPath * go_path_new_from_odf_enhanced_path (char const *src,GHashTable const *variables);
void go_path_pie_wedge (GOPath *path,double cx,double cy,double rx,double ry,double th0,double th1);
void go_path_rectangle (GOPath *path,double x,double y,double width,double height);
void go_path_ring_wedge (GOPath *path,double cx,double cy,double rx_out,double ry_out,double rx_in,double ry_in,double th0,double th1);
void go_path_set_options (GOPath *path,GOPathOptions options);
Change the rendering options for path
using
GO_PATH_OPTIONS_SNAP_COORDINATES
GO_PATH_OPTIONS_SNAP_WIDTH
GO_PATH_OPTIONS_SHARP
void go_path_to_cairo (GOPath const *path,GOPathDirection direction,cairo_t *cr);
Renders the path to the cairo context using its current settings.