WidgetsNew Initial

This commit is contained in:
IlyaShurupov 2024-07-17 09:44:18 +03:00 committed by Ilya Shurupov
parent 3f49ee11ae
commit 279cf58dff
15 changed files with 741 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#pragma once
#include "Widget.hpp"
namespace tp {
class FloatingWidget : public Widget {
public:
FloatingWidget() = default;
void process(const EventHandler& events) override;
void updateArea(RectF& area) const override;
void draw(Canvas& canvas) override;
private:
bool mIsFloating = false;
Vec2F mPointerStart;
Vec2F mPointerCurrent;
};
}