From a664dec07f894c88105c356816b49cac244ad319 Mon Sep 17 00:00:00 2001 From: JF Date: Fri, 21 Aug 2020 11:55:59 +0200 Subject: Add paint application. --- src/DisplayApp/Screens/InfiniPaint.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/DisplayApp/Screens/InfiniPaint.h (limited to 'src/DisplayApp/Screens/InfiniPaint.h') diff --git a/src/DisplayApp/Screens/InfiniPaint.h b/src/DisplayApp/Screens/InfiniPaint.h new file mode 100644 index 00000000..a1592f97 --- /dev/null +++ b/src/DisplayApp/Screens/InfiniPaint.h @@ -0,0 +1,35 @@ +#pragma once + +#include +#include "Screen.h" +#include +#include +#include +#include +#include + +namespace Pinetime { + namespace Applications { + namespace Screens { + + class InfiniPaint : public Screen{ + public: + InfiniPaint(DisplayApp* app, Pinetime::Components::LittleVgl& lvgl); + ~InfiniPaint() override; + + bool Refresh() override; + bool OnButtonPushed() override; + bool OnTouchEvent(TouchEvents event) override; + bool OnTouchEvent(uint16_t x, uint16_t y) override; + + private: + Pinetime::Components::LittleVgl& lvgl; + static constexpr uint16_t width = 10; + static constexpr uint16_t height = 10; + static constexpr uint16_t bufferSize = width*height; + lv_color_t b[bufferSize]; + bool running = true; + }; + } + } +} -- cgit v1.2.3-70-g09d2