1
0
Fork 0
InfiniTime/src/displayapp/screens/ApplicationList.h

32 lines
823 B
C
Raw Normal View History

#pragma once
2020-11-15 16:49:36 +01:00
#include <memory>
#include "Screen.h"
#include "ScreenList.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
class ApplicationList : public Screen {
public:
explicit ApplicationList(DisplayApp* app,
Pinetime::Controllers::Settings &settingsController);
~ApplicationList() override;
bool Refresh() override;
bool OnButtonPushed() override;
bool OnTouchEvent(TouchEvents event) override;
private:
Controllers::Settings& settingsController;
bool running = true;
ScreenList<2> screens;
std::unique_ptr<Screen> CreateScreen1();
std::unique_ptr<Screen> CreateScreen2();
std::unique_ptr<Screen> CreateScreen3();
};
}
}
}