diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-05 00:17:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-05 00:17:03 +0100 |
commit | 07a64ffd954b4273bd6afc7fa03b284c3dced640 (patch) | |
tree | 5689dc492cec6d009de3b858fd9dfeb326b0c062 /src/gui/Label.cpp | |
parent | 610fca510d4cafd4ed5851109bca6fe17154c578 (diff) |
Add replay ram usage estimation
Diffstat (limited to 'src/gui/Label.cpp')
-rw-r--r-- | src/gui/Label.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/Label.cpp b/src/gui/Label.cpp index 09fd1a6..22a302f 100644 --- a/src/gui/Label.cpp +++ b/src/gui/Label.cpp @@ -18,6 +18,10 @@ namespace gsr { window.draw(text); } + void Label::set_text(std::string str) { + text.set_string(std::move(str)); + } + mgl::vec2f Label::get_size() { if(!visible) return {0.0f, 0.0f}; |