#include <title.h>
Public Member Functions | |
TextElement (const wxString &text, int hAlign, wxFont font=*wxNORMAL_FONT) | |
TextElement (const TextElement &orig) | |
TextElement & | operator= (const TextElement &orig) |
wxSize | CalculateExtent (wxDC &dc) |
void | Draw (wxDC &dc, wxRect rc) |
void | SetHorzAlign (int hAlign) |
void | SetColour (wxColour colour) |
Represents a TitleElement, ie a box containing text which is displayed in the title area.
wxSize TextElement::CalculateExtent | ( | wxDC & | dc | ) |
Calculates the extent of the TextElement
void TextElement::Draw | ( | wxDC & | dc, |
wxRect | rc | ||
) |
Draws the TextElement with the given DC in a specified box.
dc | The device context to draw on. |
rc | The rect into which the text will be drawn. |
|
inline |
Sets the text colour.
colour | The colour to set. |
|
inline |
Sets the horizontal alignment of the text inside its box.
hAlign | One of the horizontal alignment flags specified by wxWidgets. |