pub struct DevToolsOptions { /* private fields */ }Expand description
Describes options used to customize DevTools.
A class upstream: a shared handle (Rc<DevToolsOptions>) whose properties are read with
foo(), set with set_foo(v) and given with the chaining with_foo(v) while the options
are built; the members that upstream sets only when the object is created (init) have no
set_foo.
Implementations§
Source§impl DevToolsOptions
impl DevToolsOptions
Sourcepub fn gesture(&self) -> KeyGesture
pub fn gesture(&self) -> KeyGesture
Gets or sets the key gesture used to open DevTools.
pub fn set_gesture(&self, value: KeyGesture)
pub fn with_gesture(self: Rc<Self>, value: KeyGesture) -> Rc<Self>
Sourcepub fn show_as_child_window(&self) -> bool
pub fn show_as_child_window(&self) -> bool
Gets or sets a value indicating whether DevTools should be displayed as a child window of the window being inspected. The default value is true.
This setting is ignored if DevTools is attached to an application.
pub fn set_show_as_child_window(&self, value: bool)
pub fn with_show_as_child_window(self: Rc<Self>, value: bool) -> Rc<Self>
Sourcepub fn size(&self) -> Size
pub fn size(&self) -> Size
Gets or sets the initial size of the DevTools window. The default value is 1280x720.
pub fn set_size(&self, value: Size)
pub fn with_size(self: Rc<Self>, value: Size) -> Rc<Self>
Sourcepub fn startup_screen_index(&self) -> Option<i32>
pub fn startup_screen_index(&self) -> Option<i32>
Get or set the startup screen index where the DevTools window will be displayed.
pub fn set_startup_screen_index(&self, value: Option<i32>)
pub fn with_startup_screen_index(self: Rc<Self>, value: Option<i32>) -> Rc<Self>
Sourcepub fn show_implemented_interfaces(&self) -> bool
pub fn show_implemented_interfaces(&self) -> bool
Gets or sets a value indicating whether DevTools should be displayed implemented interfaces on Control details. The default value is true.
pub fn set_show_implemented_interfaces(&self, value: bool)
pub fn with_show_implemented_interfaces(self: Rc<Self>, value: bool) -> Rc<Self>
Sourcepub fn screenshot_handler(&self) -> Rc<dyn IScreenshotHandler>
pub fn screenshot_handler(&self) -> Rc<dyn IScreenshotHandler>
Allow to customize SreenshotHandler
Default handler is FilePickerHandler
pub fn set_screenshot_handler(&self, value: Rc<dyn IScreenshotHandler>)
pub fn with_screenshot_handler( self: Rc<Self>, value: Rc<dyn IScreenshotHandler>, ) -> Rc<Self>
Sourcepub fn theme_variant(&self) -> Option<ThemeVariant>
pub fn theme_variant(&self) -> Option<ThemeVariant>
Gets or sets whether DevTools theme.
pub fn set_theme_variant(&self, value: Option<ThemeVariant>)
pub fn with_theme_variant( self: Rc<Self>, value: Option<ThemeVariant>, ) -> Rc<Self>
Sourcepub fn focus_highlighter_brush(&self) -> Option<Rc<dyn IBrush>>
pub fn focus_highlighter_brush(&self) -> Option<Rc<dyn IBrush>>
Get or set Focus Highlighter brush
pub fn set_focus_highlighter_brush(&self, value: Option<Rc<dyn IBrush>>)
pub fn with_focus_highlighter_brush( self: Rc<Self>, value: Option<Rc<dyn IBrush>>, ) -> Rc<Self>
Sourcepub fn launch_view(&self) -> DevToolsViewKind
pub fn launch_view(&self) -> DevToolsViewKind
Set the kind of diagnostic view that show at launch of DevTools
Sourcepub fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>
pub fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>
Initializes launch_view (init upstream).
Sourcepub fn hot_keys(&self) -> Rc<HotKeyConfiguration>
pub fn hot_keys(&self) -> Rc<HotKeyConfiguration>
Gets or inits the HotKeyConfiguration used to activate DevTools features
Sourcepub fn with_hot_keys(self: Rc<Self>, value: Rc<HotKeyConfiguration>) -> Rc<Self>
pub fn with_hot_keys(self: Rc<Self>, value: Rc<HotKeyConfiguration>) -> Rc<Self>
Initializes hot_keys (init upstream).
Trait Implementations§
Source§impl Default for DevToolsOptions
impl Default for DevToolsOptions
Auto Trait Implementations§
impl !Freeze for DevToolsOptions
impl !RefUnwindSafe for DevToolsOptions
impl !Send for DevToolsOptions
impl !Sync for DevToolsOptions
impl !UnwindSafe for DevToolsOptions
impl Unpin for DevToolsOptions
impl UnsafeUnpin for DevToolsOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more