#include <Pt/Gfx/Brush.h>
Ordered collection of gradient color stops.
Public Member Functions | |
| ColorStops () | |
| Constructs an empty collection. | |
| ~ColorStops () | |
| Destroys the collection. | |
| bool | empty () const |
| Returns true if no stops are stored. | |
| std::size_t | size () const |
| Returns the number of stored stops. | |
| void | clear () |
| Removes all stored stops. | |
| void | add (float position, const Color &color) |
| Appends a color stop. | |
| const ColorStop & | operator[] (std::size_t n) const |
| Returns the stop at the given index. | |
| const ColorStop & | front () const |
| Returns the first stop. | |
| const ColorStop & | back () const |
| Returns the last stop. | |
| void | calculateInterpolatedColor (Color &res, const float position) const |
| Calculates the interpolated color for a position. | |