]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/mag/server/src/background.h
Inital import
[l4.git] / l4 / pkg / mag / server / src / background.h
1 /*
2  * (c) 2010 Technische Universität Dresden
3  * This file is part of TUD:OS and distributed under the terms of the
4  * GNU General Public License 2.
5  * Please see the COPYING-GPL-2 file for details.
6  */
7 #pragma once
8
9 #include <l4/mag-gfx/canvas>
10 #include <l4/mag-gfx/clip_guard>
11
12 #include "view"
13
14 namespace Mag_server {
15
16 using namespace Mag_gfx;
17
18 class Background : public View
19 {
20 public:
21   explicit Background(Area const &size) : View(Rect(Point(0,0), size)) {}
22   void draw(Canvas *c, View_stack const *, Mode, bool) const
23   {
24     Clip_guard g(c, *this);
25     c->draw_box(*this, Rgb32::Color(25, 37, 50));
26   }
27
28 };
29
30 }