Skip to main content

DevTools

Struct DevTools 

Source
pub struct DevTools;
Expand description

Attaches DevTools and opens its window.

Implementations§

Source§

impl DevTools

Source

pub fn attach_with_gesture( root: &TopLevel, gesture: KeyGesture, ) -> Rc<dyn IDisposable>

C# Attach(TopLevel root, KeyGesture gesture): DevTools opens on gesture in root.

Source

pub fn attach( root: &TopLevel, options: Rc<DevToolsOptions>, ) -> Rc<dyn IDisposable>

C# Attach(TopLevel root, DevToolsOptions options): DevTools opens on the gesture of options in root. Disposing the result detaches it.

Source

pub fn open( root: &TopLevel, options: &Rc<DevToolsOptions>, ) -> Rc<dyn IDisposable>

C# Open(TopLevel root, DevToolsOptions options): opens DevTools for root. Disposing the result closes its window.

Source

pub fn open_group( group: Rc<dyn IDevToolsTopLevelGroup>, options: &Rc<DevToolsOptions>, ) -> Rc<dyn IDisposable>

C# Open(IDevToolsTopLevelGroup group, DevToolsOptions options).

Source

pub fn attach_application( application: &Application, options: Rc<DevToolsOptions>, ) -> Rc<dyn IDisposable>

C# Attach(Application application, DevToolsOptions options): DevTools opens on the gesture of options in any window of application. Disposing the result detaches it and closes the window it opened.

§Panics

When the application does not have a classic desktop lifetime.

Source

pub fn does_belong_to_dev_tool(v: &Visual) -> bool

C# DoesBelongToDevTool(this Visual v): whether v is in a DevTools window, or in a popup of one. A visual that is in no top level belongs to DevTools, as upstream.

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> 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, 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.