#include <title.h>
Public Member Functions | |
TextElementContainer (const wxString &title) | |
TextElementContainer (const TextElementContainer &orig) | |
TextElementContainer & | operator= (const TextElementContainer &title) |
void | AddElement (TextElement element) |
bool | IsEmpty () const |
void | Draw (wxDC &dc, wxRect rc) |
wxSize | CalculateExtent (wxDC &dc) |
Represents a chart title. Divides the title line into three boxes which could be independently filled with content. When drawing the title, the text in the boxes is wrapped at word boundary.
void TextElementContainer::AddElement | ( | TextElement | element | ) |
Adds a TextElement to the TextElementContainer. Title takes ownership of the TextElement object.
element | A new TextElement object which is added to the list of elements. |
wxSize TextElementContainer::CalculateExtent | ( | wxDC & | dc | ) |
Calculates the extent of the TextElementContainer.
dc | A wxDC drawing context. |
rc | The rectangle of the drawing area |
void TextElementContainer::Draw | ( | wxDC & | dc, |
wxRect | rc | ||
) |
Draws the TextElementContainer.
dc | The wxDC drawing context used to draw the text. |
rc | The rectangle of the drawing area. |
bool TextElementContainer::IsEmpty | ( | ) | const |
Checks whether the TextElementContainer is empty.