|
| enum class | AnimationStateType { AnimationStateType::Stop
, AnimationStateType::Play
, AnimationStateType::Pause
} |
| | 动画状态类型 更多...
|
| |
| enum class | BrushStyle {
BrushStyle::Default
, BrushStyle::Texture
, BrushStyle::LinearGradient
, BrushStyle::RadialGradient
,
BrushStyle::PolygonGradient
} |
| | 画刷模式 更多...
|
| |
| enum class | CapStyle { CapStyle::Flat
, CapStyle::Square
, CapStyle::Round
} |
| | 线帽样式 更多...
|
| |
| enum class | FillStyle { FillStyle::Empty
, FillStyle::Solid
, FillStyle::Line
} |
| | 填充样式 更多...
|
| |
| enum class | FontWeight {
FontWeight::Default = 0
, FontWeight::Thin = 100
, FontWeight::Extralight = 200
, FontWeight::Ultralight = 200
,
FontWeight::Light = 300
, FontWeight::Normal = 400
, FontWeight::Regular = 400
, FontWeight::Medium = 500
,
FontWeight::Semibold = 600
, FontWeight::Demibold = 600
, FontWeight::Bold = 700
, FontWeight::Extrabold = 800
,
FontWeight::Ultrabold = 800
, FontWeight::Heavy = 900
, FontWeight::Black = 900
} |
| | 字体粗细枚举 更多...
|
| |
| enum class | JoinStyle { JoinStyle::Miter
, JoinStyle::Bevel
, JoinStyle::Round
} |
| | 接点样式 更多...
|
| |
| enum class | Key {
Key::LeftMouse = 0x01
, Key::RightMouse = 0x02
, Key::MiddleMouse = 0x04
, Key::Backspace = 0x08
,
Key::Tab = 0x09
, Key::Enter = 0x0d
, Key::Shift = 0x10
, Key::Control = 0x11
,
Key::Menu = 0x12
, Key::Pause = 0x13
, Key::Capslock = 0x14
, Key::Esc = 0x1b
,
Key::Space = 0x20
, Key::Pageup = 0x21
, Key::Pagedown = 0x22
, Key::End = 0x23
,
Key::Home = 0x24
, Key::Left = 0x25
, Key::Up = 0x26
, Key::Right = 0x27
,
Key::Down = 0x28
, Key::Print = 0x2a
, Key::Snapshot = 0x2c
, Key::Insert = 0x2d
,
Key::Delete = 0x2e
, Key::_0 = 0x30
, Key::_1 = 0x31
, Key::_2 = 0x32
,
Key::_3 = 0x33
, Key::_4 = 0x34
, Key::_5 = 0x35
, Key::_6 = 0x36
,
Key::_7 = 0x37
, Key::_8 = 0x38
, Key::_9 = 0x39
, Key::A = 0x41
,
Key::B = 0x42
, Key::C = 0x43
, Key::D = 0x44
, Key::E = 0x45
,
Key::F = 0x46
, Key::G = 0x47
, Key::H = 0x48
, Key::I = 0x49
,
Key::J = 0x4a
, Key::K = 0x4b
, Key::L = 0x4c
, Key::M = 0x4d
,
Key::N = 0x4e
, Key::O = 0x4f
, Key::P = 0x50
, Key::Q = 0x51
,
Key::R = 0x52
, Key::S = 0x53
, Key::T = 0x54
, Key::U = 0x55
,
Key::V = 0x56
, Key::W = 0x57
, Key::X = 0x58
, Key::Y = 0x59
,
Key::Z = 0x5a
, Key::LeftWin = 0x5b
, Key::RightWin = 0x5c
, Key::Sleep = 0x5f
,
Key::Num0 = 0x60
, Key::Num1 = 0x61
, Key::Num2 = 0x62
, Key::Num3 = 0x63
,
Key::Num4 = 0x64
, Key::Num5 = 0x65
, Key::Num6 = 0x66
, Key::Num7 = 0x67
,
Key::Num8 = 0x68
, Key::Num9 = 0x69
, Key::Multiply = 0x6a
, Key::Add = 0x6b
,
Key::Separator = 0x6c
, Key::Subtract = 0x6d
, Key::Decimal = 0x6e
, Key::Divide = 0x6f
,
Key::F1 = 0x70
, Key::F2 = 0x71
, Key::F3 = 0x72
, Key::F4 = 0x73
,
Key::F5 = 0x74
, Key::F6 = 0x75
, Key::F7 = 0x76
, Key::F8 = 0x77
,
Key::F9 = 0x78
, Key::F10 = 0x79
, Key::F11 = 0x7a
, Key::F12 = 0x7b
,
Key::Numlock = 0x90
, Key::Scrolllock = 0x91
, Key::LeftShift = 0xa0
, Key::RightShift = 0xa1
,
Key::LeftControl = 0xa2
, Key::RightControl = 0xa3
, Key::LeftMenu = 0xa4
, Key::RightMenu = 0xa5
,
Key::Semicolon = 0xba
, Key::Plus = 0xbb
, Key::Comma = 0xbc
, Key::Minus = 0xbd
,
Key::Period = 0xbe
, Key::Slash = 0xbf
, Key::Tilde = 0xc0
, Key::Lbrace = 0xdb
,
Key::Backslash = 0xdc
, Key::Rbrace = 0xdd
, Key::Quote = 0xde
, Key::ImeProcess = 0xe5
} |
| | 键盘按键枚举 更多...
|
| |
| enum class | LineStyle {
LineStyle::Solid
, LineStyle::Dash
, LineStyle::Dot
, LineStyle::DashDot
,
LineStyle::UserDefined
, LineStyle::Null
} |
| | 画线样式 更多...
|
| |
| enum class | MouseButton {
MouseButton::Left
, MouseButton::Right
, MouseButton::Middle
, MouseButton::X1
,
MouseButton::X2
, MouseButton::Unknown
} |
| | 鼠标按钮枚举 更多...
|
| |
| enum class | MouseWheel { MouseWheel::Up
, MouseWheel::Down
, MouseWheel::None
} |
| | 鼠标滚轮状态枚举 更多...
|
| |
| enum | TextAlign {
Left = 0x1
, Center = 0x2
, Right = 0x4
, Top = 0x10
,
Middle = 0x20
, Bottom = 0x40
} |
| | 文本对齐方式 更多...
|
| |
|
template<typename T >
requires std::is_arithmetic_v<T> |
| Line< T > | centerSymmetric (const Line< T > &l, const Point< T > &p) |
| | 计算直线l关于点p的对称线
|
| |
template<typename T >
requires std::is_arithmetic_v<T> |
| Point< T > | centerSymmetric (const Point< T > &a, const Point< T > &b) |
| | 计算点a关于点b的对称点
|
| |
template<typename T >
requires std::is_arithmetic_v<T> |
| bool | contains (const Rect< T > &r, const Point< T > &p) |
| | 判断点是否在矩形内(包含边界)
|
| |
| template<typename T > |
| constexpr Vec3< T > | cross (const Vec3< T > &v1, const Vec3< T > &v2) |
| | 计算向量叉乘
|
| |
| template<size N, typename T > |
| constexpr T | dot (const Vec< N, T > &v1, const Vec< N, T > &v2) |
| | 计算向量点乘
|
| |
| template<size M, size N, typename T > |
| constexpr T | innerProduct (const Matrix< M, N, T > &m1, const Matrix< M, N, T > &m2) |
| | 计算矩阵内积
|
| |
| template<typename CharT > |
| StdString< CharT > | join (const std::vector< StdString< CharT > > &strs, CharT *delimiter) |
| | 这是一个重载
|
| |
| template<typename CharT > |
| StdString< CharT > | join (const std::vector< StdString< CharT > > &strs, CharT delimiter) |
| | 这是一个重载
|
| |
| template<typename CharT , size_t N> |
| StdString< CharT > | join (const std::vector< StdString< CharT > > &strs, const CharT(&delimiter)[N]) |
| | 这是一个重载
|
| |
| template<typename CharT > |
| StdString< CharT > | join (const std::vector< StdString< CharT > > &strs, const StdString< CharT > &delimiter) |
| | 字符串拼接函数
|
| |
| constexpr fVec2 | makefVec2 (float x, float y) |
| | 构造浮点二维向量
|
| |
| constexpr fVec3 | makefVec3 (float x, float y, float z) |
| | 构造浮点三维向量
|
| |
| constexpr fVec4 | makefVec4 (float x, float y, float z, float w) |
| | 构造浮点四维向量
|
| |
| constexpr iVec2 | makeiVec2 (int x, int y) |
| | 构造整数二维向量
|
| |
| constexpr iVec3 | makeiVec3 (int x, int y, int z) |
| | 构造整数三维向量
|
| |
| constexpr iVec4 | makeiVec4 (int x, int y, int z, int w) |
| | 构造整数四维向量
|
| |
| template<size N, typename T , typename... TArgs> |
| constexpr Vec< N, T > | makeVec (TArgs... args) |
| | 构造向量
|
| |
| template<size N, typename T > |
| constexpr T | norm (const Vec< N, T > &v) |
| | 计算向量模长
|
| |
| template<size N, typename T > |
| constexpr Vec< N, T > | normalize (const Vec< N, T > &v) |
| | 对向量执行归一化
|
| |
template<typename T >
requires std::is_arithmetic_v<T> |
| Rect< T > | operator& (const Rect< T > &r1, const Rect< T > &r2) |
| | 计算两个矩形的交集
|
| |
| template<size N, typename T > |
| constexpr T | operator* (const Vec< N, T > &v1, const Vec< N, T > &v2) |
| | 计算向量点乘的运算符重载
|
| |
| std::ostream & | operator<< (std::ostream &os, const Color &color) |
| |
| std::ostream & | operator<< (std::ostream &os, const Font &font) |
| |
| template<size M, size N, typename T > |
| std::ostream & | operator<< (std::ostream &os, const Matrix< M, N, T > &mat) |
| | 流操作符重载
|
| |
| template<size N, typename T > |
| std::ostream & | operator<< (std::ostream &os, const Vec< N, T > &v) |
| | 流操作符重载
|
| |
| template<typename T > |
| constexpr Vec3< T > | operator^ (const Vec3< T > &v1, const Vec3< T > &v2) |
| | 计算向量叉乘的运算符重载
|
| |
| template<size M, size N, typename T > |
| constexpr T | operator| (const Matrix< M, N, T > &m1, const Matrix< M, N, T > &m2) |
| | 计算矩阵内积的运算符重载
|
| |
| template<typename T > |
| constexpr double | radians (T deg) |
| | 将角度制转为弧度制
|
| |
| template<typename T > |
| constexpr Matrix< 3, 3, T > | rotate (const Vec< 2, T > &axis, float rad) |
| | 创建二维坐标系下的旋转坐标变换矩阵
|
| |
| template<typename T > |
| constexpr Matrix< 4, 4, T > | rotate (const Vec< 3, T > &axis, float rad) |
| | 创建三维坐标系下的旋转坐标变换矩阵
|
| |
template<size M, typename T >
requires (M == 2) || (M == 3) |
| constexpr Matrix< M+1, M+1, T > | scale (const Vec< M, T > &pos, const Vec< M, T > &s) |
| | 创建缩放坐标变换矩阵
|
| |
| template<typename CharT > |
| std::vector< StdString< CharT > > | split (const StdString< CharT > &str, CharT *delimiter) |
| | 这是一个重载
|
| |
| template<typename CharT > |
| std::vector< StdString< CharT > > | split (const StdString< CharT > &str, CharT delimiter) |
| | 这是一个重载
|
| |
| template<typename CharT , size_t N> |
| std::vector< StdString< CharT > > | split (const StdString< CharT > &str, const CharT(&delimiter)[N]) |
| | 这是一个重载
|
| |
| template<typename CharT > |
| std::vector< StdString< CharT > > | split (const StdString< CharT > &str, const StdString< CharT > &delimiter) |
| | 字符串分割函数
|
| |
template<size M, typename T >
requires (M == 2) || (M == 3) |
| constexpr Matrix< M+1, M+1, T > | translate (const Vec< M, T > &v) |
| | 创建平移坐标变换矩阵
|
| |