diff options
Diffstat (limited to 'base/gfx/point.h')
-rw-r--r-- | base/gfx/point.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h index 3e09a81..1a41031 100644 --- a/base/gfx/point.h +++ b/base/gfx/point.h @@ -34,7 +34,11 @@ #include <iostream> #endif +#if defined(OS_WIN) typedef struct tagPOINT POINT; +#elif defined(OS_MACOSX) +#import <ApplicationServices/ApplicationServices.h> +#endif namespace gfx { @@ -45,7 +49,11 @@ class Point { public: Point(); Point(int x, int y); +#if defined(OS_WIN) explicit Point(const POINT& point); +#elif defined(OS_MACOSX) + explicit Point(const CGPoint& point); +#endif ~Point() {} @@ -68,7 +76,11 @@ class Point { return !(*this == rhs); } +#if defined(OS_WIN) POINT ToPOINT() const; +#elif defined(OS_MACOSX) + CGPoint ToCGPoint() const; +#endif private: int x_; |