Lines Matching refs:color

3 /* <groff_src_dir>/src/libs/libgroff/color.cpp
27 #include "color.h"
49 color *color::free_list = 0;
51 void *color::operator new(size_t n)
53 assert(n == sizeof(color));
56 free_list = (color *)new char[sizeof(color)*BLOCK];
61 color *p = free_list;
62 free_list = (color *)(free_list->next);
67 void color::operator delete(void *p)
70 ((color *)p)->next = free_list;
71 free_list = (color *)p;
75 color::color(const color * const c)
85 color::~color()
89 int color::operator==(const color & c) const
117 int color::operator!=(const color & c) const
122 color_scheme color::get_components(unsigned int *c) const
126 fatal("argument is not big enough to store 4 color components");
135 void color::set_default()
142 void color::set_rgb(const unsigned int r, const unsigned int g,
153 void color::set_cmy(const unsigned int c, const unsigned int m,
164 void color::set_cmyk(const unsigned int c, const unsigned int m,
176 void color::set_gray(const unsigned int g)
208 * read_encoding - set color from a hexadecimal color string.
210 * Use color scheme `cs' to parse `n' color components from string `s'.
214 int color::read_encoding(const color_scheme cs, const char * const s,
235 int color::read_rgb(const char * const s)
240 int color::read_cmy(const char * const s)
245 int color::read_cmyk(const char * const s)
250 int color::read_gray(const char * const s)
256 color::get_rgb(unsigned int *r, unsigned int *g, unsigned int *b) const
290 color::get_cmy(unsigned int *c, unsigned int *m, unsigned int *y) const
320 void color::get_cmyk(unsigned int *c, unsigned int *m,
373 void color::get_gray(unsigned int *g) const
395 char *color::print_color()
429 color default_color;