28 lines
693 B
C++
28 lines
693 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "Screen.h"
|
|
#include "ScreenList.h"
|
|
|
|
namespace Pinetime {
|
|
namespace Applications {
|
|
namespace Screens {
|
|
class ApplicationList : public Screen {
|
|
public:
|
|
explicit ApplicationList(DisplayApp* app);
|
|
~ApplicationList() override;
|
|
bool Refresh() override;
|
|
bool OnButtonPushed() override;
|
|
bool OnTouchEvent(TouchEvents event) override;
|
|
private:
|
|
bool running = true;
|
|
|
|
ScreenList<2> screens;
|
|
std::unique_ptr<Screen> CreateScreen1();
|
|
std::unique_ptr<Screen> CreateScreen2();
|
|
std::unique_ptr<Screen> CreateScreen3();
|
|
};
|
|
}
|
|
}
|
|
} |