23 #ifndef _LAX_COLORBOX_H
24 #define _LAX_COLORBOX_H
26 #include <lax/anxapp.h>
27 #include <lax/colorbase.h>
28 #include <lax/buttondowninfo.h>
29 #include <lax/newwindowobject.h>
34 #define COLORBOX_DRAW_NUMBER (1<<16)
35 #define COLORBOX_CMYK (1<<17)
36 #define COLORBOX_RGB (1<<18)
37 #define COLORBOX_GRAY (1<<19)
39 #define COLORBOX_FG (1<<20)
40 #define COLORBOX_FGBG (1<<21)
41 #define COLORBOX_STROKEFILL (1<<22)
59 ColorBox(
anXWindow *parnt,
const char *nname,
const char *ntitle,
unsigned long nstyle,
60 int nx,
int ny,
int nw,
int nh,
int brder,
61 anXWindow *prev,
unsigned long owner,
const char *mes,
62 int ctype,
int nmax,
int nstep,
63 int c0,
int c1,
int c2,
int c3=-1,
int c4=-1,
66 virtual const char *whattype() {
return "ColorBox"; }
68 virtual const char *tooltip(
int mouseid=0);
70 virtual void Refresh();
71 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
72 virtual int LBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
73 virtual int MBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
74 virtual int MBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
75 virtual int RBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
76 virtual int RBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
78 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const LaxKeyboard *d);
79 virtual int Event(
const EventData *e,
const char *mes);
82 virtual void Updated();
Mon Feb 17 2014 11:52:56, Laxkit