23 #ifndef _LAX_BOXSELECTOR_H
24 #define _LAX_BOXSELECTOR_H
26 #include <lax/anxapp.h>
27 #include <lax/boxarrange.h>
28 #include <lax/buttondowninfo.h>
32 #define BOXSEL_COLUMNS (1<<16)
33 #define BOXSEL_VERTICAL (1<<16)
34 #define BOXSEL_ROWS (1<<17)
35 #define BOXSEL_HORIZONTAL (1<<17)
38 #define BOXSEL_CENTER (1<<19|1<<22)
39 #define BOXSEL_LEFT (1<<18)
40 #define BOXSEL_HCENTER (1<<19)
41 #define BOXSEL_RIGHT (1<<20)
42 #define BOXSEL_TOP (1<<21)
43 #define BOXSEL_VCENTER (1<<22)
44 #define BOXSEL_BOTTOM (1<<23)
48 #define BOXSEL_STRETCH (1<<24|1<<25)
49 #define BOXSEL_STRETCHX (1<<24)
50 #define BOXSEL_STRETCHY (1<<25)
51 #define BOXSEL_SPACE (1<<26|1<<27)
52 #define BOXSEL_SPACEX (1<<26)
53 #define BOXSEL_SPACEY (1<<27)
56 #define BOXSEL_STRETCH_IN_ROW (1<<28)
57 #define BOXSEL_STRETCH_IN_COL (1<<28)
61 #define BOXSEL_FLAT (1<<29)
62 #define BOXSEL_ONE_ONLY (1<<30)
75 SelBox(
int xx,
int yy,
int ww,
int hh,
int nid);
86 virtual void togglebox(
int which,
int db=1);
88 unsigned long highlight,shadow;
92 int xx,
int yy,
int ww,
int hh,
int brder,
93 anXWindow *prev,
unsigned long nowner,
const char *nsendmes,
94 int nid=0,
int npad=0);
96 virtual const char *whattype() {
return "BoxSelector"; }
101 virtual int MoveResize(
int nx,
int ny,
int nw,
int nh);
102 virtual int Resize(
int nw,
int nh);
105 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
106 virtual int LBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
107 virtual int WheelUp(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
108 virtual int WheelDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
110 virtual int SelectN(
int whichindex);
111 virtual int Select(
int whichID);
113 virtual void drawbox(
int which) = 0;
Mon Feb 17 2014 11:52:56, Laxkit