26 Window1(
const __FlashStringHelper * name,
int left,
int top,
int width,
int height):
Window(name,left,top,width,height)
28 Label *label =
new Label(0, 0, 0, 0, F(
"Tab 1"));
33 virtual void Move(
int left,
int top,
int width,
int height)
36 Children()[0]->Move(width/2-40, height/2, width-20,40);
virtual void Move(int left, int top, int width, int height)
Moves and resizes window relativly to the parent window.
Definition: Window1.h:33
Base class for all window objects. Provides basic window functionality.
Definition: Window.h:34
void SetFont(uint8_t *font)
Sets font.
Definition: TextBox.h:64
static Environment * Get()
Returns singltone instance of environment.
Definition: Environment.h:44
virtual void Move(int left, int top, int width, int height)
Moves and resizes window relativly to the parent window.
Definition: Window.h:149
LinkedList< Window > & Children()
Returns list of children window.
Definition: Window.h:223
Example window with red background.
Definition: Window1.h:23
Window(const __FlashStringHelper *name, int left, int top, int width, int height)
Constructor.
Definition: Window.h:60
void AddChild(Window *window)
Adds window child window.
Definition: Window.h:194
virtual void SetDecorators(DecoratorList *decorators)
Sets window decorators list.
Definition: Window.h:76
Implement Label control.
Definition: Label.h:24