pub struct ConstraintOverlayStyle {
pub normal_color: PackedRgba,
pub overflow_color: PackedRgba,
pub underflow_color: PackedRgba,
pub requested_color: PackedRgba,
pub label_fg: PackedRgba,
pub label_bg: PackedRgba,
pub show_size_diff: bool,
pub show_constraint_bounds: bool,
pub show_borders: bool,
pub show_labels: bool,
pub border_chars: BorderChars,
}Expand description
Visualization style for constraint overlay.
Fields§
§normal_color: PackedRgbaBorder color for widgets without constraint violations.
overflow_color: PackedRgbaBorder color for widgets exceeding max constraints (overflow).
underflow_color: PackedRgbaBorder color for widgets below min constraints (underflow).
requested_color: PackedRgbaColor for the “requested” size outline.
label_fg: PackedRgbaLabel foreground color.
label_bg: PackedRgbaLabel background color.
show_size_diff: boolWhether to show requested vs received size difference.
show_constraint_bounds: boolWhether to show constraint bounds in labels.
show_borders: boolWhether to show border outlines.
show_labels: boolWhether to show labels.
border_chars: BorderCharsBorder characters to use.
Trait Implementations§
Source§impl Clone for ConstraintOverlayStyle
impl Clone for ConstraintOverlayStyle
Source§fn clone(&self) -> ConstraintOverlayStyle
fn clone(&self) -> ConstraintOverlayStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintOverlayStyle
impl Debug for ConstraintOverlayStyle
Auto Trait Implementations§
impl Freeze for ConstraintOverlayStyle
impl RefUnwindSafe for ConstraintOverlayStyle
impl Send for ConstraintOverlayStyle
impl Sync for ConstraintOverlayStyle
impl Unpin for ConstraintOverlayStyle
impl UnsafeUnpin for ConstraintOverlayStyle
impl UnwindSafe for ConstraintOverlayStyle
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