diff options
author | crupest <crupest@outlook.com> | 2018-09-23 17:36:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-23 17:36:20 +0800 |
commit | 95d54b36044196b7e996a188840ae8b1ef360895 (patch) | |
tree | e8dc0abd8a88edc171142da2d4ba7378e6fa0840 /CruUI/ui/controls/text_block.h | |
parent | ad8ea7fc26b3e0807d11965d93c26a6ff51db226 (diff) | |
download | cru-95d54b36044196b7e996a188840ae8b1ef360895.tar.gz cru-95d54b36044196b7e996a188840ae8b1ef360895.tar.bz2 cru-95d54b36044196b7e996a188840ae8b1ef360895.zip |
Move TextRange, make it constexpr and remove unused conversion function.
Diffstat (limited to 'CruUI/ui/controls/text_block.h')
-rw-r--r-- | CruUI/ui/controls/text_block.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/CruUI/ui/controls/text_block.h b/CruUI/ui/controls/text_block.h index b05e7ff2..a50f5ee9 100644 --- a/CruUI/ui/controls/text_block.h +++ b/CruUI/ui/controls/text_block.h @@ -11,29 +11,6 @@ namespace cru { namespace controls { - struct TextRange - { - TextRange() = default; - TextRange(const int position, const int count) - : position(position), count(count) - { - - } - TextRange(const TextRange& other) = default; - TextRange(TextRange&& other) = default; - TextRange& operator=(const TextRange& other) = default; - TextRange& operator=(TextRange&& other) = default; - ~TextRange() = default; - - unsigned position; - unsigned count; - - explicit operator DWRITE_TEXT_RANGE() const - { - return DWRITE_TEXT_RANGE { position, count }; - } - }; - class TextBlock : public Control { public: |