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/ui_base.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/ui_base.h')
-rw-r--r-- | CruUI/ui/ui_base.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CruUI/ui/ui_base.h b/CruUI/ui/ui_base.h index c9ae6017..43f3c498 100644 --- a/CruUI/ui/ui_base.h +++ b/CruUI/ui/ui_base.h @@ -137,5 +137,18 @@ namespace cru Right, Middle }; + + struct TextRange + { + constexpr TextRange() = default; + constexpr TextRange(const int position, const int count) + : position(position), count(count) + { + + } + + unsigned position = 0; + unsigned count = 0; + }; } } |