diff options
author | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
commit | 1d551a7666ee61074fd36fed4f919c9583477fef (patch) | |
tree | 0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/ui/control.h | |
parent | bfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff) | |
download | cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2 cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip |
Dev cursor for textbox.
Diffstat (limited to 'src/ui/control.h')
-rw-r--r-- | src/ui/control.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ui/control.h b/src/ui/control.h index db89b3b6..2a608374 100644 --- a/src/ui/control.h +++ b/src/ui/control.h @@ -29,17 +29,6 @@ namespace cru Point lefttop_position_absolute; }; - - 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 - }; - - class Control : public Object { friend class Window; @@ -176,6 +165,7 @@ namespace cru Rect GetRect(RectRange range); + Point TransformPoint(const Point& point, RectRange from = RectRange::Margin, RectRange to = RectRange::Content); //*************** region: border *************** |