Added phone tool settings

This commit is contained in:
Yousef Khadadeh 2026-04-30 12:09:03 +03:00
parent f1d7cbf896
commit c90c09b169
42 changed files with 479 additions and 57 deletions

View file

@ -9,6 +9,7 @@ class CheckBox : public Element {
virtual void clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command, bool skiaAA) override;
virtual void input_mouse_button_callback(const InputManager::MouseButtonCallbackArgs& button) override;
virtual void input_finger_touch_callback(const InputManager::FingerTouchCallbackArgs& touch) override;
virtual void update() override;
void layout(const Clay_ElementId& id, const std::function<bool()>& isTicked, const std::function<void()>& onClick);
@ -16,6 +17,8 @@ class CheckBox : public Element {
static constexpr float CHECKBOX_ANIMATION_TIME = 0.3;
float hoverAnimation = 0.0;
bool oldIsTicked = false;
bool isHeld = false;
bool is_hovering_animation();
std::function<bool()> isTicked;
std::function<void()> onClick;
};