pub struct InspectorState {
pub open: bool,
pub mode: InspectorMode,
pub picking: bool,
pub nodes: Vec<InspectorNode>,
pub selected: Option<usize>,
pub detail_offset: usize,
pub controls: Vec<InspectorControl>,
pub launcher_position: Option<Point>,
pub panel_position: Option<Point>,
}Expand description
A read-only snapshot of developer UI, separate from application semantics.
Fields§
§open: boolWhether the inspector panel is open.
mode: InspectorModeThe selected visual mode.
picking: boolWhether the next application press selects an element.
nodes: Vec<InspectorNode>Elements in the shared projection’s reading order.
selected: Option<usize>The selected element’s index in nodes.
detail_offset: usizeThe first visible line of the selected element’s properties.
controls: Vec<InspectorControl>Visible developer controls for deterministic robot input.
launcher_position: Option<Point>User-positioned launcher origin in logical pixels, clamped to the surface.
panel_position: Option<Point>User-positioned panel origin in logical pixels, clamped to the surface.
Trait Implementations§
Source§impl Clone for InspectorState
impl Clone for InspectorState
Source§impl Debug for InspectorState
impl Debug for InspectorState
Source§impl Default for InspectorState
impl Default for InspectorState
Source§impl PartialEq for InspectorState
impl PartialEq for InspectorState
impl StructuralPartialEq for InspectorState
Auto Trait Implementations§
impl Freeze for InspectorState
impl RefUnwindSafe for InspectorState
impl Send for InspectorState
impl Sync for InspectorState
impl Unpin for InspectorState
impl UnsafeUnpin for InspectorState
impl UnwindSafe for InspectorState
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