23 #ifndef _LAX_COLORSLIDERS_H
24 #define _LAX_COLORSLIDERS_H
27 #include <lax/anxapp.h>
28 #include <lax/colorbase.h>
29 #include <lax/buttondowninfo.h>
30 #include <lax/rectangles.h>
31 #include <lax/lists.h>
39 enum ColorSliderBlockType {
51 enum ColorSliderType {
60 COLORSLIDER_Saturation,
62 COLORSLIDER_Transparency,
66 enum ColorSlidersStyle {
67 COLORSLIDERS_Vertical = (1<<16),
68 COLORSLIDERS_HideOldNew = (1<<17),
69 COLORSLIDERS_VerticalOldNew = (1<<18),
70 COLORSLIDERS_HideHex = (1<<19),
93 int current, currenthalf;
103 int nx,
int ny,
int nw,
int nh,
int brder,
104 anXWindow *prev,
unsigned long owner,
const char *mes,
105 int ctype,
int nmax,
int nstep,
106 int c0,
int c1,
int c2,
int c3=-1,
int c4=-1);
108 virtual const char *whattype() {
return "ColorSliders"; }
111 virtual int Resize(
int nw,
int nh);
112 virtual int MoveResize(
int nx,
int ny,
int nw,
int nh);
114 virtual void Refresh();
115 virtual void DrawVertical(
ScreenColor &color1,
ScreenColor &color2,
int x,
int y,
int w,
int h,
double pos,
const char *text);
117 virtual void DrawPos(
int x,
int y,
int w,
int h,
double pos);
118 virtual void DrawOldNew(
int x,
int y,
int w,
int h,
int horiz);
120 virtual int GetPos(
int x,
int y,
double *pos,
int *half);
121 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
122 virtual int LBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
123 virtual int MBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
124 virtual int MBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
125 virtual int RBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
126 virtual int RBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
127 virtual int MouseMove(
int mx,
int my,
unsigned int state,
const LaxMouse *d);
128 virtual int WheelUp(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
129 virtual int WheelDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
130 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const LaxKeyboard *d);
133 virtual void Updated();
134 virtual void SetBar(
int whichbar,
double pos);
136 virtual int FindBar(
int type);