pub struct ModuleWin {}Expand description
一扇模块窗。
Fields§
§id: String窗口键(egui viewport id / 嵌入窗 id 都吃它,保证多窗互不踩)。
kind: String模块名(= ek_core::Plugin::kind)。
title: String菜单文字 + 窗标题。
icon: &'static stremoji(菜单前缀)。
order: i32菜单内排序。
shape: Shape窗内形状。
instances: Vec<String>该模块当前实例名(装配后由 Registry::sync 维护)。
always: booltrue = 未装配也出现(交易网关 / 宿主自有窗)。
maximized: bool打开即最大化(BD-UI-34:K线窗用户裁定)。
open: bool开合(关窗不销毁实例)。
size: [f32; 2]默认内尺寸。
min_size: [f32; 2]最小内尺寸。
body: Body窗体。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleWin
impl RefUnwindSafe for ModuleWin
impl Send for ModuleWin
impl Sync for ModuleWin
impl Unpin for ModuleWin
impl UnsafeUnpin for ModuleWin
impl UnwindSafe for ModuleWin
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.