aboutsummaryrefslogtreecommitdiff
path: root/src/ui/convert_util.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-12-10 23:29:54 +0800
committercrupest <crupest@outlook.com>2018-12-10 23:29:54 +0800
commit769a4db24b64a2baf20960858ae24461328e5b7a (patch)
treeffdd7e84d820dae71fe2af801d5f8d57e93072b1 /src/ui/convert_util.hpp
parent4219992207b524e23a426e753589001b6f7a24d0 (diff)
downloadcru-769a4db24b64a2baf20960858ae24461328e5b7a.tar.gz
cru-769a4db24b64a2baf20960858ae24461328e5b7a.tar.bz2
cru-769a4db24b64a2baf20960858ae24461328e5b7a.zip
...
Diffstat (limited to 'src/ui/convert_util.hpp')
-rw-r--r--src/ui/convert_util.hpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/ui/convert_util.hpp b/src/ui/convert_util.hpp
deleted file mode 100644
index 5408f2e4..00000000
--- a/src/ui/convert_util.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-// ReSharper disable once CppUnusedIncludeDirective
-#include "pre.hpp"
-
-#include "system_headers.hpp"
-
-#include "ui_base.hpp"
-
-namespace cru::ui
-{
- inline D2D1_POINT_2F Convert(const Point& point)
- {
- return D2D1::Point2F(point.x, point.y);
- }
-
- inline D2D1_RECT_F Convert(const Rect& rect)
- {
- return D2D1::RectF(rect.left, rect.top, rect.left + rect.width, rect.top + rect.height);
- }
-}