XU XUv0.13.1
EN

#app

导入方式: #app

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

标准库包 `#app`。

next_frame

XuAPI
pub fn next_frame() bool

用途

执行 next frame 操作。失败时抛出错误,调用方需处理或继续传播。

参数

无需传入参数。

返回值

bool — 是否成立

resume_epoch

XuAPI
pub fn resume_epoch() int

用途

执行 resume epoch 操作。

参数

无需传入参数。

返回值

int — 该类型的值

is_hosted

XuAPI
pub fn is_hosted() bool

用途

判断是否 hosted。

参数

无需传入参数。

返回值

bool — 是否成立

intercept_back

XuAPI
pub fn intercept_back(enabled bool) int

用途

执行 intercept back 操作。失败时抛出错误,调用方需处理或继续传播。

参数

enabled bool
enabled(bool)

返回值

int — 该类型的值

resource_path

XuAPI
pub fn resource_path(relative string) string

用途

执行 resource path 操作。失败时抛出错误,调用方需处理或继续传播。

参数

relative string
relative(string)

返回值

string — 结果字符串

data_path

XuAPI
pub fn data_path(relative string) string

用途

执行 data path 操作。失败时抛出错误,调用方需处理或继续传播。

参数

relative string
relative(string)

返回值

string — 结果字符串