aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/text.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/menu/text.cpp b/src/menu/text.cpp
index 301cc62b..39df2e06 100644
--- a/src/menu/text.cpp
+++ b/src/menu/text.cpp
@@ -106,5 +106,17 @@ namespace usdx
{
return text;
}
+
+ void Text::set_size(const Dimension<int>& size)
+ {
+ DrawableControl::set_size(size);
+ realign();
+ }
+
+ void Text::set_size(int width, int height)
+ {
+ DrawableControl::set_size(width, height);
+ realign();
+ }
};