DevToolsExtensions
trait · ferroui-diagnostics · v0.5.0
trait DevToolsExtensions
Extension methods for attaching DevTools..
Implemented by top levels (windows) and by the application.
Members
attach_dev_tools
fn attach_dev_tools(self: &Self)
Attaches DevTools, to be opened with the F12 key.
attach_dev_tools_with_options
fn attach_dev_tools_with_options(self: &Self, options: Rc<DevToolsOptions>)
Attaches DevTools, to be opened with the specified options.
options are the additional settings of DevTools.
For an application, attach DevTools should only be called after application
initialization is complete. A good point is on_framework_initialization_completed:
impl ApplicationImpl for App {
fn on_framework_initialization_completed(this: &Self) {
// Create the main window of the lifetime of the application...
Self::parent_on_framework_initialization_completed(this);
this.attach_dev_tools_with_options(DevToolsOptions::new().with_startup_screen_index(Some(1)));
}
}
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.