-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButton.h
45 lines (43 loc) · 1.13 KB
/
Button.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
//Button.h
#ifndef NEOGUI_BUTTON_H
#define NEOGUI_BUTTON_H
#include "List.h"
#include "Message.h"
namespace sdlGUI {
namespace Buttons {
static const int Standard = 0;
static const int Checkbox = 1;
static const int DropDown = 2;
}
class Button: public Element {
//Members
public:
Button *Next, *Previous;
protected:
bool Checked;
int Type;
List *DisplayList;
Message *DisplayMessage;
//Access Methods
public:
Button();
~Button();
List *GetDisplayList();
Message *GetDisplayMessage();
int GetType();
bool IsChecked();
//Process Methods
public:
void SetChecked(bool State);
void SetDisplayList(List *DisplayList);
void SetDisplayMessage(Message *DisplayMessage);
void SetType(int Type);
void ToggleCheck();
protected:
void OnLeftButtonDown();
void OnLeftButtonUp();
void OnMouseIn();
void OnMouseOut();
};
}
#endif