Code

6fdc856941440bbc47193e78b47f61f67f595bff
[inkscape.git] / src / libnr / nr-path.h
1 #ifndef __NR_PATH_H__
2 #define __NR_PATH_H__
4 /*
5  * NArtBpath: Curve component.  Adapted from libart.
6  */
8 /*
9  * libart_lgpl/art_bpath.h copyright information:
10  *
11  * Copyright (C) 1998 Raph Levien
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the
25  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26  * Boston, MA 02111-1307, USA.
27  */
30 #include <libnr/nr-forward.h>
31 #include <libnr/nr-coord.h>
33 NArtBpath* nr_artpath_affine(NArtBpath *s, NR::Matrix const &transform);
35 struct NRBPath {
36         NArtBpath *path;
37 };
39 NRBPath *nr_path_duplicate_transform(NRBPath *d, NRBPath *s, NRMatrix const *transform);
41 NRBPath *nr_path_duplicate_transform(NRBPath *d, NRBPath *s, NR::Matrix const transform);
43 void nr_path_matrix_point_bbox_wind_distance (NRBPath *bpath, NR::Matrix const &m, NR::Point &pt,
44                                               NRRect *bbox, int *wind, NR::Coord *dist,
45                      NR::Coord tolerance, NR::Rect *viewbox);
47 void nr_path_matrix_bbox_union(NRBPath const *bpath, NR::Matrix const &m, NRRect *bbox);
49 NArtBpath *nr_path_from_rect(NRRect const &r);
51 #endif
53 /*
54   Local Variables:
55   mode:c++
56   c-file-style:"stroustrup"
57   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
58   indent-tabs-mode:nil
59   fill-column:99
60   End:
61 */
62 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :