pub trait ApplicationExt: Application {
// Required methods
fn drag(&mut self) -> Task<Self::Message>;
fn maximize(&mut self) -> Task<Self::Message>;
fn minimize(&mut self) -> Task<Self::Message>;
fn title(&self, id: Id) -> &str;
fn set_window_title(&mut self, title: String, id: Id) -> Task<Self::Message>;
fn view_main(&self) -> Element<'_, Action<Self::Message>>;
// Provided methods
fn set_show_context(&mut self, show: bool) { ... }
fn set_header_title(&mut self, title: String) { ... }
fn watch_config<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone + PartialEq>(
&self,
id: &'static str,
) -> Subscription<Update<T>> { ... }
fn watch_state<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone + PartialEq>(
&self,
id: &'static str,
) -> Subscription<Update<T>> { ... }
}
Expand description
Methods automatically derived for all types implementing Application
.
Required Methods§
Provided Methods§
Sourcefn set_show_context(&mut self, show: bool)
fn set_show_context(&mut self, show: bool)
Set the context drawer visibility.
Sourcefn set_header_title(&mut self, title: String)
fn set_header_title(&mut self, title: String)
Set the header bar title.
fn watch_config<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone + PartialEq>( &self, id: &'static str, ) -> Subscription<Update<T>>
fn watch_state<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone + PartialEq>( &self, id: &'static str, ) -> Subscription<Update<T>>
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.