pub struct DevTools;Expand description
Attaches DevTools and opens its window.
Implementations§
Source§impl DevTools
impl DevTools
Sourcepub fn attach_with_gesture(
root: &TopLevel,
gesture: KeyGesture,
) -> Rc<dyn IDisposable>
pub fn attach_with_gesture( root: &TopLevel, gesture: KeyGesture, ) -> Rc<dyn IDisposable>
C# Attach(TopLevel root, KeyGesture gesture): DevTools opens on gesture in root.
Sourcepub fn attach(
root: &TopLevel,
options: Rc<DevToolsOptions>,
) -> Rc<dyn IDisposable>
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.
Sourcepub fn open(
root: &TopLevel,
options: &Rc<DevToolsOptions>,
) -> Rc<dyn IDisposable>
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.
Sourcepub fn open_group(
group: Rc<dyn IDevToolsTopLevelGroup>,
options: &Rc<DevToolsOptions>,
) -> Rc<dyn IDisposable>
pub fn open_group( group: Rc<dyn IDevToolsTopLevelGroup>, options: &Rc<DevToolsOptions>, ) -> Rc<dyn IDisposable>
C# Open(IDevToolsTopLevelGroup group, DevToolsOptions options).
Sourcepub fn attach_application(
application: &Application,
options: Rc<DevToolsOptions>,
) -> Rc<dyn IDisposable>
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.
Sourcepub fn does_belong_to_dev_tool(v: &Visual) -> bool
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§
impl Freeze for DevTools
impl RefUnwindSafe for DevTools
impl Send for DevTools
impl Sync for DevTools
impl Unpin for DevTools
impl UnsafeUnpin for DevTools
impl UnwindSafe for DevTools
Blanket Implementations§
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