#include </home/zeitlin/src/wx/github/interface/wx/graphics.h>
Detailed Description
Represents a single gradient stop in a collection of gradient stops as represented by wxGraphicsGradientStops.
- Since:
- 2.9.1
List of all members.
Constructor & Destructor Documentation
Creates a stop with the given colour and position.
- Parameters:
-
col | The colour of this stop. Note that the alpha component of the colour is honoured thus allowing the background colours to partially show through the gradient. |
pos | The stop position, must be in [0, 1] range with 0 being the beginning and 1 the end of the gradient. |
Member Function Documentation
const wxColour& wxGraphicsGradientStop::GetColour |
( |
| ) |
const |
float wxGraphicsGradientStop::GetPosition |
( |
| ) |
const |
Return the stop position.
void wxGraphicsGradientStop::SetColour |
( |
const wxColour & |
col | ) |
|
Change the stop colour.
- Parameters:
-
void wxGraphicsGradientStop::SetPosition |
( |
float |
pos | ) |
|
Change the stop position.
- Parameters:
-
pos | The new position, must always be in [0, 1] range. |