Wt  4.11.1
Loading...
Searching...
No Matches
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()