2 * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_PATH_H_
21 #define _SWFDEC_PATH_H_
24 #include <libswfdec/swfdec_rect.h>
28 /* FIXME: Shouldn't this code be in cairo somewhere? */
30 void swfdec_path_init (cairo_path_t
* path
);
31 void swfdec_path_reset (cairo_path_t
* path
);
33 #define swfdec_path_require_size(path, steps) \
34 swfdec_path_ensure_size ((path), (path)->num_data + steps)
35 void swfdec_path_ensure_size (cairo_path_t
* path
,
37 void swfdec_path_move_to (cairo_path_t
* path
,
40 void swfdec_path_line_to (cairo_path_t
* path
,
43 void swfdec_path_curve_to (cairo_path_t
* path
,
50 void swfdec_path_append (cairo_path_t
* path
,
51 const cairo_path_t
* append
);
52 void swfdec_path_append_reverse (cairo_path_t
* path
,
53 const cairo_path_t
* append
,
57 void swfdec_path_get_extents (const cairo_path_t
* path
,
58 SwfdecRect
* extents
);
60 void swfdec_path_merge (cairo_path_t
* dest
,
61 const cairo_path_t
* start
,
62 const cairo_path_t
* end
,