Skip to main content

RevealTarget

Trait RevealTarget 

Source
pub trait RevealTarget {
    // Required methods
    fn prepare(&mut self);
    fn app_show(&mut self);
    fn unminimize(&mut self) -> Result<(), String>;
    fn show(&mut self) -> Result<(), String>;
    fn focus(&mut self) -> Result<(), String>;
    fn order_back(&mut self) -> Result<(), String>;
}
Expand description

The window calls one reveal makes, so every path is testable (and recordable) without a window.

Required Methods§

Source

fn prepare(&mut self)

Before a foreground reveal of the main window: back to a Regular app, run the host’s visibility callback.

Source

fn app_show(&mut self)

macOS app.show().

Source

fn unminimize(&mut self) -> Result<(), String>

Source

fn show(&mut self) -> Result<(), String>

Source

fn focus(&mut self) -> Result<(), String>

Source

fn order_back(&mut self) -> Result<(), String>

QA background: native order-back without activation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§