Skip to main content

with_text_runtime

Function with_text_runtime 

Source
pub fn with_text_runtime<R>(
    runtime: &TextRuntimeHandle,
    f: impl FnOnce() -> R,
) -> R
Expand description

在指定运行时中执行构建/布局/paint;嵌套 scope 在退出后恢复上一层。