-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindowManager.hpp
34 lines (29 loc) · 936 Bytes
/
windowManager.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* windowManager.hpp
*
* Created on: 9 ago 2022
* Author: Francesco Antonetti Lamorgese Passeri
* Version: 1.0
* License: CC-BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
* This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
*/
#ifndef WINDOWMANAGER_HPP_
#define WINDOWMANAGER_HPP_
#include "window.hpp"
#include "Arduino.h"
class windowManager
{
public:
windowManager(const int);
void registerWindow(UTFT&,int*,int*);
void deregisterWindow(int);
int getWindowsCount();
window* getWindow(int);
private:
const int windowsNumber;
int countRegisteredWindows;
window **windows;
private:
bool checkWindow(int*,int*);
};
#endif /* WINDOWMANAGER_HPP_ */