rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvColorStop Class Reference

#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...
 
IlvColorgetColor () 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...
 

Detailed Description

Library: display

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.

See Also
IlvGradientPattern

Constructor & Destructor Documentation

IlvColorStop::IlvColorStop ( IlvColor color,
IlFloat  offset,
IlvIntensity  alpha = IlvFullIntensity 
)

Constructor.

This constructor initializes a new IlvColorStop instance.

Parameters
colorThe color.
offsetAn offset value in the range [0.0 .. 1.0].
alphaAn alpha value.

Member Function Documentation

IlvIntensity IlvColorStop::getAlpha ( ) const

Gets the alpha value.

Returns
The alpha value of the color stop.
IlvColor* IlvColorStop::getColor ( ) const

Gets the color.

Returns
The color set on this color stop.
IlFloat IlvColorStop::getOffset ( ) const

Gets the offset.

Returns
The offset of this color stop.
void IlvColorStop::setAlpha ( IlvIntensity  alpha)

Sets the alpha value.

The alpha value indicates the amount of transparency of this color stop.

Parameters
alphaThe alpha value to set on the color stop.
void IlvColorStop::setColor ( IlvColor color)

Sets the color.

Parameters
colorThe 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.

Parameters
offsetThe offset to set on the color stop.

© 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.