XU XUv0.13.1
EN

#embedded/display/geometry

导入方式: #embedded/display/geometry

公开 API: 0 函数, 0 方法, 2 类型, 0 常量, 0 方法集

标准库包 `#embedded/display/geometry`。

struct Rect

XuAPI
pub struct Rect {
    pub x int
    pub y int
    pub width int
    pub height int
}

用途

承载 x、y、width、height 等属性的结构体。

公开字段

x int
值
y int
值
width int
字段(int)
height int
字段(int)

struct Span

XuAPI
pub struct Span {
    pub x int
    pub y int
    pub offset int
    pub count int
}

用途

承载 x、y、offset、count 等属性的结构体。

公开字段

x int
值
y int
值
offset int
偏移
count int
字段(int)