From 1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 4 Sep 2018 01:05:25 +0800 Subject: ... --- CruUI/ui/controls/text_block.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CruUI/ui/controls/text_block.h') diff --git a/CruUI/ui/controls/text_block.h b/CruUI/ui/controls/text_block.h index aea4629f..ff1870c1 100644 --- a/CruUI/ui/controls/text_block.h +++ b/CruUI/ui/controls/text_block.h @@ -28,12 +28,18 @@ namespace cru protected: void OnSizeChangedCore(events::SizeChangedEventArgs& args) override final; + void OnDraw(ID2D1DeviceContext* device_context) override; private: void OnTextChangedCore(const String& old_text, const String& new_text); + void CreateTextLayout(); + private: String text_; + + Microsoft::WRL::ComPtr brush_; + Microsoft::WRL::ComPtr text_layout_; }; } } -- cgit v1.2.3