#include <drawer.h>
Inheritance diagram for PrettyDrawer:
Public Methods | |
PrettyDrawer (Gdk_Window const awindow) | |
void | operator() (EntryRect const &cur, Gdk_Color rcolor) |
void | brightness (Gdk_Color &curcolor, float amount) const |
void | fg_brightness (Gdk_Color curcolor, float amount) |
|
00042 : Drawer(awindow) 00043 {} |
|
Reimplemented from Drawer. Reimplemented in DarkFirst.
00046 { 00047 float left=cur.left; 00048 float top=cur.top; 00049 float width=cur.width; 00050 float height=cur.height; 00051 float brightness=1; 00052 for (; width>0 && height >0; left++, width-=2, top++, height-=2, brightness*=.985) 00053 { 00054 fg_brightness(curcolor, brightness); 00055 window.draw_rectangle(context, true, static_cast<int>(left), 00056 static_cast<int>(top), static_cast<int>(width+1), 00057 static_cast<int>(height)); 00058 } 00059 } |
|
|
|
|