Version: 0.6.0
TextElement Class Reference

#include <title.h>

Public Member Functions

 TextElement (const wxString &text, int hAlign, wxFont font=*wxNORMAL_FONT)
 
 TextElement (const TextElement &orig)
 
TextElementoperator= (const TextElement &orig)
 
wxSize CalculateExtent (wxDC &dc)
 
void Draw (wxDC &dc, wxRect rc)
 
void SetHorzAlign (int hAlign)
 
void SetColour (wxColour colour)
 

Detailed Description

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

Member Function Documentation

wxSize TextElement::CalculateExtent ( wxDC &  dc)

Calculates the extent of the TextElement

Returns
The size of the TextElement

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void TextElement::SetColour ( wxColour  colour)
inline

Sets the text colour.

Parameters
colourThe colour to set.
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.

The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/title.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/title.cpp