diff options
author | crupest <crupest@outlook.com> | 2018-09-04 01:05:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-04 01:05:25 +0800 |
commit | 1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1 (patch) | |
tree | 03f15c6d29add5ee38e4d12b587d3e9659cba786 /CruUI/ui/controls/text_block.h | |
parent | 9397b9fb89e389906ec9f6c9ea3ca18073593c8c (diff) | |
download | cru-1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1.tar.gz cru-1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1.tar.bz2 cru-1a2cf75e94b98a649b2b1e87d62e3a3be9de5ea1.zip |
...
Diffstat (limited to 'CruUI/ui/controls/text_block.h')
-rw-r--r-- | CruUI/ui/controls/text_block.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<ID2D1Brush> brush_; + Microsoft::WRL::ComPtr<IDWriteTextLayout> text_layout_; }; } } |