|
Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <text_view.h>
Public Member Functions | |
| TextView (KDText::FontSize size=KDText::FontSize::Large, float horizontalAlignment=0.0f, float verticalAlignment=0.0f, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite) | |
| void | drawRect (KDContext *ctx, KDRect rect) const override |
| void | setBackgroundColor (KDColor backgroundColor) |
| void | setTextColor (KDColor textColor) |
| void | setAlignment (float horizontalAlignment, float verticalAlignment) |
| KDSize | minimalSizeForOptimalDisplay () const override |
| virtual const char * | text () const =0 |
| virtual void | setText (const char *text)=0 |
| void | setFontSize (KDText::FontSize fontSize) |
Public Member Functions inherited from View | |
| View () | |
| virtual | ~View () |
| View (const View &other)=delete | |
| View (View &&other)=delete | |
| View & | operator= (const View &other)=delete |
| View & | operator= (View &&other)=delete |
| void | resetSuperview () |
| void | setSize (KDSize size) |
| void | setFrame (KDRect frame) |
| KDPoint | pointFromPointInView (View *view, KDPoint point) |
| KDRect | bounds () const |
| View * | subview (int index) |
Protected Attributes | |
| KDText::FontSize | m_fontSize |
Protected Attributes inherited from View | |
| KDRect | m_frame |
Additional Inherited Members | |
Protected Member Functions inherited from View | |
| void | markRectAsDirty (KDRect rect) |
Definition at line 7 of file text_view.h.
| TextView::TextView | ( | KDText::FontSize | size = KDText::FontSize::Large, |
| float | horizontalAlignment = 0.0f, |
||
| float | verticalAlignment = 0.0f, |
||
| KDColor | textColor = KDColorBlack, |
||
| KDColor | backgroundColor = KDColorWhite |
||
| ) |
Definition at line 3 of file text_view.cpp.
Reimplemented from View.
Definition at line 39 of file text_view.cpp.
|
overridevirtual |
Reimplemented from View.
Definition at line 35 of file text_view.cpp.
| void TextView::setAlignment | ( | float | horizontalAlignment, |
| float | verticalAlignment | ||
| ) |
Definition at line 24 of file text_view.cpp.
| void TextView::setBackgroundColor | ( | KDColor | backgroundColor | ) |
Definition at line 14 of file text_view.cpp.
| void TextView::setFontSize | ( | KDText::FontSize | fontSize | ) |
Definition at line 30 of file text_view.cpp.
|
pure virtual |
Implemented in PointerTextView, MessageTextView, and BufferTextView.
| void TextView::setTextColor | ( | KDColor | textColor | ) |
Definition at line 19 of file text_view.cpp.
|
pure virtual |
Implemented in MessageTextView, BufferTextView, and PointerTextView.
|
protected |
Definition at line 26 of file text_view.h.