1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_geometry_IntegerBezierSegment2D_idl__
24#define __com_sun_star_geometry_IntegerBezierSegment2D_idl__
25
26module com {  module sun {  module star {  module geometry {
27
28/** This structure contains the relevant data for a cubic Bezier
29    curve.<p>
30
31    The data is stored integer-valued. The last point of the segment
32    is taken from the first point of the following segment, and thus
33    not included herein. That is, when forming a polygon out of cubic
34    Bezier segments, each two consecutive IntegerBezierSegment2Ds
35    define the actual curve, with the very last segment providing only
36    the end point of the last curve, and the remaining members
37    ignored.<p>
38
39    @see com.sun.star.rendering.XBezierPolyPolygon2D
40    @since OpenOffice 2.0
41 */
42struct IntegerBezierSegment2D
43{
44    /// The x coordinate of the start point.
45    long Px;
46    /// The y coordinate of the start point.
47    long Py;
48
49    /// The x coordinate of the first control point.
50    long C1x;
51    /// The y coordinate of the first control point.
52    long C1y;
53
54    /// The x coordinate of the second control point.
55    long C2x;
56    /// The y coordinate of the second control point.
57    long C2y;
58
59};
60
61}; }; }; };
62
63#endif
64