diff options
Diffstat (limited to 'win32/PlatWin.h')
| -rw-r--r-- | win32/PlatWin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 01e321e4c..f4f804b2e 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -15,6 +15,14 @@ extern void Platform_Finalise(bool fromDllMain); RECT RectFromPRectangle(PRectangle prc) noexcept; +constexpr POINT POINTFromPoint(Point pt) noexcept { + return POINT{ static_cast<LONG>(pt.x), static_cast<LONG>(pt.y) }; +} + +constexpr Point PointFromPOINT(POINT pt) noexcept { + return Point::FromInts(pt.x, pt.y); +} + constexpr HWND HwndFromWindowID(WindowID wid) noexcept { return static_cast<HWND>(wid); } |
