23 #ifndef _LAX_SLIDERPOPUP_H
24 #define _LAX_SLIDERPOPUP_H
26 #include <lax/itemslider.h>
27 #include <lax/menuinfo.h>
31 #define SLIDER_ICON_ONLY (0<<21)
32 #define SLIDER_TEXT_ONLY (1<<21)
33 #define SLIDER_TEXT_ICON (2<<21)
34 #define SLIDER_ICON_TEXT (3<<21)
35 #define SLIDER_WHAT_MASK (3<<21)
36 #define SLIDER_ALLOW_EDIT (1<<23)
37 #define SLIDER_SEND_STRING (1<<24)
38 #define SLIDER_LEFT (1<<25)
39 #define SLIDER_RIGHT (1<<26)
40 #define SLIDER_CENTER (1<<27)
41 #define SLIDER_SKIP_TOGGLES (1<<28)
45 #define SLIDER_IGNORE_ON_BROWSE (1<<19)
54 virtual int getid(
int i);
55 virtual int numitems() {
return items->
menuitems.
n; }
58 int arrowwidth,pad,gap;
60 unsigned long nstyle,
int xx,
int yy,
int ww,
int hh,
int brder,
61 anXWindow *prev,
unsigned long nowner,
const char *nsendthis,
65 virtual int Event(
const EventData *e,
const char *mes);
66 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const LaxKeyboard *d);
67 virtual int RBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
68 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
73 virtual int GetCurrentItemIndex();
75 virtual int AddSep(
const char *name=NULL,
int where=-1);
76 virtual int AddItem(
const char *newitem,
int nid);
78 virtual int AddItems(
const char **newitems,
int n,
int startid);
79 virtual int SetState(
int which,
int extrastate,
int on);
80 virtual int GetState(
int which,
int extrastate);
82 virtual int Flush(
int completely=0);
Mon Feb 17 2014 11:52:57, Laxkit