infinipaint/src/GUIStuff/Elements/SelectableButton.hpp
2026-03-20 20:53:59 +03:00

20 lines
567 B
C++

#pragma once
#include "Element.hpp"
namespace GUIStuff {
class SelectableButton : public Element {
public:
enum class DrawType {
TRANSPARENT_ALL,
FILLED,
FILLED_INVERSE,
TRANSPARENT_BORDER
};
void update(UpdateInputData& io, DrawType drawType, const std::function<void(SelectionHelper&, bool)>& elemUpdate, bool isSelected);
virtual void clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command, bool skiaAA) override;
SelectionHelper selection;
};
}