2025-07-06 20:43:53 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include "Element.hpp"
|
|
|
|
|
|
|
|
|
|
namespace GUIStuff {
|
|
|
|
|
|
|
|
|
|
class SVGIcon : public Element {
|
|
|
|
|
public:
|
2026-03-27 09:51:53 +03:00
|
|
|
SVGIcon(GUIManager& gui);
|
2026-04-05 20:26:03 +03:00
|
|
|
void layout(const Clay_ElementId& id, const std::string& newSvgPath, bool newIsHighlighted = false);
|
2026-03-20 20:53:59 +03:00
|
|
|
virtual void clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command, bool skiaAA) override;
|
2025-07-06 20:43:53 +03:00
|
|
|
private:
|
|
|
|
|
bool highlighted;
|
|
|
|
|
sk_sp<SkSVGDOM> svgDom;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|