2013-08-09 19:01:51 +03:00
|
|
|
// Various authors.
|
|
|
|
// License: GPL version 2 or later.
|
|
|
|
|
|
|
|
#ifndef BACKGROUND_H
|
|
|
|
#define BACKGROUND_H
|
|
|
|
|
|
|
|
#include "battery.h"
|
|
|
|
#include "clock.h"
|
|
|
|
#include "layer.h"
|
|
|
|
|
|
|
|
class GMenu2X;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The backmost layer.
|
|
|
|
*/
|
|
|
|
class Background : public Layer {
|
|
|
|
public:
|
2014-08-10 05:26:59 +03:00
|
|
|
Background(GMenu2X& gmenu2x);
|
2013-08-09 19:01:51 +03:00
|
|
|
|
|
|
|
// Layer implementation:
|
2014-08-10 05:26:59 +03:00
|
|
|
virtual void paint(Surface& s);
|
2013-08-09 19:01:51 +03:00
|
|
|
virtual bool handleButtonPress(InputManager::Button button);
|
2014-08-10 05:26:59 +03:00
|
|
|
virtual bool handleTouchscreen(Touchscreen& ts);
|
2013-08-09 19:01:51 +03:00
|
|
|
|
|
|
|
private:
|
2014-08-10 05:26:59 +03:00
|
|
|
GMenu2X& gmenu2x;
|
2013-08-09 19:01:51 +03:00
|
|
|
Battery battery;
|
|
|
|
Clock clock;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BACKGROUND_H
|