aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/text_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/ui/controls/text_block.cpp')
-rw-r--r--CruUI/ui/controls/text_block.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp
new file mode 100644
index 00000000..b8fe742d
--- /dev/null
+++ b/CruUI/ui/controls/text_block.cpp
@@ -0,0 +1,27 @@
+#include "text_block.h"
+
+namespace cru
+{
+ namespace ui
+ {
+ namespace controls
+ {
+ void TextBlock::SetText(const String& text)
+ {
+ const auto old_text = text_;
+ text_ = text;
+ OnTextChangedCore(old_text, text);
+ }
+
+ void TextBlock::OnSizeChangedCore(events::SizeChangedEventArgs& args)
+ {
+
+ }
+
+ void TextBlock::OnTextChangedCore(const String& old_text, const String& new_text)
+ {
+
+ }
+ }
+ }
+}