update dev300-m58
[ooovba.git] / offapi / com / sun / star / geometry / RealBezierSegment2D.idl
blob71c6c928c9db1e49ffb953252546ba27042219d2
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: RealBezierSegment2D.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_RealBezierSegment2D_idl__
31 #define __com_sun_star_geometry_RealBezierSegment2D_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 real-valued. The last point of the segment is
39 taken from the first point of the following segment, and thus not
40 included herein. That is, when forming a polygon out of cubic
41 Bezier segments, each two consecutive RealBezierSegment2D
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 RealBezierSegment2D
51 /// The x coordinate of the start point.
52 double Px;
53 /// The y coordinate of the start point.
54 double Py;
56 /// The x coordinate of the first control point.
57 double C1x;
58 /// The y coordinate of the first control point.
59 double C1y;
61 /// The x coordinate of the second control point.
62 double C2x;
63 /// The y coordinate of the second control point.
64 double C2y;
68 }; }; }; };
70 #endif