|
| enum class | Direction : int { BACK = -1
, ZERO = 0
, FRONT = 1
, FARTHEST = std::numeric_limits<int>::lowest()
} |
| |
| enum class | Dir4 { RIGHT = 0
, BOTTOM
, LEFT
, TOP
} |
| |
| enum class | Dir8 {
RIGHT = 0
, RB
, BOTTOM
, LB
,
LEFT
, LT
, TOP
, RT
} |
| |
| enum class | LTRB { LEFT = 0
, TOP = 1
, RIGHT = 2
, BUTTOM = 3
} |
| | 9方向定义(包含0为中心),以x正轴,朝y轴旋转 更多...
|
| |
| enum class | Corner { LT = 0
, RT = 1
, RB = 2
, LB = 3
} |
| | 水平位置 更多...
|
| |
|
| template<IsSigned T, std::size_t N> |
| constexpr std::array< T, N > | Size2Anchor (const std::array< T, N > &size, const std::array< Direction, N > &dir) |
| | 垂直位置 更多...
|
| |
| Direction2 | Anchor2Direction (std::string_view anchor) |
| | 锚点(字符串)返回 对齐 更多...
|
| |
| Point | Anchor2Point (const Size &size, std::string_view anchor) |
| | 锚点(字符串)返回 偏移 更多...
|
| |
| template<typename T > |
| constexpr std::array< T, 2 > | GetLT (const std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr std::array< T, 2 > | GetRT (const std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr std::array< T, 2 > | GetRB (const std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr std::array< T, 2 > | GetLB (const std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr T & | GetLeft (std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr T & | GetTop (std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr T & | GetRight (std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr T & | GetButtom (std::array< T, 4 > &rect) |
| |
| template<typename T > |
| constexpr T | GetHeight (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 右下角坐标y 减去 左上角坐标y 更多...
|
| |
| template<typename T > |
| constexpr T | GetWidth (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 右下角坐标x 减去 左上角坐标x 更多...
|
| |
| template<typename T > |
| constexpr std::array< T, 2 > | GetSize (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 宽和高 更多...
|
| |
| template<typename T > |
| constexpr T | GetQuadSize (const std::array< T, 4 > &quad) |
| | 返回 Quad 的大小 更多...
|
| |
| template<typename T > |
| constexpr std::array< T, 3 > | GetQuadTriangle0 (const std::array< T, 4 > &quad) |
| | 返回 Quad的三角形 更多...
|
| |
| template<typename T > |
| constexpr std::array< T, 3 > | GetQuadTriangle1 (const std::array< T, 4 > &quad) |
| |