Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

GidColor Class Reference

#include <colorpicker.h>

Inheritance diagram for GidColor:

Inheritance graph
[legend]
Collaboration diagram for GidColor:

Collaboration graph
[legend]
List of all members.

Public Methods

 GidColor ()
virtual Gdk_Color operator() (EntryRect const &er)

Constructor & Destructor Documentation

GidColor::GidColor  
 

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 }


Member Function Documentation

virtual Gdk_Color GidColor::operator() EntryRect const &    er [inline, virtual]
 

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    }


The documentation for this class was generated from the following files:
Generated on Mon Apr 7 19:43:13 2003 for DuTree by doxygen1.2.18