gx
Color 颜色
结构体
pub struct Color {
pub mut:
r u8
g u8
b u8
a u8 = 255
}构建函数
方法
常量
运算符重载
Image 图像
结构体
方法
FontCfg 字体配置
结构体
最后更新于
pub struct Color {
pub mut:
r u8
g u8
b u8
a u8 = 255
}最后更新于
pub struct Image {
mut:
obj voidptr //图像数据的首字节指针
pub:
id int //图像id
width int //图像宽度
height int //图像高度
}pub struct TextCfg {
pub:
color Color
size int
align int
max_width int
family string
bold bool
mono bool
}