diff options
author | crupest <crupest@outlook.com> | 2018-11-05 20:54:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-05 20:54:48 +0800 |
commit | 1dab244aaad8694ba37ef43caedd8c8ba0310c00 (patch) | |
tree | f70f6489a0f88520a0bdc095cd9713d03f83687b /src/ui/controls/text_control.h | |
parent | 252519effe30881825dd02e26dc41bd9cde34782 (diff) | |
download | cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.gz cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.bz2 cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.zip |
...
Diffstat (limited to 'src/ui/controls/text_control.h')
-rw-r--r-- | src/ui/controls/text_control.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ui/controls/text_control.h b/src/ui/controls/text_control.h index 01bb5565..18a258f2 100644 --- a/src/ui/controls/text_control.h +++ b/src/ui/controls/text_control.h @@ -12,8 +12,6 @@ namespace cru::ui::controls const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush ); public: - using TextLayoutHandlerPtr = FunctionPtr<void(Microsoft::WRL::ComPtr<IDWriteTextLayout>)>; - TextControl(const TextControl& other) = delete; TextControl(TextControl&& other) = delete; TextControl& operator=(const TextControl& other) = delete; @@ -41,11 +39,6 @@ namespace cru::ui::controls void SetTextFormat(const Microsoft::WRL::ComPtr<IDWriteTextFormat>& text_format); - - void AddTextLayoutHandler(TextLayoutHandlerPtr handler); - - void RemoveTextLayoutHandler(const TextLayoutHandlerPtr& handler); - bool IsSelectable() const { return is_selectable_; @@ -96,8 +89,6 @@ namespace cru::ui::controls Microsoft::WRL::ComPtr<IDWriteTextLayout> text_layout_; private: - Vector<TextLayoutHandlerPtr> text_layout_handlers_; - bool is_selectable_ = false; bool is_selecting_ = false; |