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

Represents a TitleElement, ie a box containing text which is displayed in the title area. More...

#include <title.h>

Public Member Functions

 TextElement (const wxString &text, int hAlign=wxALIGN_CENTER_HORIZONTAL, wxFont font=*wxNORMAL_FONT)
 
 TextElement (const TextElement &orig)
 
TextElementoperator= (const TextElement &orig)
 
wxSize CalculateExtent (wxDC &dc)
 Calculates the extent of the TextElement. More...
 
void Draw (wxDC &dc, wxRect rc)
 Draws the TextElement with the given DC in a specified box. More...
 
void SetHorzAlign (int hAlign)
 Sets the horizontal alignment of the text inside its box. More...
 
void SetColour (wxColour colour)
 Sets the text colour. More...
 

Detailed Description

Represents a TitleElement, ie a box containing text which is displayed in the title area.

Definition at line 21 of file title.h.

Member Function Documentation

wxSize TextElement::CalculateExtent ( wxDC &  dc)

Calculates the extent of the TextElement.

Returns
The size of the TextElement
void TextElement::Draw ( wxDC &  dc,
wxRect  rc 
)

Draws the TextElement with the given DC in a specified box.

Parameters
dcThe device context to draw on.
rcThe rect into which the text will be drawn.
void TextElement::SetColour ( wxColour  colour)
inline

Sets the text colour.

Parameters
colourThe colour to set.

Definition at line 58 of file title.h.

void TextElement::SetHorzAlign ( int  hAlign)
inline

Sets the horizontal alignment of the text inside its box.

Parameters
hAlignOne of the horizontal alignment flags specified by wxWidgets.

Definition at line 49 of file title.h.


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