Rogue Wave Views |
Rogue Wave Views Documentation Home |
#include <ilviews/base/port.h>
Public Member Functions | |
IlvColorStop (IlvColor *color, IlFloat offset, IlvIntensity alpha=IlvFullIntensity) | |
Constructor. More... | |
IlvIntensity | getAlpha () const |
Gets the alpha value. More... | |
IlvColor * | getColor () const |
Gets the color. More... | |
IlFloat | getOffset () const |
Gets the offset. More... | |
void | setAlpha (IlvIntensity alpha) |
Sets the alpha value. More... | |
void | setColor (IlvColor *color) |
Sets the color. More... | |
void | setOffset (IlFloat offset) |
Sets the offset. More... | |
Library: xviews or winviews or mviews (mutually exclusive)
Class implementing gradient color stops. A color stop is defined by a color, an alpha value and an offset between 0 and 1. The offset indicates where the color stop should take place along the gradient, 0 being the beginning of the gradient, and 1 the end.
IlvGradientPattern
IlvColorStop::IlvColorStop | ( | IlvColor * | color, |
IlFloat | offset, | ||
IlvIntensity | alpha = IlvFullIntensity |
||
) |
Constructor.
This constructor initializes a new IlvColorStop
instance.
color | The color. |
offset | An offset value in the range [0.0 .. 1.0]. |
alpha | An alpha value. |
IlvIntensity IlvColorStop::getAlpha | ( | ) | const |
Gets the alpha value.
IlvColor* IlvColorStop::getColor | ( | ) | const |
Gets the color.
IlFloat IlvColorStop::getOffset | ( | ) | const |
Gets the offset.
void IlvColorStop::setAlpha | ( | IlvIntensity | alpha | ) |
Sets the alpha value.
The alpha value indicates the amount of transparency of this color stop.
alpha | The alpha value to set on the color stop. |
void IlvColorStop::setColor | ( | IlvColor * | color | ) |
Sets the color.
color | The color to set on the color stop. |
void IlvColorStop::setOffset | ( | IlFloat | offset | ) |
Sets the offset.
The offset value should be between 0 and 1 and indicates where the color stop should take place along the gradient, 0 being the beginning of the gradient, and 1 the end.
offset | The offset to set on the color stop. |
© Copyright 2015, 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.