Trait SplashScreenExt

Source
pub trait SplashScreenExt {
    // Required methods
    fn spawn_splash(&mut self, config: SplashConfig) -> Entity;
    fn spawn_simple_splash(&mut self, title: impl Into<String>) -> Entity;
    fn spawn_konnektoren_splash(&mut self) -> Entity;
}
Expand description

Helper trait for easy splash screen setup

Required Methods§

Source

fn spawn_splash(&mut self, config: SplashConfig) -> Entity

Add a splash screen with the given configuration

Source

fn spawn_simple_splash(&mut self, title: impl Into<String>) -> Entity

Add a simple splash screen with just a title

Source

fn spawn_konnektoren_splash(&mut self) -> Entity

Add a Konnektoren-branded splash screen

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SplashScreenExt for Commands<'_, '_>

Source§

fn spawn_splash(&mut self, config: SplashConfig) -> Entity

Source§

fn spawn_simple_splash(&mut self, title: impl Into<String>) -> Entity

Source§

fn spawn_konnektoren_splash(&mut self) -> Entity

Implementors§