pub struct StageApp { /* private fields */ }Expand description
启动阶段机 App(桌面 = ekapp 与 ek-ui 主程序共用的唯一窗口面; 0.9.5 收编:原 ekapp bin 自带的 DesktopApp 副本已删,单源在此)。
Implementations§
Source§impl StageApp
impl StageApp
Sourcepub fn new_setup(
engine: Arc<MainEngine>,
shared: Arc<UiShared>,
kinds: Vec<PlugKind>,
store: Option<Store>,
ready_marker: Option<PathBuf>,
) -> Self
pub fn new_setup( engine: Arc<MainEngine>, shared: Arc<UiShared>, kinds: Vec<PlugKind>, store: Option<Store>, ready_marker: Option<PathBuf>, ) -> Self
配置相起步(桌面 ekapp 用:开窗时引擎未装配未启动)。
Sourcepub fn set_selected(&mut self, name: &str, on: bool)
pub fn set_selected(&mut self, name: &str, on: bool)
勾选开关(判据面与后续持久化用;ui 行恒真不受它影响)。
Sourcepub fn do_assemble(&mut self) -> String
pub fn do_assemble(&mut self) -> String
「装配(按勾选)」:按勾选过滤工厂表 → boot(带 cfg 回灌口径)。
失败 = 显形回执,不锁(审核定案:装配失败留在配置相)。
Sourcepub fn do_start(&mut self) -> String
pub fn do_start(&mut self) -> String
「启动运行」:engine.start() + ready 标记 + 账户清点; 全壳 Running 才置装配锁(有壳没起来 = 不锁,运维面留修路)。
Sourcepub fn export_plugin_list(&mut self, dir: &str) -> String
pub fn export_plugin_list(&mut self, dir: &str) -> String
「导出启动清单」:勾选 → --from 可用文件(一行一名;ek-station 读路同形)。
只导无界面面认得的行(ek-station 工厂表 = default_kinds):ui/tq 是
ek-ui 宿主自带的工厂,headless 路线没有这两名 —— 混进清单会让 --from 直接报错。
被跳过的行在回执里显形,不静默。
Sourcepub fn render_setup_panel(&mut self, ui: &mut Ui)
pub fn render_setup_panel(&mut self, ui: &mut Ui)
组件配置面板(Setup 相中央面板;判据 U-S1a 的查控件面在此,判据面可见)。
Trait Implementations§
Source§impl App for StageApp
impl App for StageApp
Source§fn update(&mut self, ctx: &Context, _frame: &mut Frame)
fn update(&mut self, ctx: &Context, _frame: &mut Frame)
Called each time the UI needs repainting, which may be many times per second. Read more
Source§fn save(&mut self, _storage: &mut dyn Storage)
fn save(&mut self, _storage: &mut dyn Storage)
Called on shutdown, and perhaps at regular intervals. Allows you to save state. Read more
Source§fn on_exit(&mut self, _gl: Option<&Context>)
fn on_exit(&mut self, _gl: Option<&Context>)
Called once on shutdown, after
Self::save. Read moreSource§fn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Time between automatic calls to
Self::saveSource§fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
Background color values for the app, e.g. what is sent to
gl.clearColor. Read moreSource§fn persist_egui_memory(&self) -> bool
fn persist_egui_memory(&self) -> bool
Controls whether or not the egui memory (window positions etc) will be
persisted (only if the “persistence” feature is enabled).
Source§fn raw_input_hook(&mut self, _ctx: &Context, _raw_input: &mut RawInput)
fn raw_input_hook(&mut self, _ctx: &Context, _raw_input: &mut RawInput)
A hook for manipulating or filtering raw input before it is processed by
Self::update. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StageApp
impl !UnwindSafe for StageApp
impl Freeze for StageApp
impl Send for StageApp
impl Sync for StageApp
impl Unpin for StageApp
impl UnsafeUnpin for StageApp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.