mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-07-02 17:52:54 +03:00
33 lines
541 B
C
33 lines
541 B
C
|
// 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:
|
||
|
Background(GMenu2X &gmenu2x);
|
||
|
|
||
|
// Layer implementation:
|
||
|
virtual void paint(Surface &s);
|
||
|
virtual bool handleButtonPress(InputManager::Button button);
|
||
|
virtual bool handleTouchscreen(Touchscreen &ts);
|
||
|
|
||
|
private:
|
||
|
GMenu2X &gmenu2x;
|
||
|
Battery battery;
|
||
|
Clock clock;
|
||
|
};
|
||
|
|
||
|
#endif // BACKGROUND_H
|