GradientAreaDraw Class Reference

#include <areadraw.h>

Inheritance diagram for GradientAreaDraw:

Inheritance graph
[legend]
Collaboration diagram for GradientAreaDraw:

Collaboration graph
[legend]

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:
colour1 first color

void GradientAreaDraw::SetColour2 ( wxColour  colour2  )  [inline]

Sets gradient fill second color.

Parameters:
_colour2 second color

void GradientAreaDraw::SetDirection ( wxDirection  dir  )  [inline]

Sets gradient fill direction.

Parameters:
_dir direction


The documentation for this class was generated from the following file:

Generated on Mon Feb 15 21:32:26 2010 for wxFreeChart by  doxygen 1.5.8