add: Simple widget system
This commit is contained in:
@@ -6,10 +6,31 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
#include "ScreenManager.hpp"
|
||||
#include "display/Display.hpp"
|
||||
#include "font/Font.hpp"
|
||||
#include "render/RenderTarget.hpp"
|
||||
#include "widgets/clock/Analog.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
auto display = frame::display::Create();
|
||||
|
||||
if(!display)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
display->Init();
|
||||
|
||||
frame::ScreenManager screen(std::move(display));
|
||||
|
||||
screen.setRoot(frame::widgets::AnalogClock::Create());
|
||||
|
||||
screen.MainLoop();
|
||||
}
|
||||
|
||||
/*
|
||||
int main()
|
||||
{
|
||||
constexpr double pi = 3.14159;
|
||||
@@ -167,7 +188,7 @@ int main()
|
||||
|
||||
display->Clear(frame::display::Color::WHITE);
|
||||
}
|
||||
|
||||
*/
|
||||
/*
|
||||
#include <EPD_7in5_V2.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user