23 #ifndef _LAX_NUMSLIDER_H
24 #define _LAX_NUMSLIDER_H
26 #include <lax/itemslider.h>
30 #define NUMSLIDER_WRAP (1<<20)
38 virtual int getid(
int i) {
return curitem; }
39 virtual int numitems() {
return max-min+1; }
43 int xx,
int yy,
int ww,
int hh,
int brder,
44 anXWindow *prev,
unsigned long nowner,
const char *nsendthis,
const char *nlabel,
int nmin,
int nmax,
int cur=-10000);
45 virtual int MouseMove(
int x,
int y,
unsigned int state,
const LaxMouse *d);
46 virtual int SelectPrevious();
47 virtual int SelectNext();
50 virtual const char *
Label(
const char *nlabel);
51 virtual int NewMin(
int nmin) {
return min=nmin; }
52 virtual int NewMax(
int nmax) {
return max=nmax; }
53 virtual int NewMinMax(
int nmin,
int nmax) { max=nmax;
return min=nmin; }
54 virtual int Value() {
return curitem; }
Mon Feb 17 2014 11:52:57, Laxkit