#include <desktop.h>
It picks the best fitting background image. If the image doesn't fit, a background color is drawn and the image is centered.
When the desktop widget is resized, the background image is automatically updated.
The desktop also displays the client version in the top-right corner.
Definition at line 44 of file desktop.h.
Public Member Functions | |
Desktop () | |
~Desktop () | |
void | reloadWallpaper () |
Has to be called after updates have been loaded. | |
void | widgetResized (const gcn::Event &event) |
void | draw (gcn::Graphics *graphics) |
Private Member Functions | |
void | setBestFittingWallpaper () |
Private Attributes | |
Image * | mWallpaper |
Desktop::Desktop | ( | ) |
Definition at line 35 of file desktop.cpp.
Desktop::~Desktop | ( | ) |
Definition at line 46 of file desktop.cpp.
void Desktop::reloadWallpaper | ( | ) |
void Desktop::widgetResized | ( | const gcn::Event & | event | ) |
Definition at line 58 of file desktop.cpp.
void Desktop::draw | ( | gcn::Graphics * | graphics | ) |
Definition at line 63 of file desktop.cpp.
void Desktop::setBestFittingWallpaper | ( | ) | [private] |
Definition at line 85 of file desktop.cpp.
Image* Desktop::mWallpaper [private] |