|
| template<IsSigned T, std::size_t N> |
| constexpr std::array< T, N > | dl::Align::Size2Anchor (const std::array< T, N > &size, const std::array< Direction, N > &dir) |
| | 垂直位置
|
| |
| template<IsSigned T, std::size_t N> |
| constexpr std::array< T, N > | dl::Align::Size2Anchor (const std::array< T, N > &size, const std::array< T, N > &size_self, const std::array< Direction, N > &dir) |
| | 根据大小和对齐,计算锚点
|
| |
| Direction2 | dl::Align::Anchor2Direction (std::string_view anchor) |
| | 锚点(字符串)返回 对齐
|
| |
| Point | dl::Align::Anchor2Point (const Size &size, std::string_view anchor) |
| | 锚点(字符串)返回 偏移
|
| |
| Position | dl::Align::Anchor2Position (const Position &size, std::string_view anchor) |
| |
| template<typename T> |
| constexpr std::array< T, 2 > | dl::Align::GetLT (const std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr std::array< T, 2 > | dl::Align::GetRT (const std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr std::array< T, 2 > | dl::Align::GetRB (const std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr std::array< T, 2 > | dl::Align::GetLB (const std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr T & | dl::Align::GetLeft (std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr T & | dl::Align::GetTop (std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr T & | dl::Align::GetRight (std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr T & | dl::Align::GetButtom (std::array< T, 4 > &rect) |
| |
| template<typename T> |
| constexpr T | dl::Align::GetHeight (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 右下角坐标y 减去 左上角坐标y
|
| |
| template<typename T> |
| constexpr T | dl::Align::GetWidth (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 右下角坐标x 减去 左上角坐标x
|
| |
| template<typename T> |
| constexpr std::array< T, 2 > | dl::Align::GetSize (const std::array< T, 4 > &rect) |
| | 计算返回 矩形 宽和高
|
| |
| template<typename T> |
| constexpr void | dl::Align::Shrink (std::array< T, 4 > &rect, const T &v) |
| | 拓展矩形
|
| |
| template<typename T> |
| constexpr std::array< T, 4 > | dl::Align::Shrink (const std::array< T, 4 > &rect, const T &v) |
| |
| template<typename T> |
| constexpr T | dl::Align::GetQuadSize (const std::array< T, 4 > &quad) |
| | 返回 Quad 的大小
|
| |
| template<typename T> |
| constexpr std::array< T, 3 > | dl::Align::GetQuadTriangle0 (const std::array< T, 4 > &quad) |
| | 返回 Quad的三角形
|
| |
| template<typename T> |
| constexpr std::array< T, 3 > | dl::Align::GetQuadTriangle1 (const std::array< T, 4 > &quad) |
| |