FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlHighlightAdorner

    struct · ferroui-diagnostics · v0.5.0

    struct ControlHighlightAdorner
    

    The adorner that highlights a control: a frame drawn with a pen around the control, or the frames of its padding, content and margin.

    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<ControlHighlightAdorner>
    

    Returns a strong reference to this object.

    Source

    add

    fn add(owner: &InputElement, highlight_brush: Rc<dyn IBrush>) -> Option<Rc<dyn IDisposable>>
    

    Highlights owner with a frame drawn with highlight_brush, in the adorner layer of owner. Disposing the result removes the frame; None when owner has no adorner layer.

    Source

    add_visual

    fn add_visual(visual: &Visual, visualize_margin_padding: bool) -> Option<Rc<dyn IDisposable>>
    

    C# Add(Visual visual, bool visualizeMarginPadding): shows the layout of visual (the frames of its padding, content and margin when visualize_margin_padding is set) in its adorner layer. Disposing the result removes the frames; None when visual has no adorner layer or its layout is already shown.

    Source

    Trait implementations

    Availability

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