struct Rect
XuAPI
pub struct Rect {
pub x int
pub y int
pub width int
pub height int
}用途
承载 x、y、width、height 等属性的结构体。
公开字段
xint- 值
yint- 值
widthint- 字段(int)
heightint- 字段(int)
#embedded/display/geometry标准库包 `#embedded/display/geometry`。
struct Rectpub struct Rect {
pub x int
pub y int
pub width int
pub height int
}承载 x、y、width、height 等属性的结构体。
x inty intwidth intheight intstruct Spanpub struct Span {
pub x int
pub y int
pub offset int
pub count int
}承载 x、y、offset、count 等属性的结构体。
x inty intoffset intcount int