summaryrefslogtreecommitdiffstats
path: root/base/gfx/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/point.h')
-rw-r--r--base/gfx/point.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h
index 7f95096..513d555 100644
--- a/base/gfx/point.h
+++ b/base/gfx/point.h
@@ -10,6 +10,7 @@
#include <iosfwd>
#if defined(OS_WIN)
+typedef unsigned long DWORD;
typedef struct tagPOINT POINT;
#elif defined(OS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
@@ -25,6 +26,10 @@ class Point {
Point();
Point(int x, int y);
#if defined(OS_WIN)
+ // |point| is a DWORD value that contains a coordinate. The x-coordinate is
+ // the low-order short and the y-coordinate is the high-order short. This
+ // value is commonly acquired from GetMessagePos/GetCursorPos.
+ explicit Point(DWORD point);
explicit Point(const POINT& point);
Point& operator=(const POINT& point);
#elif defined(OS_MACOSX)
@@ -72,4 +77,4 @@ class Point {
std::ostream& operator<<(std::ostream& out, const gfx::Point& p);
-#endif // BASE_GFX_POINT_H__
+#endif // BASE_GFX_POINT_H__