Reorganize code in widgets

This commit is contained in:
IlyaShurupov 2024-10-14 16:41:13 +03:00 committed by Ilya Shurupov
parent 837d8dc507
commit e00dec67ba
31 changed files with 652 additions and 481 deletions

View file

@ -0,0 +1,20 @@
#pragma once
#include "Widget.hpp"
namespace tp {
class AnimationTestWidget : public Widget {
public:
AnimationTestWidget() = default;
~AnimationTestWidget() override = default;
void draw(Canvas& canvas) override;
void process(const EventHandler& events) override;
[[nodiscard]] bool needsNextFrame() const override;
private:
mutable SpringRect mTestSpring;
};
}