4 #if !defined __ZPalette_H
9 #include <mix/FloatAr.H>
10 #include <mix/LongAr.H>
49 virtual void add_color (ColorPixel theColorPixel);
50 virtual void add_color (
const char* szColorName);
54 virtual void insert_color (
unsigned index, ColorPixel theColorPixel);
55 virtual void insert_color (
unsigned index,
const char* szColorName);
56 virtual void insert_color (
unsigned index,
float rgb[3]);
73 ColorPixel
color (
unsigned index)
const;
75 const char* color_name(
unsigned index)
const;
79 ColorPixel& operator[] (
unsigned index)
85 Logic bReverse = FALSE,
86 ZDimension dim = zdHorizontal)
const;
virtual void set_smooth_rate(int n=100)
ColorPixel & fetch_color(unsigned index)
Definition: ZPalette.H:18
Pixmap draw_palette(const ZSize &zs, Logic bReverse=FALSE, ZDimension dim=zdHorizontal) const
ColorPixel color(unsigned index) const
virtual void add_color(ColorPixel theColorPixel)
virtual void remove_color(unsigned index)
virtual void load_palette(const char *szPalName)
unsigned colors_count() const
virtual void append_palette(const char *szPalName)
virtual void reset_colors()
virtual void revert_order()
ZPalette(const ZConnect &zconnect)
virtual void insert_color(unsigned index, ColorPixel theColorPixel)
int nSmooth
Definition: ZPalette.H:90