Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
C
123456789101112131415161718#include "Button.h"#include "UserInterface/Engine/Geometry.h"#include <memory>
namespace UI {class IconActionButton : public Button {
std::unique_ptr<Text> iconText; std::string icon; Color normalColor{0.0f, 0.0f, 0.0f, 0.0f};
void RefreshPrimitives() override;public: explicit IconActionButton(const std::string& icon = "", const std::string& label = "", std::function<void()> onClick = nullptr); void Measure(Size availableSpace) override; void Draw() override;};}