aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/text_control.h')
-rw-r--r--src/ui/controls/text_control.h5
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);