Trait WindowHistory
pub trait WindowHistory {
// Required methods
fn set_window_presents_history(&mut self, tab_presents: bool);
fn window_history_control(&self) -> Option<HistoryControl>;
fn invoke_window_history_control(
&mut self,
control: HistoryControl,
) -> Result<(), String>;
}Expand description
An app that runs a History of its own inside a desktop window (an app shown in a region of the host’s scene). The window presents its History control in the tab row, as one more control of the window, so the app draws no History band of its own.
Required Methods§
fn set_window_presents_history(&mut self, tab_presents: bool)
fn set_window_presents_history(&mut self, tab_presents: bool)
The window’s tab row shows (true) and presents the control, or is
hidden, so the app’s header row may hold it instead.
fn window_history_control(&self) -> Option<HistoryControl>
fn window_history_control(&self) -> Option<HistoryControl>
The control to show for this app’s History, or None where it has
no History to open.
fn invoke_window_history_control(
&mut self,
control: HistoryControl,
) -> Result<(), String>
fn invoke_window_history_control( &mut self, control: HistoryControl, ) -> Result<(), String>
The window’s History control was pressed: run it on this app’s History door, as the History shortcut does.
§Errors
The app has no History, or its door refused the operation.