-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlider.h
44 lines (41 loc) · 1.16 KB
/
Slider.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
//Slider.h
#ifndef NEOGUI_SLIDER_H
#define NEOGUI_SLIDER_H
#include "Element.h"
#include "Frame.h"
namespace sdlGUI {
namespace Sliders {
static const int Standard = 1;
static const int Drag = 2;
}
class Slider: public Element {
//Members
public:
Slider *Next, *Previous;
protected:
float MaximumValue, MinimumValue, Status;
Frame *Cursor;
int Orientation, Type;
//Access Methods
public:
Slider();
~Slider();
int GetOrientation();
float GetSliderValue();
int GetType();
//Process Methods
public:
void SetCursor(Frame *Cursor);
void SetMaximumValue(float MaximumValue);
void SetMinimumValue(float MinimumValue);
void SetOrientation(int Orientation);
void SetParentFrame(Frame *ParentFrame);
void SetStatus(float Status);
void SetSliderValue(float Value);
void SetType(int Type);
protected:
int OnInput(SDL_Event &Event);
void OnProcess();
};
}
#endif