Renderer, ...: use PixelRect::GetCenter()
[xcsoar.git] / src / Gauge / LogoView.hpp
blob6bfa838e5ae042b86108e24d565a5cbc7be37638
1 /*
2 Copyright_License {
4 XCSoar Glide Computer - http://www.xcsoar.org/
5 Copyright (C) 2000-2013 The XCSoar Project
6 A detailed list of copyright holders can be found in the file "AUTHORS".
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
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.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef XCSOAR_LOGO_VIEW_HPP
25 #define XCSOAR_LOGO_VIEW_HPP
27 #include "Screen/Bitmap.hpp"
28 #include "Screen/Font.hpp"
30 class Canvas;
32 class LogoView {
33 Bitmap logo, big_logo, title, big_title;
35 #ifndef USE_GDI
36 Font font;
37 #endif
39 public:
40 LogoView();
42 /**
43 * Draws the XCSoar logo and the version number into the Canvas, with
44 * a white background.
46 * @param canvas the Canvas to draw on
47 * @param rc the region within the Canvas to draw into
49 void draw(Canvas &canvas, const PixelRect &rc);
52 #endif