Get the style color and number just once
[LibreOffice.git] / offapi / com / sun / star / awt / Gradient.idl
blobeef7da84b7847b28c6733eae15949189f4088ebb
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 .
22 module com { module sun { module star { module awt {
25 /** Describes a gradient between two colors. Many aspects of the
26 * gradient are undefined, like the algorithm and color space to use
27 * to interpolate between the colors and what "intensity" means.
29 published struct Gradient
32 /** specifies the style of the gradient.
34 com::sun::star::awt::GradientStyle Style;
37 /** specifies the color at the start point of the gradient.
39 com::sun::star::util::Color StartColor;
42 /** specifies the color at the end point of the gradient.
44 com::sun::star::util::Color EndColor;
47 /** angle of the gradient in 1/10 degree.
49 short Angle;
52 /** per cent of the total width where just the start color is used.
54 short Border;
57 /** Specifies the X-coordinate, where the gradient begins.
58 * This is effectively the center of the RADIAL, ELLIPTICAL, SQUARE and
59 * RECT style gradients.
61 short XOffset;
64 /** Specifies the Y-coordinate, where the gradient begins. See
65 previous field.
67 short YOffset;
70 /** Specifies the intensity at the start point of the gradient. What that means is undefined.
72 short StartIntensity;
75 /** specifies the intensity at the end point of the gradient.
77 short EndIntensity;
80 /** Specifies the number of steps of change color. What that means
81 * is undefined.
83 short StepCount;
88 }; }; }; };
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */