Mana
Loading...
Searching...
No Matches
desktop.h
Go to the documentation of this file.
1/*
2 * Desktop widget
3 * Copyright (c) 2009-2010 The Mana World Development Team
4 * Copyright (C) 2010-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "guichanfwd.h"
25
27
28#include "resources/resource.h"
29
30#include <guichan/widgetlistener.hpp>
31
32class Image;
33
47class Desktop : public Container, gcn::WidgetListener
48{
49 public:
50 Desktop();
51 ~Desktop() override;
52
56 void reloadWallpaper();
57
58 void widgetResized(const gcn::Event &) override;
59
60 void draw(gcn::Graphics *graphics) override;
61
62 private:
64
66 gcn::Label *mVersionLabel;
67};
A widget container.
Definition container.h:41
Desktop widget, for drawing a background image and color.
Definition desktop.h:48
void setBestFittingWallpaper()
Definition desktop.cpp:90
void reloadWallpaper()
Has to be called after updates have been loaded.
Definition desktop.cpp:57
gcn::Label * mVersionLabel
Definition desktop.h:66
ResourceRef< Image > mWallpaper
Definition desktop.h:65
~Desktop() override
Desktop()
Definition desktop.cpp:37
void draw(gcn::Graphics *graphics) override
Definition desktop.cpp:68
void widgetResized(const gcn::Event &) override
Definition desktop.cpp:63
Defines a class for loading and storing images.
Definition image.h:45
Automatically counting Resource reference.
Definition resource.h:74
Graphics * graphics
Definition client.cpp:104