23 #ifndef _LAX_PALETTE_H
24 #define _LAX_PALETTE_H
27 #include <lax/anxapp.h>
28 #include <lax/anobject.h>
29 #include <lax/rectangles.h>
30 #include <lax/lists.h>
31 #include <lax/buttondowninfo.h>
35 #define LAX_GIMP_PALETTE 1
46 PaletteEntry(
const char *nname,
int n,
int *v,
int space,
int max=255);
54 int default_colorspace;
68 virtual int AddRGB(
const char *name,
int r,
int g,
int b,
int max);
69 virtual int AddRGBA(
const char *name,
int r,
int g,
int b,
int a,
int max);
70 virtual int AddCMYK(
const char *name,
int c,
int m,
int y,
int k,
int max);
71 virtual int AddCMYKA(
const char *name,
int c,
int m,
int y,
int k,
int a,
int max);
72 virtual int AddGray(
const char *name,
int g,
int max);
73 virtual int AddGrayA(
const char *name,
int g,
int a,
int max);
76 Palette *rainbowPalette(
int w,
int h,
int max,
int include_gray_strip);
80 #define PALW_DBCLK_TO_LOAD (1<<16)
93 int xx,
int yy,
int ww,
int hh,
int brder,
94 anXWindow *prev,
unsigned long nowner,
const char *nsend);
96 virtual const char *whattype() {
return "PaletteWindow"; }
99 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
100 virtual int LBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
101 virtual int RBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
103 virtual void Refresh();
105 virtual int findColorIndex(
int x,
int y);
106 virtual int MoveResize(
int nx,
int ny,
int nw,
int nh);
107 virtual int Resize(
int nw,
int nh);
Mon Feb 17 2014 11:52:57, Laxkit