infinipaint/src/GUIStuff/Elements/RotateWheel.hpp

22 lines
609 B
C++
Raw Normal View History

2025-09-28 16:32:57 +03:00
#pragma once
#include "Element.hpp"
namespace GUIStuff {
class RotateWheel : public Element {
public:
void update(UpdateInputData& io, double* newRotationAnglePtr, const std::function<void()>& elemUpdate);
virtual void clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command) override;
SelectionHelper selection;
private:
float wheel_start();
float wheel_end();
void draw_rotate_wheel(SkCanvas* canvas, UpdateInputData& io);
double rotateAngle = 0.0f;
SCollision::AABB<float> bb;
bool wheelHovered;
};
}