-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.hpp
More file actions
38 lines (33 loc) · 885 Bytes
/
window.hpp
File metadata and controls
38 lines (33 loc) · 885 Bytes
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
35
36
37
38
/*
* window.hpp
*
* Created on: 9 ago 2022
* Author: Francesco Antonetti Lamorgese Passeri
* Version: 1.0
* License: CC-BY-SA 4.0 (https://creativecommons.org/licenses/by-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 WINDOW_HPP_
#define WINDOW_HPP_
#include "Arduino.h"
#ifndef UTFT_h
#include "UTFT/UTFT.h"
#endif
class window
{
public:
window(UTFT&,int*,int*);
window(UTFT&,int,int,int,int);
void text(String text);
void clearWindow();
int* getSize();
int* getPosition();
private:
int size[2];
int position[2];
int fontSize[2];
private:
UTFT& tft;
void drawBorders();
};
#endif /* WINDOW_HPP_ */