From 95d54b36044196b7e996a188840ae8b1ef360895 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 23 Sep 2018 17:36:20 +0800 Subject: Move TextRange, make it constexpr and remove unused conversion function. --- CruUI/ui/ui_base.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CruUI/ui/ui_base.h') 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; + }; } } -- cgit v1.2.3