pub struct ConstraintOverlay<'a> { /* private fields */ }Expand description
Constraint visualization overlay widget.
Renders layout constraint information as a visual overlay:
- Red borders for overflow violations (received > max)
- Yellow borders for underflow violations (received < min)
- Green borders for widgets within constraints
- Blue dashed outline showing requested size vs received size
- Labels showing widget name, sizes, and constraint bounds
Implementations§
Source§impl<'a> ConstraintOverlay<'a>
impl<'a> ConstraintOverlay<'a>
Sourcepub fn new(debugger: &'a LayoutDebugger) -> Self
pub fn new(debugger: &'a LayoutDebugger) -> Self
Create a new constraint overlay for the given debugger.
Sourcepub fn style(self, style: ConstraintOverlayStyle) -> Self
pub fn style(self, style: ConstraintOverlayStyle) -> Self
Set custom styling.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConstraintOverlay<'a>
impl<'a> RefUnwindSafe for ConstraintOverlay<'a>
impl<'a> Send for ConstraintOverlay<'a>
impl<'a> Sync for ConstraintOverlay<'a>
impl<'a> Unpin for ConstraintOverlay<'a>
impl<'a> UnsafeUnpin for ConstraintOverlay<'a>
impl<'a> UnwindSafe for ConstraintOverlay<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more