39 TextBoxNumber(
int left=0,
int top=0,
int width=0,
int height=0,
int precission=0):
TextBox(left,top,width,height)
41 _precission=precission;
54 void SetPrecission(
int precission)
56 _precission=precission;
67 _isReadOnly=isReadOnly;
79 if(_changedEvent!=NULL)
88 void SetStatus(
bool isOK)
98 dc->
DrawNumber(_number,_precission,_offset_x,_offset_y);
int Precission()
Returns actual number of digits after decimal point.
Definition: TextBoxNumber.h:50
virtual bool IsAwaitTouch()
Returns true if window await touch action (like button) or false if touch manager should ignore this ...
Definition: Window.h:107
void SetFont(uint8_t *font)
Sets font.
Definition: TextBox.h:64
void SetIsReadOnly(bool isReadOnly)
Defines whether window is readonly.
Definition: TextBoxNumber.h:64
Base class for window with text content.
Definition: TextBox.h:30
bool OnTouch(int x, int y)
Touch manager calls this function right after touch is released.
Definition: TextBoxNumber.cpp:25
static Environment * Get()
Returns singltone instance of environment.
Definition: Environment.h:44
void DrawNumber(int number, int x, int y)
Draws integer number. Input coordinates have to be defined in the window coordinate system...
Definition: DC.h:161
Text box for numbers.
Definition: TextBoxNumber.h:24
virtual void OnDraw(DC *dc)
Implements drawing code.
Definition: TextBoxNumber.h:93
TextBoxNumber(int left=0, int top=0, int width=0, int height=0, int precission=0)
Constructor.
Definition: TextBoxNumber.h:39
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.
void SetNumber(float number)
Initialize window with number.
Definition: TextBoxNumber.h:74
virtual void SetDecorators(DecoratorList *decorators)
Sets window decorators list.
Definition: Window.h:76
bool IsAwaitTouch()
Returns true if window await touch action (like button) or false if touch manager should ignore this ...
Definition: TextBoxNumber.h:58
void SetMargins(int offset_x, int offset_y)
Defines offset from left and top for text.
Definition: TextBox.h:58