![]() |
Power System Platform
2026w10a-beta
|
Class to draw text on Graphics Context using wxWidgets. More...
#include <GCText.h>
Public Member Functions | |
| GCText (wxString text) | |
| virtual void | Draw (wxPoint2DDouble position, wxGraphicsContext *gc, double angle=0.0, wxColour colour= *wxBLACK) const |
| Draw the text in wxGraphicsContext. | |
| virtual void | Draw (wxPoint2DDouble position, double width, double height, wxDC &dc, double angle=0.0, wxColour colour= *wxBLACK) const |
| virtual GCText * | GetCopy () |
| Get a deep text copy. | |
| virtual void | SetText (wxString text) |
| Set correctly a new text string. | |
| virtual wxString | GetText () const |
| virtual int | GetWidth () const |
| virtual int | GetHeight () const |
| virtual void | SetFontSize (int fontSize) |
| virtual int | GetFontSize () |
| virtual void | SetFont (wxFont font) |
| virtual wxFont | GetFont () |
Protected Attributes | |
| wxString | m_text = _("Text") |
| int | m_fontSize = 10 |
| wxFont | m_font |
| bool | m_customFont = false |
| wxSize | m_size |
Class to draw text on Graphics Context using wxWidgets.
| GCText::GCText | ( | ) |
Definition at line 25 of file GCText.cpp.
| GCText::GCText | ( | wxString | text | ) |
Definition at line 26 of file GCText.cpp.
|
virtual |
Definition at line 31 of file GCText.cpp.
|
virtual |
Definition at line 43 of file GCText.cpp.
|
virtual |
Draw the text in wxGraphicsContext.
Definition at line 35 of file GCText.cpp.

|
virtual |
Get a deep text copy.
Definition at line 161 of file GCText.cpp.


|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 121 of file GCText.cpp.
|
inlinevirtual |
|
virtual |
Set correctly a new text string.
| text | New text string. |
Definition at line 68 of file GCText.cpp.
