Added mini rotate wheel to toolbar
This commit is contained in:
parent
7ad86c27fe
commit
658799610b
6 changed files with 148 additions and 0 deletions
21
src/GUIStuff/Elements/RotateWheel.hpp
Normal file
21
src/GUIStuff/Elements/RotateWheel.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue