23 #ifndef _LAX_MENUBUTTON_H
24 #define _LAX_MENUBUTTON_H
27 #include <lax/button.h>
28 #include <lax/menuinfo.h>
30 #define MENUBUTTON_DOWNARROW (1<<22)
31 #define MENUBUTTON_CLICK_CALLS_OWNER (1<<23)
32 #define MENUBUTTON_LEFT (1<<24)
33 #define MENUBUTTON_RIGHT (1<<25)
34 #define MENUBUTTON_SEND_STRINGS (1<<26)
36 #define MENUBUTTON_ICON_ONLY (1<<27)
37 #define MENUBUTTON_TEXT_ONLY (1<<28)
38 #define MENUBUTTON_TEXT_ICON (1<<29)
39 #define MENUBUTTON_ICON_TEXT (1<<30)
49 unsigned long menubutton_style;
51 int xx,
int yy,
int ww,
int hh,
int brder,
52 anXWindow *prev,
unsigned long nowner,
const char *nsendmes,
int nid=-1,
54 const char *nlabel=NULL,
55 const char *filename=NULL,
LaxImage *img=NULL,
56 int npad=0,
int ngap=0);
59 virtual const char *whattype() {
return "MenuButton"; }
60 virtual int LBDown(
int x,
int y,
unsigned int wstate,
int count,
const LaxMouse *d);
Mon Feb 17 2014 11:52:57, Laxkit