From e3fb2f0b8974f3e9a124d27f4b568e754ccfb782 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:46:41 +0300 Subject: Renamed DisplayApp/ to displayapp/ --- 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