Skip to main content

ctx_adapter

Function ctx_adapter 

Source
pub fn ctx_adapter(ui: &mut Ui) -> &mut Ui
Expand description

Methods for compatibility with different versions of egui.

用于兼容不同版本egui的方法。

Use when you need to call egui::Context.

需要调用egui::Context时使用。

§Arguments

  • ui - The UI context for drawing

§Returns

Return Ui directly.

§参数

  • ui - 用于绘制的UI上下文

§返回值

直接返回Ui。