GradientAreaDraw Class Reference
#include <areadraw.h>
List of all members.
|
Public Member Functions |
| GradientAreaDraw (wxPen borderPen=*wxBLACK_PEN, wxColour colour1=wxColour(200, 220, 250), wxColour colour2=wxColour(255, 255, 255), wxDirection dir=wxEAST) |
virtual void | Draw (wxDC &dc, wxRect rc) |
void | SetColour1 (wxColour colour1) |
void | SetColour2 (wxColour colour2) |
void | SetDirection (wxDirection dir) |
Detailed Description
Gradient fill area. Uses linear gradient fill to draw area.
Constructor & Destructor Documentation
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 | gradient fill direction |
Member Function Documentation
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:
-
void GradientAreaDraw::SetColour2 |
( |
wxColour |
colour2 |
) |
[inline] |
Sets gradient fill second color.
- Parameters:
-
void GradientAreaDraw::SetDirection |
( |
wxDirection |
dir |
) |
[inline] |
Sets gradient fill direction.
- Parameters:
-
The documentation for this class was generated from the following file: