forked from funkey/gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlider.h
39 lines (25 loc) · 826 Bytes
/
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
#ifndef GUI_SLIDER_H__
#define GUI_SLIDER_H__
#include <gui/ContainerView.h>
#include <gui/HorizontalPlacing.h>
#include <gui/NumberView.h>
#include <gui/TextView.h>
#include <pipeline/all.h>
#include "SliderImpl.h"
namespace gui {
class Slider : public pipeline::ProcessNode {
public:
Slider(std::string name, double min, double max);
Slider(std::string name, double min, double max, double value);
private:
// a text view for the name of the slider
boost::shared_ptr<TextView> _textView;
// the actual slider
boost::shared_ptr<SliderImpl> _sliderImpl;
// a view for the current value
boost::shared_ptr<NumberView> _valueView;
// a container view for the name, the slider, and the value
boost::shared_ptr<ContainerView<HorizontalPlacing> > _container;
};
} // namespace gui
#endif // GUI_SLIDER_H__