SimpleWindow
载入中...
搜索中...
未找到
sw::Rect结构体 参考

表示一个矩形区域 更多...

#include <Rect.h>

类 sw::Rect 继承关系图:
sw::IToString< Rect > sw::IEqualityComparable< Rect >

Public 成员函数

 Rect ()=default
 默认构造函数
 
 Rect (double left, double top, double width, double height)
 构造Rect
 
 Rect (const RECT &rect)
 从RECT构造Rect
 
 operator RECT () const
 隐式转换RECT
 
Point GetPos () const
 获取Rect左上角的位置
 
Size GetSize () const
 获取Rect的尺寸
 
bool Equals (const Rect &other) const
 判断两个Rect是否相等
 
std::wstring ToString () const
 获取描述当前对象的字符串
 
- Public 成员函数 继承自 sw::IToString< Rect >
std::wstring ToString () const
 获取描述当前对象的字符串
 
- Public 成员函数 继承自 sw::IEqualityComparable< Rect >
bool Equals (const Rect & other) const
 判断当前对象与另一个对象是否相等
 
bool operator== (const Rect & other) const
 判断当前对象是否与另一个对象相等
 
bool operator!= (const Rect & other) const
 判断当前对象是否与另一个对象不相等
 

Public 属性

double left
 左边
 
double top
 顶边
 
double width
 宽度
 
double height
 高度
 

详细描述

表示一个矩形区域


该结构体的文档由以下文件生成: