infinipaint/src/GUIStuff/Elements/SVGIcon.hpp

17 lines
446 B
C++
Raw Normal View History

2025-07-06 20:43:53 +03:00
#pragma once
#include "Element.hpp"
namespace GUIStuff {
class SVGIcon : public Element {
public:
SVGIcon(GUIManager& gui);
2026-04-05 20:26:03 +03:00
void layout(const Clay_ElementId& id, const std::string& newSvgPath, bool newIsHighlighted = false);
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;
};
}