From 09e480f0c956a16751a535558b84431ea47cd38f Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 2 Sep 2018 16:25:47 +0800 Subject: ... --- CruUI/ui/controls/text_block.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 CruUI/ui/controls/text_block.cpp (limited to 'CruUI/ui/controls/text_block.cpp') 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) + { + + } + } + } +} -- cgit v1.2.3