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, int swapped = 0);
15 void setBorderWidth(int pixel);
16 void setBorderColor(const gRGB &color);
17 void setPixmap(gPixmap *pixmap);
18 void setPixmap(ePtr<gPixmap> &pixmap);
20 int event(int event, void *data=0, void *data2=0);
24 evtChangedSlider = evtUserWidget
26 bool m_have_border_color;
27 int m_min, m_max, m_value, m_start, m_orientation, m_orientation_swapped, m_border_width;
28 ePtr<gPixmap> m_pixmap;
30 gRegion m_currently_filled;