圆角矩形类 更多...
#include <RoundRect.hpp>
Public 成员函数 | |
| constexpr | RoundRect (const Rect< T > &rect, T rad) |
| 构造函数 | |
| template<typename U > requires std::is_arithmetic_v<U> | |
| constexpr | operator RoundRect< U > () const |
| 类型转换函数 | |
| constexpr bool | operator!= (const RoundRect< T > &other) const |
| 判断两个圆角矩形是否不同 | |
| constexpr bool | operator== (const RoundRect< T > &other) const |
| 判断两个圆角矩形是否相同 | |
| constexpr T & | radiusBottomLeft () |
| 圆角矩形左下角圆角半径 | |
| constexpr const T & | radiusBottomLeft () const |
| 圆角矩形左下角圆角半径 (const) | |
| constexpr T & | radiusBottomRight () |
| 圆角矩形右下角圆角半径 | |
| constexpr const T & | radiusBottomRight () const |
| 圆角矩形右下角圆角半径 (const) | |
| constexpr T & | radiusTopLeft () |
| 圆角矩形左上角圆角半径 | |
| constexpr const T & | radiusTopLeft () const |
| 圆角矩形左上角圆角半径 (const) | |
| constexpr T & | radiusTopRight () |
| 圆角矩形右上角圆角半径 | |
| constexpr const T & | radiusTopRight () const |
| 圆角矩形右上角圆角半径 (const) | |
| constexpr const Rect< T > & | rect () const |
| 圆角矩形所在矩形 | |
友元 | |
| std::ostream & | operator<< (std::ostream &os, const RoundRect< T > &r) |
| 输出圆角矩形信息到输出流 | |
|
inlineconstexpr |
构造函数
| rect | 矩形 |
| rad | 圆角半径 |
|
inlineconstexpr |
类型转换函数
| U | 目标类型 |
|
inlineconstexpr |
判断两个圆角矩形是否不同
| other | 另一个圆角矩形 |
|
inlineconstexpr |
判断两个圆角矩形是否相同
| other | 另一个圆角矩形 |
|
inlineconstexpr |
圆角矩形左下角圆角半径
|
inlineconstexpr |
圆角矩形左下角圆角半径 (const)
|
inlineconstexpr |
圆角矩形右下角圆角半径
|
inlineconstexpr |
圆角矩形右下角圆角半径 (const)
|
inlineconstexpr |
圆角矩形左上角圆角半径
|
inlineconstexpr |
圆角矩形左上角圆角半径 (const)
|
inlineconstexpr |
圆角矩形右上角圆角半径
|
inlineconstexpr |
圆角矩形右上角圆角半径 (const)
|
inlineconstexpr |
圆角矩形所在矩形