AWind
Window3.h
1 /*
2  AWind.h - Arduino window library support for Color TFT LCD Boards
3  Copyright (C)2014 Andrei Degtiarev. All right reserved
4 
5  You can find the latest version of the library at
6  https://github.com/AndreiDegtiarev/AWind
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the CC BY-NC-SA 3.0 license.
10  Please see the included documents for further information.
11 
12  Commercial use of this library requires you to buy a license that
13  will allow commercial use. This includes using the library,
14  modified or not, as a tool to sell products.
15 
16  The license applies to all part of the library including the
17  examples and tools supplied with the library.
18 */
19 #pragma once
20 #include <Window.h>
22 class Window3 : public Window
23 {
24 public:
25  Window3(const __FlashStringHelper * name,int left,int top,int width,int height):Window(name,left,top,width,height)
26  {
27  AddDecorator(new DecoratorRectFill(Color::LightGreen,false));
28  AddDecorator(new DecoratorColor(Color::Black));
29  }
30 
31 };
Base class for all window objects. Provides basic window functionality.
Definition: Window.h:34
Example window with green background.
Definition: Window3.h:22
Decorator primitive that sets current color. Overriden members description see Decorator class docume...
Definition: DecoratorPrimitives.h:24
Decorator primitive for round rect filled area. Overriden members description see Decorator class doc...
Definition: DecoratorPrimitives.h:79
void AddDecorator(Decorator *decorator)
Adds decorator to the decaorator list.
Definition: Window.h:86