DevToolsOptions
struct · ferroui-diagnostics · v0.5.0
struct DevToolsOptions
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.
Members
newgestureset_gesturewith_gestureshow_as_child_windowset_show_as_child_windowwith_show_as_child_windowsizeset_sizewith_sizestartup_screen_indexset_startup_screen_indexwith_startup_screen_indexshow_implemented_interfacesset_show_implemented_interfaceswith_show_implemented_interfacesscreenshot_handlerset_screenshot_handlerwith_screenshot_handlertheme_variantset_theme_variantwith_theme_variantfocus_highlighter_brushset_focus_highlighter_brushwith_focus_highlighter_brushlaunch_viewwith_launch_viewhot_keyswith_hot_keys
new
fn new() -> Rc<Self>
C# new DevToolsOptions(): the default options.
gesture
fn gesture(self: &Self) -> KeyGesture
Gets or sets the key gesture used to open DevTools.
set_gesture
fn set_gesture(self: &Self, value: KeyGesture)
with_gesture
fn with_gesture(self: Rc<Self>, value: KeyGesture) -> Rc<Self>
show_as_child_window
fn show_as_child_window(self: &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.
set_show_as_child_window
fn set_show_as_child_window(self: &Self, value: bool)
with_show_as_child_window
fn with_show_as_child_window(self: Rc<Self>, value: bool) -> Rc<Self>
size
fn size(self: &Self) -> Size
Gets or sets the initial size of the DevTools window. The default value is 1280x720.
set_size
fn set_size(self: &Self, value: Size)
with_size
fn with_size(self: Rc<Self>, value: Size) -> Rc<Self>
startup_screen_index
fn startup_screen_index(self: &Self) -> Option<i32>
Get or set the startup screen index where the DevTools window will be displayed.
set_startup_screen_index
fn set_startup_screen_index(self: &Self, value: Option<i32>)
with_startup_screen_index
fn with_startup_screen_index(self: Rc<Self>, value: Option<i32>) -> Rc<Self>
show_implemented_interfaces
fn show_implemented_interfaces(self: &Self) -> bool
Gets or sets a value indicating whether DevTools should be displayed implemented interfaces on Control details. The default value is true.
set_show_implemented_interfaces
fn set_show_implemented_interfaces(self: &Self, value: bool)
with_show_implemented_interfaces
fn with_show_implemented_interfaces(self: Rc<Self>, value: bool) -> Rc<Self>
screenshot_handler
fn screenshot_handler(self: &Self) -> Rc<dyn IScreenshotHandler>
Allow to customize SreenshotHandler
Default handler is FilePickerHandler
set_screenshot_handler
fn set_screenshot_handler(self: &Self, value: Rc<dyn IScreenshotHandler>)
with_screenshot_handler
fn with_screenshot_handler(self: Rc<Self>, value: Rc<dyn IScreenshotHandler>) -> Rc<Self>
theme_variant
fn theme_variant(self: &Self) -> Option<ThemeVariant>
Gets or sets whether DevTools theme.
set_theme_variant
fn set_theme_variant(self: &Self, value: Option<ThemeVariant>)
with_theme_variant
fn with_theme_variant(self: Rc<Self>, value: Option<ThemeVariant>) -> Rc<Self>
focus_highlighter_brush
fn focus_highlighter_brush(self: &Self) -> Option<Rc<dyn IBrush>>
Get or set Focus Highlighter brush
set_focus_highlighter_brush
fn set_focus_highlighter_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
with_focus_highlighter_brush
fn with_focus_highlighter_brush(self: Rc<Self>, value: Option<Rc<dyn IBrush>>) -> Rc<Self>
launch_view
fn launch_view(self: &Self) -> DevToolsViewKind
Set the kind of diagnostic view that show at launch of DevTools
with_launch_view
fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>
Initializes launch_view (init upstream).
hot_keys
fn hot_keys(self: &Self) -> Rc<HotKeyConfiguration>
Gets or inits the HotKeyConfiguration used to activate DevTools features
with_hot_keys
fn with_hot_keys(self: Rc<Self>, value: Rc<HotKeyConfiguration>) -> Rc<Self>
Initializes hot_keys (init upstream).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.