Mana
|
Desktop widget, for drawing a background image and color. More...
#include <desktop.h>
Public Member Functions | |
Desktop () | |
~Desktop () override | |
void | reloadWallpaper () |
Has to be called after updates have been loaded. | |
void | widgetResized (const gcn::Event &) override |
void | draw (gcn::Graphics *graphics) override |
![]() | |
Container () | |
~Container () override | |
void | drawFrame (gcn::Graphics *graphics) override |
Private Member Functions | |
void | setBestFittingWallpaper () |
Private Attributes | |
ResourceRef< Image > | mWallpaper |
gcn::Label * | mVersionLabel |
Additional Inherited Members | |
![]() | |
Layout & | getLayout () |
Gets the layout handler for this container. | |
LayoutCell & | place (int x, int y, gcn::Widget *wg, int w=1, int h=1) |
Adds a widget to the container and sets it at given cell. | |
ContainerPlacer | getPlacer (int x, int y) |
Returns a proxy for adding widgets in an inner table of the layout. | |
Desktop widget, for drawing a background image and color.
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.
Desktop::Desktop | ( | ) |
Definition at line 37 of file desktop.cpp.
|
overridedefault |
|
override |
Definition at line 68 of file desktop.cpp.
void Desktop::reloadWallpaper | ( | ) |
Has to be called after updates have been loaded.
Definition at line 57 of file desktop.cpp.
|
private |
Definition at line 90 of file desktop.cpp.
|
override |
Definition at line 63 of file desktop.cpp.
|
private |