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);
17 void setPixmap(gPixmap *pixmap);
19 int event(int event, void *data=0, void *data2=0);
23 evtChangedSlider = evtUserWidget
25 bool m_have_border_color;
26 int m_min, m_max, m_value, m_start, m_orientation, m_border_width;
27 ePtr<gPixmap> m_pixmap;
29 gRegion m_currently_filled;