#include </home/work/projects/wx/2.9/wx/interface/wx/graphics.h>
Public Member Functions | |
| wxGraphicsGradientStop (wxColour col=wxTransparentColour, float pos=0.) | |
| Creates a stop with the given colour and position. | |
| const wxColour & | GetColour () const |
| Return the stop colour. | |
| void | SetColour (const wxColour &col) |
| Change the stop colour. | |
| float | GetPosition () const |
| Return the stop position. | |
| void | SetPosition (float pos) |
| Change the stop position. | |
| wxGraphicsGradientStop::wxGraphicsGradientStop | ( | wxColour | col = wxTransparentColour, |
|
| float | pos = 0. | |||
| ) |
Creates a stop with the given colour and position.
| 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. |
| const wxColour& wxGraphicsGradientStop::GetColour | ( | ) | const |
Return the stop colour.
| float wxGraphicsGradientStop::GetPosition | ( | ) | const |
Return the stop position.
| void wxGraphicsGradientStop::SetColour | ( | const wxColour & | col | ) |
Change the stop colour.
| col | The new colour. |
| void wxGraphicsGradientStop::SetPosition | ( | float | pos | ) |
Change the stop position.
| pos | The new position, must always be in [0, 1] range. |
|
[ top ] |