Gradient fill area.
More...
#include <areadraw.h>
|
| | GradientAreaDraw (wxPen borderPen=*wxBLACK_PEN, wxColour colour1=wxColour(200, 220, 250), wxColour colour2=wxColour(255, 255, 255), wxDirection dir=wxEAST) |
| | Constructs new gradient area background. More...
|
| |
| virtual void | Draw (wxDC &dc, wxRect rc) |
| | Draw area background. More...
|
| |
| void | SetColour1 (wxColour colour1) |
| | Sets gradient fill first color. More...
|
| |
| void | SetColour2 (wxColour colour2) |
| | Sets gradient fill second color. More...
|
| |
| void | SetDirection (wxDirection dir) |
| | Sets gradient fill direction. More...
|
| |
Gradient fill area.
Uses linear gradient fill to draw area.
Definition at line 116 of file areadraw.h.
| GradientAreaDraw::GradientAreaDraw |
( |
wxPen |
borderPen = *wxBLACK_PEN, |
|
|
wxColour |
colour1 = wxColour(200, 220, 250), |
|
|
wxColour |
colour2 = wxColour(255, 255, 255), |
|
|
wxDirection |
dir = wxEAST |
|
) |
| |
Constructs new gradient area background.
- Parameters
-
| borderPen | pen to draw border |
| colour1 | first gradient fill color |
| colour2 | second gradient fill color |
| dir | The direction of the gradient fill. wxALL creates a radial gradient. |
| virtual void GradientAreaDraw::Draw |
( |
wxDC & |
dc, |
|
|
wxRect |
rc |
|
) |
| |
|
virtual |
Draw area background.
- Parameters
-
| dc | device context |
| rc | rectangle of area to draw |
Implements AreaDraw.
| void GradientAreaDraw::SetColour1 |
( |
wxColour |
colour1 | ) |
|
|
inline |
Sets gradient fill first color.
- Parameters
-
Definition at line 139 of file areadraw.h.
| void GradientAreaDraw::SetColour2 |
( |
wxColour |
colour2 | ) |
|
|
inline |
Sets gradient fill second color.
- Parameters
-
Definition at line 148 of file areadraw.h.
| void GradientAreaDraw::SetDirection |
( |
wxDirection |
dir | ) |
|
|
inline |
Sets gradient fill direction.
- Parameters
-
Definition at line 157 of file areadraw.h.
The documentation for this class was generated from the following file: