FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MainWindow

    struct · ferroui-diagnostics · v0.5.0

    struct MainWindow
    

    The window of the developer tools: the main view over the view model of the root it inspects, the hot keys that pick the control under the pointer, freeze the popups, freeze the value frames and take screenshots.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MainWindow>
    

    Returns a strong reference to this object.

    Source

    DOCUMENT_URI

    const DOCUMENT_URI: &'static str
    

    The URI of the document of the class.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the window and populates it from its document (InitializeComponent(): the compiled markup of the document, which the build of the crate generates), with the theme of a window of the WinUI 3 theme, the observation of the input and the placement on the startup screen.

    Panics

    Panics when no windowing platform is registered, and when the document fails to load (an exception of the constructor in the original).

    Source

    root

    fn root(self: &Self) -> Option<Ref<FerroObject>>
    

    The object the window inspects: a top level, or the application of the developer tools.

    Source

    set_root

    fn set_root(self: &Self, value: Option<Ref<FerroObject>>)
    

    Sets the object the window inspects; a root that tells when it is closed gets a view model and closes the window when it closes.

    Source

    set_options

    fn set_options(self: &Self, options: &DevToolsOptions)
    

    Applies the options the developer tools were opened with: the hot keys, the options of the view model and the theme variant.

    Source

    selected_control

    fn selected_control(self: &Self, control: Option<Ref<Control>>)
    

    Selects a control in the tree page of the window.

    Source

    Trait implementations

    Availability

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