-
Notifications
You must be signed in to change notification settings - Fork 0
/
Point.h
43 lines (34 loc) · 843 Bytes
/
Point.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "Size.h"
namespace Wex
{
class Point : public POINT
{
public:
Point();
Point(int left, int top);
Point(const POINT& point);
Point(const SIZE& size);
Point(WPARAM pack);
Point(LPARAM pack);
Point(const Point& rhs) = default;
~Point() = default;
Point& operator=(const Point& rhs) = default;
static const Point UseDefault;
static const Point TopLeft;
static Point GetCursor();
void Set(int left, int top);
WPARAM Pack() const;
int GetLeft() const;
int GetTop() const;
void SetLeft(int value);
void SetTop(int value);
Point operator+(const SIZE& size) const;
Point& operator+=(const SIZE& size);
Size operator-(const POINT& value) const;
bool operator==(const POINT& value) const;
bool operator!=(const POINT& value) const;
private:
friend class PointTest;
};
}