diff options
author | crupest <crupest@outlook.com> | 2018-10-04 01:47:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-04 01:47:49 +0800 |
commit | 01ab4511d3006e9f65ff96ae63b21de14b41bc48 (patch) | |
tree | e4fa991e7784571c164301ff7ade5aa1ef515744 /src/ui/controls/text_control.h | |
parent | 30ecda8bb354d5982978af97aa90b5f49d9ea195 (diff) | |
download | cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.gz cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.bz2 cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.zip |
...
Diffstat (limited to 'src/ui/controls/text_control.h')
-rw-r--r-- | src/ui/controls/text_control.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/controls/text_control.h b/src/ui/controls/text_control.h index 2ead7c54..01bb5565 100644 --- a/src/ui/controls/text_control.h +++ b/src/ui/controls/text_control.h @@ -68,7 +68,7 @@ namespace cru::ui::controls protected: void OnSizeChangedCore(events::SizeChangedEventArgs& args) override final; - void OnDraw(ID2D1DeviceContext* device_context) override; + void OnDrawContent(ID2D1DeviceContext* device_context) override; void OnMouseDownCore(events::MouseButtonEventArgs& args) override final; void OnMouseMoveCore(events::MouseEventArgs& args) override final; @@ -76,9 +76,8 @@ namespace cru::ui::controls void OnLoseFocusCore(events::FocusChangeEventArgs& args) override; - Size OnMeasure(const Size& available_size) override; + Size OnMeasureContent(const Size& available_size) override; - Size TextMeasureWithPadding(const Size& available_size, const Thickness& padding); virtual void RequestChangeCaretPosition(unsigned position); |