-
Notifications
You must be signed in to change notification settings - Fork 0
/
Painter.h
executable file
·76 lines (67 loc) · 1.74 KB
/
Painter.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* File: Painter.h
* Author: scribble
*
* Created on October 24, 2012, 10:15 AM
*/
#ifndef PAINTER_H
#define PAINTER_H
#include <GL/glu.h>
#include <poppler/cpp/poppler-image.h>
#include "ScribbleArea.h"
#include "Menu.h"
#include "Login.h"
#include "Keyboard.h"
#include "ScreenInterpreter.h"
#include "Alert.h"
#include "FileList.h"
#include "ColorPicker.h"
#include "SizePicker.h"
#include "lodepng.h"
#include <FTGL/ftgl.h>
#include "Color.h"
#include "Loading.h"
#include <math.h>
class Painter {
public:
Painter();
Painter(const Painter& orig);
virtual ~Painter();
void Draw();
ScribbleArea* getScribbleArea();
Menu *getMenu();
Login *getLogin();
Keyboard *getKeyboard();
Alert *getAlert();
FileList *getFileList();
ColorPicker *getColorPicker();
SizePicker *getSizePicker();
ScreenInterpreter *getInterpreter();
private:
ScreenInterpreter *interpreter;
ScribbleArea *scribbleArea;
Menu *menu;
Keyboard *keyboard;
Login *login;
Alert *alert;
FileList *filelist;
ColorPicker *colorPicker;
SizePicker *sizePicker;
Loading *loading;
void drawPaths();
void drawMenu();
void drawPDF();
void drawLogin();
void drawKeyboard();
void drawFileList();
void drawAlert();
void drawColorPicker();
void drawSizePicker();
void drawLoading();
void getLoadingPNG(std::string imagePath, int _x, int _y);
void getPNG(std::string imagePath, int _x, int _y);
void drawText(std::string text, int size, int x, int y, Color color);
void drawPixels(int _x, int _y, int width, int height, std::vector<unsigned char> _image);
void drawPixels(int _x, int _y, int width, int height, char* _image);
};
#endif /* PAINTER_H */