wxFreeChart
Public Member Functions | List of all members
GradientAreaDraw Class Reference

Gradient fill area. More...

#include <areadraw.h>

Inheritance diagram for GradientAreaDraw:
Inheritance graph
[legend]
Collaboration diagram for GradientAreaDraw:
Collaboration graph
[legend]

Public Member Functions

 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...
 

Detailed Description

Gradient fill area.

Uses linear gradient fill to draw area.

Definition at line 116 of file areadraw.h.

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
borderPenpen to draw border
colour1first gradient fill color
colour2second gradient fill color
dirThe direction of the gradient fill. wxALL creates a radial gradient.

Member Function Documentation

virtual void GradientAreaDraw::Draw ( wxDC &  dc,
wxRect  rc 
)
virtual

Draw area background.

Parameters
dcdevice context
rcrectangle of area to draw

Implements AreaDraw.

void GradientAreaDraw::SetColour1 ( wxColour  colour1)
inline

Sets gradient fill first color.

Parameters
colour1first color

Definition at line 139 of file areadraw.h.

void GradientAreaDraw::SetColour2 ( wxColour  colour2)
inline

Sets gradient fill second color.

Parameters
colour2second color

Definition at line 148 of file areadraw.h.

void GradientAreaDraw::SetDirection ( wxDirection  dir)
inline

Sets gradient fill direction.

Parameters
dirdirection

Definition at line 157 of file areadraw.h.


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