|
| Label ()=default |
|
template<typename Context > |
| Label (const Context &context) |
|
Error | draw (const PixelDrawer &drawPixel) |
|
Error | hit (const Event &event) |
|
| LayoutElement ()=default |
|
template<typename Context > |
| LayoutElement (const Context &context) |
|
Error | draw (const PixelDrawer &) |
|
Error | hit (const Event &) |
|
| LabelImpl () |
|
| LabelImpl (pxs fontSize, pxs lineHeight, text_t text, Alignment horizontal, Alignment verticalJustified, Color textColor, FontBuffer font, uint64_t textId) |
|
pxs | fontSize () const |
|
void | setText (text_t text) |
|
void | setTextColor (Color color) |
|
text_t | text () const |
|
uint64_t | textId () const |
|
Error | draw (const PixelDrawer &drawPixel, const Box< pxs > &bounds, LineInfo *lineInfo) |
|
void | setCB (CallbackEvent cbEvent) |
|
optional< CallbackEvent > | getCB () |
|
Error | hit (const Event &event, const Box< pxs > &bounds) |
|
template<typename Derived>
class teeui::Label< Derived >
Label is a LayoutElement and should be used as second argument in the BEGIN_ELEMENT() macro. The template argument Derived is the new class derived from Label, that is created by the BEGIN_ELEMENT() macro.