wxFreeChart
|
Represents a chart title. More...
#include <title.h>
Public Member Functions | |
wxDEPRECATED_MSG ("Use TextElementContainer(const TextElement&) instead)") TextElementContainer(const wxString &title) | |
TextElementContainer (const TextElement &element) | |
TextElementContainer (const TextElementContainer &orig) | |
TextElementContainer & | operator= (const TextElementContainer &title) |
void | AddElement (TextElement element) |
Adds a TextElement to the TextElementContainer. More... | |
bool | IsEmpty () const |
Checks whether the TextElementContainer is empty. More... | |
void | Draw (wxDC &dc, wxRect rc) |
Draws the TextElementContainer. More... | |
wxSize | CalculateExtent (wxDC &dc) |
Calculates the extent of the TextElementContainer. More... | |
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.