1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: IntegerBezierSegment2D.idl,v $
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
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
46 @see com.sun.star.rendering.XBezierPolyPolygon2D
49 struct IntegerBezierSegment2D
51 /// The x coordinate of the start point.
53 /// The y coordinate of the start point.
56 /// The x coordinate of the first control point.
58 /// The y coordinate of the first control point.
61 /// The x coordinate of the second control point.
63 /// The y coordinate of the second control point.