Playing around with buttons

This commit is contained in:
2022-06-22 21:42:57 +02:00
parent 2402567330
commit 94d24e37fa
6 changed files with 166 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#include "gui.hpp"
std::shared_ptr<SDLPP::RectangleRender>
/*std::shared_ptr<SDLPP::RectangleRender>
createButton(double x, double y, double w, double h,
std::shared_ptr<SDLPP::Renderer> &r, const std::string &text,
const std::string &color, const std::string &outline_color,
@@ -9,4 +9,4 @@ createButton(double x, double y, double w, double h,
auto button = std::make_shared<Button>(
x, y, w, h, r, text, color, outline_color, background_color, click_fun, input);
return std::static_pointer_cast<SDLPP::RectangleRender>(button);
}
}*/