infinipaint/src/GUIStuff/Elements/SelectableButton.hpp

21 lines
567 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:
enum class DrawType {
2025-11-18 21:39:14 +03:00
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;
2025-07-06 20:43:53 +03:00
SelectionHelper selection;
};
}