#include <colorpicker.h>
Inheritance diagram for GidColor:
Public Methods | |
GidColor () | |
virtual Gdk_Color | operator() (EntryRect const &er) |
|
00020 { 00021 gidcolor[0].set_rgb(65535, 65535, 0); 00022 gidcolor[40].set_rgb(65535, 32768, 0); 00023 gidcolor[573].set_rgb(32768, 65535, 32768); 00024 gidcolor[1000].set_rgb(32768, 32768, 65535); 00025 } |
|
Reimplemented from ColorPicker.
00039 { 00040 std::map<gid_t, Gdk_Color>::const_iterator color; 00041 color=gidcolor.find(er.get_EnTree().getGid()); 00042 if (color!=gidcolor.end()) 00043 { 00044 return color->second; 00045 } 00046 else 00047 { 00048 Gdk_Color white; 00049 white.set_rgb(65535,65535,65535); 00050 return white; 00051 } 00052 } |