51 TextBoxTString(
int left,
int top,
int width,
int height,T *text,
const __FlashStringHelper *decorators):
TextBox(left,top,width,height)
61 dc->
DrawText(_text,_offset_x,_offset_y);
67 if(_changedEvent!=NULL)
void DrawText(const __FlashStringHelper *text, int x, int y)
Draws PROGMEM string. Input coordinates have to be defined in the window coordinate system...
Definition: DC.h:177
void SetText(T *text)
Initialize window with text.
Definition: TextBoxString.h:64
virtual void OnDraw(DC *dc)
Implements drawing code.
Definition: TextBoxString.h:58
Base class for window with text content.
Definition: TextBox.h:30
Text box for string. It is templat class and can be used for differnt type of string (see bellow type...
Definition: TextBoxString.h:25
static Environment * Get()
Returns singltone instance of environment.
Definition: Environment.h:44
TextBoxTString(int left, int top, int width, int height, T *text)
Constructor.
Definition: TextBoxString.h:37
Device context. Abstraction layer to the device specific drawing code. Coordinates in drawing functio...
Definition: DC.h:29
void Invalidate()
If function is called than the window manager updates the window.
Definition: Window.h:157
void OnDraw(DC *dc)
Implements drawing code.
Definition: TextBox.h:69
virtual void NotifyContentChanged(Window *window)=0
Has to be implemented in target class.
virtual void SetDecorators(DecoratorList *decorators)
Sets window decorators list.
Definition: Window.h:76
TextBoxTString(int left, int top, int width, int height, T *text, const __FlashStringHelper *decorators)
Constructor.
Definition: TextBoxString.h:51