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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ControlHighlightAdorner>
Returns a strong reference to this object.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtDerefUpcast<T>Upcast<ControlHighlightAdorner>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplLayoutableImplInteractiveImplInputElementImplControlImplVisualImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.