FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DevTools

    struct · ferroui-diagnostics · v0.5.0

    struct DevTools
    

    Attaches DevTools and opens its window.

    View source

    Members

    attach_with_gesture

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

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

    Source

    attach

    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

    open

    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

    open_group

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

    C# Open(IDevToolsTopLevelGroup group, DevToolsOptions options).

    Source

    attach_application

    fn attach_application(application: &ferroui_controls::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

    does_belong_to_dev_tool

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.