Code

Set merge from trunk
[inkscape.git] / src / live_effects / bezctx.cpp
1 /*
2 ppedit - A pattern plate editor for Spiro splines.
3 Copyright (C) 2007 Raph Levien
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
20 */
21 #include "bezctx.h"
23 void bezctx_moveto(bezctx *bc, double x, double y, int is_open)
24 {
25     bc->moveto(bc, x, y, is_open);
26 }
28 void bezctx_lineto(bezctx *bc, double x, double y)
29 {
30     bc->lineto(bc, x, y);
31 }
33 void bezctx_quadto(bezctx *bc, double x1, double y1, double x2, double y2)
34 {
35     bc->quadto(bc, x1, y1, x2, y2);
36 }
38 void bezctx_curveto(bezctx *bc, double x1, double y1, double x2, double y2,
39                     double x3, double y3)
40 {
41     bc->curveto(bc, x1, y1, x2, y2, x3, y3);
42 }
44 void bezctx_mark_knot(bezctx *bc, int knot_idx)
45 {
46     if (bc->mark_knot)
47         bc->mark_knot(bc, knot_idx);
48 }