-
Notifications
You must be signed in to change notification settings - Fork 9
/
XibInterface.h
45 lines (37 loc) · 973 Bytes
/
XibInterface.h
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
39
40
41
42
43
44
45
#ifndef XibInterface_h
#define XibInterface_h
//Librerías necesarias
#include <Arduino.h>
#include <LinkedList.h>
#include <XibXcreenValues.h>
#include <XibFrame.h>
#include <XibXcreen.h>
#include <Subject.h>
#define PRECISION_AMOUNT 5
class XibInterface : public Subject
{
private:
long tiempoContaje;
int indicePrecision;
int valoresPrecision[PRECISION_AMOUNT];
void rellenarArray(int valor);
LinkedList<XibFrame *> frames;
LinkedList<XibComponent *> components;
int currentFrameNumber = -1;
int maxFrames;
XibFrame *currentFrame;
public:
void refreshTouchValues();
void refreshTouchValues(int tiempo);
bool isScreenTouched();
void drawFrame(int x);
void drawCurrentFrame();
void drawNewFrame(int x);
void addFrame(XibFrame &f);
void addComponent(XibComponent &c);
XibFrame *getFrame(int x);
int getCurrentFrame();
void setCurrentFrame(int x);
int getNumFrames();
};
#endif