Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / geometry / EllipticalArc.idl
blob7fe9b40e9c62e7021501688867b5e0c342e78be9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_geometry_EllipticalArc_idl__
20 #define __com_sun_star_geometry_EllipticalArc_idl__
22 #include <com/sun/star/geometry/RealPoint2D.idl>
24 module com { module sun { module star { module geometry {
26 /** This structure specifies an arbitrary elliptical arc.<p>
28 This structure contains all parameters necessary to specify
29 arbitrary elliptical arcs. The parameters are modeled closely
30 after the <a href="http://www.w3c.org">SVG</a> specification.<p>
32 As with the parameters below, there are mostly four different
33 ellipses arcs (two different ellipses, on which four different
34 arcs connect start and end point) which satisfy the given set of
35 constrains. Thus, there are two flags indicating which one of those
36 ellipses should be taken.<p>
38 @since OOo 2.0
40 struct EllipticalArc
42 /// Start point of the arc.
43 RealPoint2D StartPosition;
46 /// End point of the arc.
47 RealPoint2D EndPosition;
50 /// Main radius in x direction of the ellipse this arc is part of.
51 double RadiusX;
54 /// Main radius in y direction of the ellipse this arc is part of.
55 double RadiusY;
58 /** Rotation angle of the x axis of the ellipse relative to the x
59 axis of the reference coordinate system.
61 double XAxisRotation;
64 /** If `TRUE`, and there's a choice, take the longer one of two arcs
65 connecting start and end point.
67 boolean IsLargeArc;
70 /** If `TRUE`, and there's a choice, take the arc that goes
71 clock-wise from start to end point.
73 boolean IsClockwiseSweep;
76 }; }; }; };
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */