27 #include <lax/buttonbase.h>
28 #include <lax/laximages.h>
32 #define IBUT_ICON_ONLY (1<<18)
33 #define IBUT_TEXT_ONLY (1<<19)
34 #define IBUT_TEXT_ICON (1<<20)
35 #define IBUT_ICON_TEXT (1<<21)
41 int thing,thingw,thingh;
44 int pad,gap,labelstyle;
46 Button(
anXWindow *parnt,
const char *nname,
const char *ntitle,
unsigned long nstyle,
47 int xx,
int yy,
int ww,
int hh,
int brder,
48 anXWindow *prev,
unsigned long nowner,
const char *nsendmes,
50 const char *nlabel=NULL,
51 const char *filename=NULL,
LaxImage *img=NULL,
52 int npad=-1,
int ngap=-1);
54 virtual const char *whattype() {
return "Button"; }
55 virtual int SetGraphic(
int newthing,
int newwidth,
int newheight);
56 virtual int SetIcon(
const char *filename,
int makebw=0);
58 virtual const char *
Label(
unsigned int which);
59 virtual const char *
Label(
const char *nlabel);
60 virtual const char *
Label() {
return label; }
Mon Feb 17 2014 11:52:56, Laxkit