pub enum InspectorMode {
Off,
HitRegions,
WidgetBounds,
Full,
}Expand description
Inspector display mode.
Variants§
Off
Inspector is disabled.
HitRegions
Show hit regions with colored overlays.
WidgetBounds
Show widget boundaries and names.
Full
Show both hit regions and widget bounds.
Implementations§
Source§impl InspectorMode
impl InspectorMode
Sourcepub fn cycle(self) -> Self
pub fn cycle(self) -> Self
Cycle to the next mode.
Off → HitRegions → WidgetBounds → Full → Off
Sourcepub fn show_hit_regions(self) -> bool
pub fn show_hit_regions(self) -> bool
Check if hit regions should be shown.
Sourcepub fn show_widget_bounds(self) -> bool
pub fn show_widget_bounds(self) -> bool
Check if widget bounds should be shown.
Trait Implementations§
Source§impl Clone for InspectorMode
impl Clone for InspectorMode
Source§fn clone(&self) -> InspectorMode
fn clone(&self) -> InspectorMode
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 InspectorMode
impl Debug for InspectorMode
Source§impl Default for InspectorMode
impl Default for InspectorMode
Source§fn default() -> InspectorMode
fn default() -> InspectorMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for InspectorMode
impl PartialEq for InspectorMode
impl Copy for InspectorMode
impl Eq for InspectorMode
impl StructuralPartialEq for InspectorMode
Auto Trait Implementations§
impl Freeze for InspectorMode
impl RefUnwindSafe for InspectorMode
impl Send for InspectorMode
impl Sync for InspectorMode
impl Unpin for InspectorMode
impl UnwindSafe for InspectorMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.