-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorPicker.h
49 lines (39 loc) · 1.02 KB
/
ColorPicker.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
/*
* File: ColorPicker.h
* Author: scribble
*
* Created on March 25, 2013, 4:42 AM
*/
#ifndef COLORPICKER_H
#define COLORPICKER_H
#define BLACK_BUTTON 31
#define WHITE_BUTTON 32
#define GRAY_BUTTON 33
#define BLUE_BUTTON 34
#define GREEN_BUTTON 35
#define INDIGO_BUTTON 36
#define ORANGE_BUTTON 37
#define RED_BUTTON 38
#define VIOLET_BUTTON 39
#define YELLOW_BUTTON 40
#include "Picker.h"
#include "Color.h"
#include <vector>
#include "PickerButton.h"
class ColorPicker : public Picker {
public:
ColorPicker();
ColorPicker(const ColorPicker& orig);
ColorPicker(int _x, int _y, int _width, int _height);
virtual ~ColorPicker();
std::vector<PickerButton *> *getButtonArray();
void screenPressEvent(Point* point);
void screenMoveEvent(Point* point);
void screenReleaseEvent();
void callAction(int action);
void setScreenInterpreter(ScreenInterpreter *s);
private:
std::vector<PickerButton *> *buttonArray;
ScreenInterpreter *screenInterpreter;
};
#endif /* COLORPICKER_H */