pub enum WindowCommand {
Show,
Hide,
Redraw,
Focus,
SetTitle(String),
}Expand description
对另一个窗口做的操作。
Variants§
Show
显示窗口(含从最小化恢复)并请求重绘。
Hide
隐藏窗口,但不销毁应用与 Element 树(再 Show 时状态还在)。
Redraw
只请求重绘:跨窗数据变更后唤醒背景窗口。
Focus
把键盘焦点移到该窗口。
SetTitle(String)
改标题(便于宿主/测试确认命令确实送达)。
Trait Implementations§
Source§impl Clone for WindowCommand
impl Clone for WindowCommand
Source§impl Debug for WindowCommand
impl Debug for WindowCommand
impl Eq for WindowCommand
Source§impl PartialEq for WindowCommand
impl PartialEq for WindowCommand
impl StructuralPartialEq for WindowCommand
Auto Trait Implementations§
impl Freeze for WindowCommand
impl RefUnwindSafe for WindowCommand
impl Send for WindowCommand
impl Sync for WindowCommand
impl Unpin for WindowCommand
impl UnsafeUnpin for WindowCommand
impl UnwindSafe for WindowCommand
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