1 /* CPML - Cairo Path Manipulation Library
2 * Copyright (C) 2008, Nicola Fontana <ntd at entidi.it>
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 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
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __CPML_PATH_H__
21 #define __CPML_PATH_H__
23 #include <cpml/cpml-pair.h>
32 typedef struct _CpmlPath CpmlPath
;
35 cairo_path_t cairo_path
;
40 cairo_bool_t
cpml_path_from_cairo (CpmlPath
*path
,
41 const cairo_path_t
*src
,
43 cairo_bool_t
cpml_path_from_cairo_explicit (CpmlPath
*path
,
44 const cairo_path_t
*src
,
46 CpmlPath
* cpml_path_copy (CpmlPath
*path
,
48 cairo_bool_t
cpml_path_dump (CpmlPath
*path
);
49 cairo_bool_t
cpml_segment_from_path (CpmlPath
*segment
,
52 cairo_bool_t
cpml_primitive_from_path (CpmlPath
*primitive
,
55 cairo_bool_t
cpml_primitive_get_pair (const CpmlPath
*primitive
,
58 cairo_bool_t
cpml_primitive_set_pair (CpmlPath
*primitive
,
61 cairo_bool_t
cpml_primitive_get_point (const CpmlPath
*primitive
,
64 cairo_bool_t
cpml_primitive_reverse (CpmlPath
*primitive
);
69 #endif /* __CPML_PATH_H__ */