Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Resource class. More...
#include <ilviews/base/port.h>
Public Member Functions | |
IlvLinearGradientGeometry (IlvPoint startPoint, IlvPoint endPoint, IlvGradientTransformMode mode=IlvGradientTransformGraphic, IlvGradientAspectRatio aspectRatio=IlvGradientAspectRatioInside) | |
Constructor. | |
IlvPoint | getEndPoint () const |
Gets the end point of this gradient geometry. | |
IlvPoint | getStartPoint () const |
Gets the start point of this gradient geometry. | |
void | setEndPoint (IlvPoint end) |
Sets the end point of this gradient geometry. | |
void | setStartPoint (IlvPoint start) |
Sets the start point of this gradient geometry. |
Resource class.
Library: display
The IlvLinearGradientPattern
class enables you specify geometrical properties dedicated to linear gradients. A linear gradient geometry is defined by a start and an end point. The coordinates of the 2 points must be contained within the IlvGradientPattern
area defined by its width and height. The abscissas of these points must be set between 0 and IlvPattern::width
. The ordinates of these points must be set between 0 and IlvPattern::height
.
IlvGradientGeometry
, IlvRadialGradientGeometry
, IlvGradientPattern::setGeometry
IlvPattern::width
, IlvGradientPattern::setWidth
, IlvPattern::height
and IlvGradientPattern::setHeight
. IlvLinearGradientGeometry::IlvLinearGradientGeometry | ( | IlvPoint | startPoint, | |
IlvPoint | endPoint, | |||
IlvGradientTransformMode | mode = IlvGradientTransformGraphic , |
|||
IlvGradientAspectRatio | aspectRatio = IlvGradientAspectRatioInside | |||
) |
Constructor.
This constructor initializes a new IlvLinearGradientGeometry
instance.
startPoint | The start point. | |
endPoint | The end point. | |
mode | The gradient transform mode. | |
aspectRatio | The gradient aspect ratio. |
IlvPoint IlvLinearGradientGeometry::getEndPoint | ( | ) | const |
Gets the end point of this gradient geometry.
IlvPoint IlvLinearGradientGeometry::getStartPoint | ( | ) | const |
Gets the start point of this gradient geometry.
void IlvLinearGradientGeometry::setEndPoint | ( | IlvPoint | end | ) |
Sets the end point of this gradient geometry.
end | The new end point. |
void IlvLinearGradientGeometry::setStartPoint | ( | IlvPoint | start | ) |
Sets the start point of this gradient geometry.
start | The new start point. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.