merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / geometry / IntegerBezierSegment2D.idl
blobdc970a4a18ebcd15223aaa7830ae75a19543f265
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: IntegerBezierSegment2D.idl,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org 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
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_geometry_IntegerBezierSegment2D_idl__
31 #define __com_sun_star_geometry_IntegerBezierSegment2D_idl__
33 module com { module sun { module star { module geometry {
35 /** This structure contains the relevant data for a cubic Bezier
36 curve.<p>
38 The data is stored integer-valued. The last point of the segment
39 is taken from the first point of the following segment, and thus
40 not included herein. That is, when forming a polygon out of cubic
41 Bezier segments, each two consecutive IntegerBezierSegment2Ds
42 define the actual curve, with the very last segment providing only
43 the end point of the last curve, and the remaining members
44 ignored.<p>
46 @see com.sun.star.rendering.XBezierPolyPolygon2D
47 @since OOo 2.0.0
49 struct IntegerBezierSegment2D
51 /// The x coordinate of the start point.
52 long Px;
53 /// The y coordinate of the start point.
54 long Py;
56 /// The x coordinate of the first control point.
57 long C1x;
58 /// The y coordinate of the first control point.
59 long C1y;
61 /// The x coordinate of the second control point.
62 long C2x;
63 /// The y coordinate of the second control point.
64 long C2y;
68 }; }; }; };
70 #endif