1 #ifndef __lib_gui_eslider_h
2 #define __lib_gui_eslider_h
4 #include <lib/gui/ewidget.h>
6 class eSlider: public eWidget
9 eSlider(eWidget *parent);
10 void setValue(int val);
11 void setStartEnd(int start, int end);
12 void setRange(int min, int max);
13 enum { orHorizontal, orVertical };
14 void setOrientation(int orientation);
15 void setBorderWidth(int pixel);
16 void setBorderColor(const gRGB &color);
18 int event(int event, void *data=0, void *data2=0);
22 evtChangedSlider = evtUserWidget
24 bool m_have_border_color;
25 int m_min, m_max, m_value, m_start, m_orientation, m_border_width;
27 gRegion m_currently_filled;