Root/src/background.h

1// Various authors.
2// License: GPL version 2 or later.
3
4#ifndef BACKGROUND_H
5#define BACKGROUND_H
6
7#include "battery.h"
8#include "clock.h"
9#include "layer.h"
10
11class GMenu2X;
12
13
14/**
15 * The backmost layer.
16 */
17class Background : public Layer {
18public:
19    Background(GMenu2X &gmenu2x);
20
21    // Layer implementation:
22    virtual void paint(Surface &s);
23    virtual bool handleButtonPress(InputManager::Button button);
24    virtual bool handleTouchscreen(Touchscreen &ts);
25
26private:
27    GMenu2X &gmenu2x;
28    Battery battery;
29    Clock clock;
30};
31
32#endif // BACKGROUND_H
33

Archive Download this file



interactive