pub struct DevToolsState {
pub enabled: bool,
pub mode: DevToolsMode,
pub picker_active: bool,
pub selected: Option<u64>,
pub hovered: Option<u64>,
pub filter: String,
}Expand description
Host-owned presentation and interaction state consumed by the view builder.
§Examples
use ailloli_ui_devtools_core::DevToolsMode;
use ailloli_ui_devtools_ui::DevToolsState;
let state = DevToolsState::default();
assert!(!state.enabled);
assert_eq!(state.mode, DevToolsMode::Overlay);
assert!(state.filter.is_empty());Fields§
§enabled: boolMaster visibility switch; false produces an empty view.
mode: DevToolsModeOverlay/docking mode; Hidden also produces an empty view.
picker_active: boolWhether the header reports active host picking.
selected: Option<u64>Selected element ID used by the tree marker and details panel.
hovered: Option<u64>Hovered element ID used by the tree marker when not selected.
filter: StringCase-insensitive widget-name/key/decimal-ID filter.
Trait Implementations§
Source§impl Clone for DevToolsState
impl Clone for DevToolsState
Source§fn clone(&self) -> DevToolsState
fn clone(&self) -> DevToolsState
Returns a copy 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 DevToolsState
impl Debug for DevToolsState
Auto Trait Implementations§
impl Freeze for DevToolsState
impl RefUnwindSafe for DevToolsState
impl Send for DevToolsState
impl Sync for DevToolsState
impl Unpin for DevToolsState
impl UnwindSafe for DevToolsState
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.