3#include "IComparable.h"
56 operator RECT()
const;
81 std::is_trivial<Rect>::value && std::is_standard_layout<Rect>::value,
82 "Rect should be a POD type.");
相等性比较接口
Definition IComparable.h:14
为支持ToString方法的类提供统一接口
Definition IToString.h:13
表示相对于左上角的点坐标
Definition Point.h:15
表示一个矩形区域
Definition Rect.h:17
std::wstring ToString() const
获取描述当前对象的字符串
Point GetPos() const
获取Rect左上角的位置
Rect(const RECT &rect)
从RECT构造Rect
Size GetSize() const
获取Rect的尺寸
Rect(double left, double top, double width, double height)
构造Rect
bool Equals(const Rect &other) const
判断两个Rect是否相等
double width
宽度
Definition Rect.h:31
double top
顶边
Definition Rect.h:26
double left
左边
Definition Rect.h:21
double height
高度
Definition Rect.h:36