WidgetsNew Initial
This commit is contained in:
parent
3f49ee11ae
commit
279cf58dff
15 changed files with 741 additions and 0 deletions
22
WidgetsNew/public/FloatingWidget.hpp
Normal file
22
WidgetsNew/public/FloatingWidget.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue