1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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.
52 /** per cent of the total width where just the start color is used.
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.
64 /** Specifies the Y-coordinate, where the gradient begins. See
70 /** Specifies the intensity at the start point of the gradient. What that means is undefined.
75 /** specifies the intensity at the end point of the gradient.
80 /** Specifies the number of steps of change color. What that means
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */