#include <drawer.h>
Inheritance diagram for DarkFirst:


Public Methods | |
| DarkFirst (Gdk_Window const awindow) | |
| void | operator() (EntryRect const &cur, Gdk_Color rcolor) |
|
|
00076 : PrettyDrawer(awindow) 00077 {} |
|
||||||||||||
|
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 }
|
1.2.18