Trait AboutScreenExt

Source
pub trait AboutScreenExt {
    // Required methods
    fn spawn_about(&mut self, config: AboutConfig) -> Entity;
    fn spawn_simple_about(&mut self, title: impl Into<String>) -> Entity;
    fn spawn_game_about(&mut self, title: impl Into<String>) -> Entity;
}
Expand description

Helper trait for easy about screen setup

Required Methods§

Source

fn spawn_about(&mut self, config: AboutConfig) -> Entity

Add an about screen with the given configuration

Source

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

Add a simple about screen with just a title

Source

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

Add a game-focused about 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 AboutScreenExt for Commands<'_, '_>

Source§

fn spawn_about(&mut self, config: AboutConfig) -> Entity

Source§

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

Source§

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

Implementors§