Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / Gradient.idl
blobf0d479a29e8504030dcdcc1b5d132dca1fc2872f
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_awt_Gradient_idl__
20 #define __com_sun_star_awt_Gradient_idl__
22 #include <com/sun/star/awt/GradientStyle.idl>
24 #include <com/sun/star/util/Color.idl>
28 module com { module sun { module star { module awt {
31 /** Describes a gradient between two colors. Many aspects of the
32 * gradient are undefined, like the algorithm and color space to use
33 * to interpolate between the colors and what "intensity" means.
35 published struct Gradient
38 /** specifies the style of the gradient.
40 com::sun::star::awt::GradientStyle Style;
43 /** specifies the color at the start point of the gradient.
45 com::sun::star::util::Color StartColor;
48 /** specifies the color at the end point of the gradient.
50 com::sun::star::util::Color EndColor;
53 /** angle of the gradient in 1/10 degree.
55 short Angle;
58 /** per cent of the total width where just the start color is used.
60 short Border;
63 /** Specifies the X-coordinate, where the gradient begins,
64 * whatever that means. Possibly means the *center* of the
65 * ELLIPTICAL, SQUARE and RECT style gradients?
67 short XOffset;
70 /** Specifies the Y-coordinate, where the gradient begins. See
71 previous field.
73 short YOffset;
76 /** Specifies the intensity at the start point of the gradient. What that means is undefined.
78 short StartIntensity;
81 /** specifies the intensity at the end point of the gradient.
83 short EndIntensity;
86 /** Specifies the number of steps of change color. What that means
87 * is undefined.
89 short StepCount;
94 }; }; }; };
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */