[CpmlClose] Initial implementation
[adg.git] / cpml / cpml-close.c
blob8eb64d820269bd887549d8187b2886fd55dde987
1 /* CPML - Cairo Path Manipulation Library
2 * Copyright (C) 2008, 2009 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 /**
21 * SECTION:close
22 * @title: Closing path lines
23 * @short_description: APIs to manage closing path virtual primitives
25 * The following functions manipulate %CAIRO_PATH_CLOSE_PATH #CpmlPrimitive.
26 * No check is made on the primitive struct, so be sure the CpmlPrimitive
27 * is effectively a close operation before calling these APIs.
28 **/
30 #include "cpml-close.h"
31 #include "cpml-pair.h"
33 /**
34 * cpml_close_offset:
35 * @close: the #CpmlPrimitive close data
36 * @offset: distance for the computed parallel close
38 * Given a close segment specified by the @close primitive data,
39 * computes the parallel close distant @offset from the original one
40 * and returns the result by changing @close.
42 * TODO: not yet implemented
43 **/
44 void
45 cpml_close_offset(CpmlPrimitive *primitive, double offset)