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

Drawer Class Reference

#include <drawer.h>

Inheritance diagram for Drawer:

Inheritance graph
[legend]
List of all members.

Public Methods

 Drawer (Gdk_Window const awindow)
virtual ~Drawer ()
virtual void operator() (EntryRect const &cur, Gdk_Color rcolor)

Protected Attributes

Gdk_GC context
Gdk_Color curcolor
Gdk_Colormap colormap
Gdk_Window window

Constructor & Destructor Documentation

Drawer::Drawer Gdk_Window const    awindow
 

00026       :
00027 colormap(Gdk_Colormap::get_system()), window(awindow)
00028 {
00029    context.create(window);
00030 }

virtual Drawer::~Drawer   [inline, virtual]
 

00030    {}


Member Function Documentation

void Drawer::operator() EntryRect const &    cur,
Gdk_Color    rcolor
[virtual]
 

Reimplemented in PrettyDrawer, and DarkFirst.

00033 {
00034    colormap.alloc(curcolor);
00035    context.set_foreground(curcolor);
00036    window.draw_rectangle(context, true, static_cast<int>(cur.left), 
00037       static_cast<int>(cur.top), static_cast<int>(cur.width+1), 
00038       static_cast<int>(cur.height));
00039 }


Member Data Documentation

Gdk_GC Drawer::context [protected]
 

Gdk_Color Drawer::curcolor [protected]
 

Gdk_Colormap Drawer::colormap [protected]
 

Gdk_Window Drawer::window [protected]
 


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