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

DarkFirst Class Reference

#include <drawer.h>

Inheritance diagram for DarkFirst:

Inheritance graph
[legend]
Collaboration diagram for DarkFirst:

Collaboration graph
[legend]
List of all members.

Public Methods

 DarkFirst (Gdk_Window const awindow)
void operator() (EntryRect const &cur, Gdk_Color rcolor)

Constructor & Destructor Documentation

DarkFirst::DarkFirst Gdk_Window const    awindow
 

00076    : PrettyDrawer(awindow)
00077 {}


Member Function Documentation

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

Reimplemented from PrettyDrawer.

00080 {
00081    float left=cur.left;
00082    float top=cur.top;
00083    float width=cur.width;
00084    float height=cur.height;
00085    float brightness=1;
00086    for (; width>0 && height >0; left++, width-=2, top++, height-=2, brightness*=.9)
00087    {
00088       brightness=width*height/cur.width/cur.height;
00089       brightness=1-(sqrtf(brightness)*.70);
00090       fg_brightness(curcolor, brightness);
00091       window.draw_rectangle(context, true, static_cast<int>(left),
00092     static_cast<int>(top), static_cast<int>(width+1), 
00093     static_cast<int>(height));
00094    }
00095 }


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