aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.hpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2018-12-06 03:48:18 +0800
committerGitHub <noreply@github.com>2018-12-06 03:48:18 +0800
commitf0e2b2d3763dd100a5e9d6cda566724d2b7da965 (patch)
tree24a3c1d5d4a37b724a5a5d694894ac9c09d2e6f0 /src/ui/controls/text_control.hpp
parent1166da612f01172270114921eb6785998ef88476 (diff)
parenta0ddf6549313f4b81d55d3c25c724c809230967f (diff)
downloadcru-f0e2b2d3763dd100a5e9d6cda566724d2b7da965.tar.gz
cru-f0e2b2d3763dd100a5e9d6cda566724d2b7da965.tar.bz2
cru-f0e2b2d3763dd100a5e9d6cda566724d2b7da965.zip
Merge pull request #34 from crupest/dev
Improve layout.
Diffstat (limited to 'src/ui/controls/text_control.hpp')
-rw-r--r--src/ui/controls/text_control.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/controls/text_control.hpp b/src/ui/controls/text_control.hpp
index 1e4c985d..9b83f4bb 100644
--- a/src/ui/controls/text_control.hpp
+++ b/src/ui/controls/text_control.hpp
@@ -62,10 +62,12 @@ namespace cru::ui::controls
protected:
void SetSelectable(bool is_selectable);
- Size OnMeasureContent(const Size& available_size) override final;
+ Size OnMeasureContent(const Size& available_size, const AdditionalMeasureInfo&) override final;
virtual void RequestChangeCaretPosition(unsigned position);
+ void OnRectChange(const Rect& old_rect, const Rect& new_rect) override;
+
private:
void OnTextChangedCore(const String& old_text, const String& new_text);