iced_multi_window

Trait Window

Source
pub trait Window<App, Theme, Message, Renderer = Renderer>:
    Send
    + Debug
    + DynClone {
    // Required methods
    fn view<'a>(&'a self, app: &'a App) -> Element<'a, Message, Theme, Renderer>;
    fn title(&self, app: &App) -> String;
    fn theme(&self, app: &App) -> Theme;
    fn settings(&self) -> Settings;

    // Provided methods
    fn id(&self) -> String { ... }
    fn class(&self) -> &'static str { ... }
}

Required Methods§

Source

fn view<'a>(&'a self, app: &'a App) -> Element<'a, Message, Theme, Renderer>

Source

fn title(&self, app: &App) -> String

Source

fn theme(&self, app: &App) -> Theme

Source

fn settings(&self) -> Settings

Provided Methods§

Source

fn id(&self) -> String

The unique identifier for this window. This includes any internal data.

Source

fn class(&self) -> &'static str

An identifier for this window’s “class”. Whereas id is used to identify individual windows, class is used to identify a window’s type.

Trait Implementations§

Source§

impl<App, Theme, Message, Renderer, T: Window<App, Theme, Message, Renderer>> PartialEq<T> for Box<dyn Window<App, Theme, Message, Renderer>>

Source§

fn eq(&self, other: &T) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<App, Theme, Message, Renderer> Window<App, Theme, Message, Renderer> for Box<dyn Window<App, Theme, Message, Renderer>>

Source§

fn view<'a>(&'a self, app: &'a App) -> Element<'a, Message, Theme, Renderer>

Source§

fn title(&self, app: &App) -> String

Source§

fn theme(&self, app: &App) -> Theme

Source§

fn settings(&self) -> Settings

Source§

fn id(&self) -> String

The unique identifier for this window. This includes any internal data.
Source§

fn class(&self) -> &'static str

An identifier for this window’s “class”. Whereas id is used to identify individual windows, class is used to identify a window’s type.

Implementations on Foreign Types§

Source§

impl<App, Theme, Message, Renderer> Window<App, Theme, Message, Renderer> for Box<dyn Window<App, Theme, Message, Renderer>>

Source§

fn view<'a>(&'a self, app: &'a App) -> Element<'a, Message, Theme, Renderer>

Source§

fn title(&self, app: &App) -> String

Source§

fn theme(&self, app: &App) -> Theme

Source§

fn settings(&self) -> Settings

Source§

fn id(&self) -> String

Source§

fn class(&self) -> &'static str

Implementors§