bump libtool version
[swfdec.git] / libswfdec / swfdec_path.h
blob502a04987b263fe82b34177c759d9269d244d154
1 /* Swfdec
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.
8 *
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_
23 #include <cairo.h>
24 #include <libswfdec/swfdec_rect.h>
26 G_BEGIN_DECLS
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,
36 int size);
37 void swfdec_path_move_to (cairo_path_t * path,
38 double x,
39 double y);
40 void swfdec_path_line_to (cairo_path_t * path,
41 double x,
42 double y);
43 void swfdec_path_curve_to (cairo_path_t * path,
44 double start_x,
45 double start_y,
46 double control_x,
47 double control_y,
48 double end_x,
49 double end_y);
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,
54 double x,
55 double y);
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,
63 double ratio);
66 G_END_DECLS
67 #endif