Wt  4.10.4
Public Member Functions | List of all members
Wt::WGradient::ColorStop Class Reference

A gradient color stop. More...

#include <WGradient.h>

Public Member Functions

 ColorStop (double position, const WColor &color)
 Constructor.
 
double position () const
 Returns the position.
 
const WColorcolor () const
 Returns the color.
 
bool operator== (const ColorStop &other) const
 Comparison operator.
 
bool operator!= (const ColorStop &other) const
 Comparison operator.
 

Detailed Description

A gradient color stop.

A color stop is defined by a color and a (relative) position. The interpretation of the position depends on the gradient style.

See also
addColorStop()