#include <palette.h>
Inheritance diagram for palette:


Public Member Functions | |
| palette () | |
| palette (const palette &to_copy) | |
| palette (HPALETTE to_attach) | |
| palette (LOGPALETTE *to_copy) | |
| palette (int colors, RGBQUAD *values) | |
| ~palette () | |
| bool | valid () |
| palette & | operator= (const palette &to_copy) |
| HPALETTE | win_palette () |
| void | reset () |
| palette (window_handle parent, int gray_colors=0) | |
| virtual | ~palette () |
| IMPLEMENT_CLASS_NAME ("palette") | |
| bool | add (color &to_add) |
| void | install_gray_colormap (int number_of_colors) |
| void | make_map (Pixel *map) |
| window_color | translate (color &to_add_or_find) |
| color | lookup (const char *color_name) |
| color | lookup (const istring &color_name) |
| int | size_of_colormap () const |
| void | apply (window_handle to_apply_to) |
Definition at line 27 of file palette.h.
| palette::palette | ( | ) |
Definition at line 24 of file palette.cpp.
| palette::palette | ( | const palette & | to_copy | ) |
Definition at line 26 of file palette.cpp.
| palette::palette | ( | HPALETTE | to_attach | ) |
| palette::palette | ( | LOGPALETTE * | to_copy | ) |
Definition at line 41 of file palette.cpp.
| palette::palette | ( | int | colors, | |
| RGBQUAD * | values | |||
| ) |
Definition at line 48 of file palette.cpp.
References array< contents >::access(), non_positive(), and PALETTE_VERSION.
| palette::~palette | ( | ) |
| palette::palette | ( | window_handle | parent, | |
| int | gray_colors = 0 | |||
| ) |
Definition at line 33 of file palette.cpp.
References add(), BLACK, install_gray_colormap(), MAXIMUM_DEFAULT_COLORS, minimum(), non_continuable_error, and WHITE.
| virtual palette::~palette | ( | ) | [virtual] |
Definition at line 82 of file palette.cpp.
References array< contents >::access(), OS_palette, PALETTE_VERSION, and reset().
| HPALETTE palette::win_palette | ( | ) | [inline] |
Definition at line 49 of file palette.h.
Referenced by bitmap::paint(), and static_bitmap::realize_palette().
| void palette::reset | ( | ) |
Definition at line 76 of file palette.cpp.
References NIL.
Referenced by operator=(), bitmap::reset(), and ~palette().
| palette::IMPLEMENT_CLASS_NAME | ( | "palette" | ) |
| bool palette::add | ( | color & | to_add | ) |
Definition at line 121 of file palette.cpp.
Referenced by worker::background(), manager::background(), worker::foreground(), paintable::foreground(), manager::foreground(), lookup(), manager::manager(), palette(), visible_line::plot(), ring::plot(), oval::plot(), dot::plot(), box::plot(), and translate().
| void palette::install_gray_colormap | ( | int | number_of_colors | ) |
Definition at line 90 of file palette.cpp.
References minimum(), and translate().
Referenced by palette().
| void palette::make_map | ( | Pixel * | map | ) |
Definition at line 152 of file palette.cpp.
| window_color palette::translate | ( | color & | to_add_or_find | ) |
Definition at line 84 of file palette.cpp.
References add().
Referenced by bicolored::background(), colorable::foreground(), and install_gray_colormap().
| color palette::lookup | ( | const char * | color_name | ) |
| int palette::size_of_colormap | ( | ) | const |
Definition at line 82 of file palette.cpp.
| void palette::apply | ( | window_handle | to_apply_to | ) |
1.5.1