aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/ui_base.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-23 17:36:20 +0800
committercrupest <crupest@outlook.com>2018-09-23 17:36:20 +0800
commit95d54b36044196b7e996a188840ae8b1ef360895 (patch)
treee8dc0abd8a88edc171142da2d4ba7378e6fa0840 /CruUI/ui/ui_base.h
parentad8ea7fc26b3e0807d11965d93c26a6ff51db226 (diff)
downloadcru-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.h13
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;
+ };
}
}