aboutsummaryrefslogtreecommitdiff
path: root/src/ui/convert_util.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-10 21:53:33 +0800
committercrupest <crupest@outlook.com>2018-11-10 21:53:33 +0800
commite5513daa53cb958b0c83d575c440f40aaf40f562 (patch)
treec6782f0cbfe4eca466f13ef571338e6b55342860 /src/ui/convert_util.hpp
parentcfcd03f564e82419345a7a6900fdc17c5b8c2631 (diff)
downloadcru-e5513daa53cb958b0c83d575c440f40aaf40f562.tar.gz
cru-e5513daa53cb958b0c83d575c440f40aaf40f562.tar.bz2
cru-e5513daa53cb958b0c83d575c440f40aaf40f562.zip
...
Diffstat (limited to 'src/ui/convert_util.hpp')
-rw-r--r--src/ui/convert_util.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/convert_util.hpp b/src/ui/convert_util.hpp
new file mode 100644
index 00000000..1c18f59b
--- /dev/null
+++ b/src/ui/convert_util.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "system_headers.hpp"
+
+#include "ui_base.hpp"
+
+namespace cru::ui
+{
+ inline D2D1_RECT_F Convert(const Rect& rect)
+ {
+ return D2D1::RectF(rect.left, rect.top, rect.left + rect.width, rect.top + rect.height);
+ }
+}