infinipaint/src/GUIStuff/Elements/SelectableButton.hpp

14 lines
425 B
C++
Raw Normal View History

2025-07-06 20:43:53 +03:00
#pragma once
#include "Element.hpp"
namespace GUIStuff {
class SelectableButton : public Element {
public:
void update(UpdateInputData& io, bool hasBorders, bool hasBorderPadding, const std::function<void(SelectionHelper&, bool)>& elemUpdate, bool isSelected);
virtual void clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command) override;
SelectionHelper selection;
};
}