mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-06-28 12:39:50 +03:00
aff5f53f7d
Use references instead.
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
|