FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DevToolsOptions

    struct · ferroui-diagnostics · v0.5.0

    struct DevToolsOptions
    

    Describes options used to customize DevTools.

    A class upstream: a shared handle (Rc<DevToolsOptions>) whose properties are read with foo(), set with set_foo(v) and given with the chaining with_foo(v) while the options are built; the members that upstream sets only when the object is created (init) have no set_foo.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    C# new DevToolsOptions(): the default options.

    Source

    gesture

    fn gesture(self: &Self) -> KeyGesture
    

    Gets or sets the key gesture used to open DevTools.

    Source

    set_gesture

    fn set_gesture(self: &Self, value: KeyGesture)
    

    Source

    with_gesture

    fn with_gesture(self: Rc<Self>, value: KeyGesture) -> Rc<Self>
    

    Source

    show_as_child_window

    fn show_as_child_window(self: &Self) -> bool
    

    Gets or sets a value indicating whether DevTools should be displayed as a child window of the window being inspected. The default value is true.

    This setting is ignored if DevTools is attached to an application.

    Source

    set_show_as_child_window

    fn set_show_as_child_window(self: &Self, value: bool)
    

    Source

    with_show_as_child_window

    fn with_show_as_child_window(self: Rc<Self>, value: bool) -> Rc<Self>
    

    Source

    size

    fn size(self: &Self) -> Size
    

    Gets or sets the initial size of the DevTools window. The default value is 1280x720.

    Source

    set_size

    fn set_size(self: &Self, value: Size)
    

    Source

    with_size

    fn with_size(self: Rc<Self>, value: Size) -> Rc<Self>
    

    Source

    startup_screen_index

    fn startup_screen_index(self: &Self) -> Option<i32>
    

    Get or set the startup screen index where the DevTools window will be displayed.

    Source

    set_startup_screen_index

    fn set_startup_screen_index(self: &Self, value: Option<i32>)
    

    Source

    with_startup_screen_index

    fn with_startup_screen_index(self: Rc<Self>, value: Option<i32>) -> Rc<Self>
    

    Source

    show_implemented_interfaces

    fn show_implemented_interfaces(self: &Self) -> bool
    

    Gets or sets a value indicating whether DevTools should be displayed implemented interfaces on Control details. The default value is true.

    Source

    set_show_implemented_interfaces

    fn set_show_implemented_interfaces(self: &Self, value: bool)
    

    Source

    with_show_implemented_interfaces

    fn with_show_implemented_interfaces(self: Rc<Self>, value: bool) -> Rc<Self>
    

    Source

    screenshot_handler

    fn screenshot_handler(self: &Self) -> Rc<dyn IScreenshotHandler>
    

    Allow to customize SreenshotHandler

    Default handler is FilePickerHandler

    Source

    set_screenshot_handler

    fn set_screenshot_handler(self: &Self, value: Rc<dyn IScreenshotHandler>)
    

    Source

    with_screenshot_handler

    fn with_screenshot_handler(self: Rc<Self>, value: Rc<dyn IScreenshotHandler>) -> Rc<Self>
    

    Source

    theme_variant

    fn theme_variant(self: &Self) -> Option<ThemeVariant>
    

    Gets or sets whether DevTools theme.

    Source

    set_theme_variant

    fn set_theme_variant(self: &Self, value: Option<ThemeVariant>)
    

    Source

    with_theme_variant

    fn with_theme_variant(self: Rc<Self>, value: Option<ThemeVariant>) -> Rc<Self>
    

    Source

    focus_highlighter_brush

    fn focus_highlighter_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Get or set Focus Highlighter brush

    Source

    set_focus_highlighter_brush

    fn set_focus_highlighter_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    with_focus_highlighter_brush

    fn with_focus_highlighter_brush(self: Rc<Self>, value: Option<Rc<dyn IBrush>>) -> Rc<Self>
    

    Source

    launch_view

    fn launch_view(self: &Self) -> DevToolsViewKind
    

    Set the kind of diagnostic view that show at launch of DevTools

    Source

    with_launch_view

    fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>
    

    Initializes launch_view (init upstream).

    Source

    hot_keys

    fn hot_keys(self: &Self) -> Rc<HotKeyConfiguration>
    

    Gets or inits the HotKeyConfiguration used to activate DevTools features

    Source

    with_hot_keys

    fn with_hot_keys(self: Rc<Self>, value: Rc<HotKeyConfiguration>) -> Rc<Self>
    

    Initializes hot_keys (init upstream).

    Source

    Trait implementations

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

    Availability

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