#include <areadraw.h>
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) |
Public Member Functions inherited from Observable< DrawObserver > | |
void | AddObserver (DrawObserver *_observer) |
void | RemoveObserver (DrawObserver *_observer) |
Additional Inherited Members | |
Public Types inherited from Observable< DrawObserver > | |
typedef DrawObserver | Observer |
Public Attributes inherited from Observable< DrawObserver > | |
std::vector< DrawObserver * > ::iterator | OIt |
Protected Member Functions inherited from DrawObject | |
FIRE_WITH_THIS (NeedRedraw) | |
Protected Attributes inherited from Observable< DrawObserver > | |
std::vector< DrawObserver * > | observers |
Gradient fill area. Uses linear gradient fill to draw area.
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.
borderPen | pen to draw border |
colour1 | first gradient fill color |
colour2 | second gradient fill color |
dir | gradient fill direction |
|
virtual |
|
inline |
Sets gradient fill first color.
colour1 | first color |
|
inline |
Sets gradient fill second color.
colour2 | second color |
|
inline |
Sets gradient fill direction.
dir | direction |