From ee97e5eecb86b89e3663bb95eeb0b5df3182f8e3 Mon Sep 17 00:00:00 2001 From: Kitetsu Date: Sun, 5 Nov 2023 18:08:04 +0100 Subject: [PATCH] BLUGA-GRAPHICS: Update Button struct to have a name to be identified --- .../include/B-luga-graphics/GraphicsCustomTypes.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/B-luga-graphics/include/B-luga-graphics/GraphicsCustomTypes.hpp b/libs/B-luga-graphics/include/B-luga-graphics/GraphicsCustomTypes.hpp index 376e4c2..d63cff4 100644 --- a/libs/B-luga-graphics/include/B-luga-graphics/GraphicsCustomTypes.hpp +++ b/libs/B-luga-graphics/include/B-luga-graphics/GraphicsCustomTypes.hpp @@ -51,8 +51,9 @@ namespace Types { }; struct Button { - Button(std::function &fct) : callback(fct) {}; + Button(std::function &fct, const std::string &name = "") : callback(fct), _name(name){}; std::function callback; + std::string name; }; struct InputBox {