pub struct InspectorStyle {
pub bound_colors: [PackedRgba; 6],
pub hit_overlay: PackedRgba,
pub hit_hover: PackedRgba,
pub selected_highlight: PackedRgba,
pub label_fg: PackedRgba,
pub label_bg: PackedRgba,
}Expand description
Configuration for inspector appearance.
Fields§
§bound_colors: [PackedRgba; 6]Border colors for widget bounds (cycles through for nesting).
hit_overlay: PackedRgbaHit region overlay color (semi-transparent).
hit_hover: PackedRgbaHovered hit region color.
selected_highlight: PackedRgbaSelected widget highlight.
label_fg: PackedRgbaLabel text color.
label_bg: PackedRgbaLabel background color.
Implementations§
Source§impl InspectorStyle
impl InspectorStyle
Sourcepub fn bound_color(&self, depth: u8) -> PackedRgba
pub fn bound_color(&self, depth: u8) -> PackedRgba
Get the bound color for a given nesting depth.
Sourcepub fn region_color(&self, region: HitRegion) -> PackedRgba
pub fn region_color(&self, region: HitRegion) -> PackedRgba
Get a region-specific overlay color.
Trait Implementations§
Source§impl Clone for InspectorStyle
impl Clone for InspectorStyle
Source§fn clone(&self) -> InspectorStyle
fn clone(&self) -> InspectorStyle
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 InspectorStyle
impl Debug for InspectorStyle
Auto Trait Implementations§
impl Freeze for InspectorStyle
impl RefUnwindSafe for InspectorStyle
impl Send for InspectorStyle
impl Sync for InspectorStyle
impl Unpin for InspectorStyle
impl UnwindSafe for InspectorStyle
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