aboutsummaryrefslogtreecommitdiff
path: root/src/ui/layout_base.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-06 16:32:38 +0800
committercrupest <crupest@outlook.com>2018-11-06 16:32:38 +0800
commit1d551a7666ee61074fd36fed4f919c9583477fef (patch)
tree0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/ui/layout_base.h
parentbfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff)
downloadcru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz
cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2
cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip
Dev cursor for textbox.
Diffstat (limited to 'src/ui/layout_base.h')
-rw-r--r--src/ui/layout_base.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/layout_base.h b/src/ui/layout_base.h
index e1759da2..0d924436 100644
--- a/src/ui/layout_base.h
+++ b/src/ui/layout_base.h
@@ -26,6 +26,15 @@ namespace cru
Stretch
};
+ enum class RectRange
+ {
+ Content, // content excluding padding, border and margin
+ Padding, // only including content and padding
+ HalfBorder, // including content, padding and half border
+ FullBorder, // including content, padding and full border
+ Margin // including content, padding, border and margin
+ };
+
struct Thickness
{
constexpr static Thickness Zero()