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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MainWindow>
Returns a strong reference to this object.
DOCUMENT_URI
const DOCUMENT_URI: &'static str
The URI of the document of the class.
construct
fn construct() -> Self
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).
root
fn root(self: &Self) -> Option<Ref<FerroObject>>
The object the window inspects: a top level, or the application of the developer tools.
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.
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.
selected_control
fn selected_control(self: &Self, control: Option<Ref<Control>>)
Selects a control in the tree page of the window.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtContentControlImplExtControlImplExtTopLevelImplExtWindowBaseImplExtWindowImplExtDerefUpcast<T>Upcast<MainWindow>StaticTypeObjectTypeSubclassable<T>FerroObjectImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplWindowBaseImplWindowImplDefaultConstructibleStyledElementImplTopLevelImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.