pub trait ApplicationExt: Application {
    // Required methods
    fn drag(&mut self) -> Command<Message<Self::Message>>;
    fn maximize(&mut self) -> Command<Message<Self::Message>>;
    fn minimize(&mut self) -> Command<Message<Self::Message>>;
    fn title(&self) -> &str;
    fn set_window_title(
        &mut self,
        title: String
    ) -> Command<Message<Self::Message>>;
    fn view_main(&self) -> Element<'_, Message<Self::Message>>;

    // Provided methods
    fn set_context_title(&mut self, title: String) { ... }
    fn set_header_title(&mut self, title: String) { ... }
}
Expand description

Methods automatically derived for all types implementing Application.

Required Methods§

source

fn drag(&mut self) -> Command<Message<Self::Message>>

Initiates a window drag.

source

fn maximize(&mut self) -> Command<Message<Self::Message>>

Maximizes the window.

source

fn minimize(&mut self) -> Command<Message<Self::Message>>

Minimizes the window.

source

fn title(&self) -> &str

Get the title of the main window.

source

fn set_window_title(&mut self, title: String) -> Command<Message<Self::Message>>

Set the title of the main window.

source

fn view_main(&self) -> Element<'_, Message<Self::Message>>

View template for the main window.

Provided Methods§

source

fn set_context_title(&mut self, title: String)

Set the context drawer title.

source

fn set_header_title(&mut self, title: String)

Set the header bar title.

Object Safety§

This trait is not object safe.

Implementors§