Root/
| 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 | |
| 11 | class GMenu2X; |
| 12 | |
| 13 | |
| 14 | /** |
| 15 | * The backmost layer. |
| 16 | */ |
| 17 | class Background : public Layer { |
| 18 | public: |
| 19 | Background(GMenu2X& gmenu2x); |
| 20 | |
| 21 | // Layer implementation: |
| 22 | virtual void paint(Surface& s); |
| 23 | virtual bool handleButtonPress(InputManager::Button button); |
| 24 | |
| 25 | private: |
| 26 | GMenu2X& gmenu2x; |
| 27 | Battery battery; |
| 28 | Clock clock; |
| 29 | }; |
| 30 | |
| 31 | #endif // BACKGROUND_H |
| 32 |
Branches:
install_locations
master
opkrun
packages
