Skip to main content

DevToolsOptions

Struct DevToolsOptions 

Source
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

Source

pub fn new() -> Rc<Self>

C# new DevToolsOptions(): the default options.

Source

pub fn gesture(&self) -> KeyGesture

Gets or sets the key gesture used to open DevTools.

Source

pub fn set_gesture(&self, value: KeyGesture)

Source

pub fn with_gesture(self: Rc<Self>, value: KeyGesture) -> Rc<Self>

Source

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.

Source

pub fn set_show_as_child_window(&self, value: bool)

Source

pub fn with_show_as_child_window(self: Rc<Self>, value: bool) -> Rc<Self>

Source

pub fn size(&self) -> Size

Gets or sets the initial size of the DevTools window. The default value is 1280x720.

Source

pub fn set_size(&self, value: Size)

Source

pub fn with_size(self: Rc<Self>, value: Size) -> Rc<Self>

Source

pub fn startup_screen_index(&self) -> Option<i32>

Get or set the startup screen index where the DevTools window will be displayed.

Source

pub fn set_startup_screen_index(&self, value: Option<i32>)

Source

pub fn with_startup_screen_index(self: Rc<Self>, value: Option<i32>) -> Rc<Self>

Source

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.

Source

pub fn set_show_implemented_interfaces(&self, value: bool)

Source

pub fn with_show_implemented_interfaces(self: Rc<Self>, value: bool) -> Rc<Self>

Source

pub fn screenshot_handler(&self) -> Rc<dyn IScreenshotHandler>

Allow to customize SreenshotHandler

Default handler is FilePickerHandler

Source

pub fn set_screenshot_handler(&self, value: Rc<dyn IScreenshotHandler>)

Source

pub fn with_screenshot_handler( self: Rc<Self>, value: Rc<dyn IScreenshotHandler>, ) -> Rc<Self>

Source

pub fn theme_variant(&self) -> Option<ThemeVariant>

Gets or sets whether DevTools theme.

Source

pub fn set_theme_variant(&self, value: Option<ThemeVariant>)

Source

pub fn with_theme_variant( self: Rc<Self>, value: Option<ThemeVariant>, ) -> Rc<Self>

Source

pub fn focus_highlighter_brush(&self) -> Option<Rc<dyn IBrush>>

Get or set Focus Highlighter brush

Source

pub fn set_focus_highlighter_brush(&self, value: Option<Rc<dyn IBrush>>)

Source

pub fn with_focus_highlighter_brush( self: Rc<Self>, value: Option<Rc<dyn IBrush>>, ) -> Rc<Self>

Source

pub fn launch_view(&self) -> DevToolsViewKind

Set the kind of diagnostic view that show at launch of DevTools

Source

pub fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>

Initializes launch_view (init upstream).

Source

pub fn hot_keys(&self) -> Rc<HotKeyConfiguration>

Gets or inits the HotKeyConfiguration used to activate DevTools features

Source

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

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DevToolsOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyValue for T
where T: PartialEq + 'static,

Source§

fn any_value_as_any(&self) -> &(dyn Any + 'static)

Source§

fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool

Source§

fn any_value_type_name(&self) -> &'static str

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> TreeModel for T
where T: PartialEq + 'static,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.