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

37 lines
826 B
C
Raw Normal View History

#pragma once
2020-11-15 16:49:36 +01:00
#include <lvgl/lvgl.h>
#include <cstdint>
2020-11-15 16:49:36 +01:00
#include <memory>
#include "Screen.h"
#include "../Apps.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
class Tile : public Screen {
public:
struct Applications {
const char* icon;
Pinetime::Applications::Apps application;
};
explicit Tile(DisplayApp* app, std::array<Applications, 6>& applications);
~Tile() override;
bool Refresh() override;
bool OnButtonPushed() override;
void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId);
private:
lv_obj_t * btnm1;
bool running = true;
2020-02-26 20:49:26 +01:00
const char* btnm_map1[8];
Pinetime::Applications::Apps apps[6];
};
}
}
}