pub struct InspectorHandle(/* private fields */);Implementations§
Source§impl InspectorHandle
impl InspectorHandle
Sourcepub fn set_gpu_profiling(&self, enabled: bool)
pub fn set_gpu_profiling(&self, enabled: bool)
Enables detailed renderer measurements independently of tree inspection.
pub fn gpu_profiling(&self) -> bool
Sourcepub fn sync_frames(
&self,
destination: &mut Vec<FrameRecord>,
cursor: &mut FrameCursor,
) -> bool
pub fn sync_frames( &self, destination: &mut Vec<FrameRecord>, cursor: &mut FrameCursor, ) -> bool
Synchronizes new frames and delayed render results without cloning unchanged records.
Source§impl InspectorHandle
impl InspectorHandle
pub fn request_memory_sample(&self)
pub fn take_memory_request(&self) -> bool
pub fn publish_memory(&self, snapshot: MemorySnapshot)
pub fn memory(&self) -> Option<MemorySnapshot>
Source§impl InspectorHandle
impl InspectorHandle
pub fn new(capacity: usize) -> Self
pub fn publish_tree(&self, tree: TreeSnapshot)
pub fn tree(&self) -> TreeSnapshot
pub fn with_tree<T>(&self, read: impl FnOnce(&TreeSnapshot) -> T) -> T
pub fn node(&self, id: InspectNodeId) -> Option<NodeSnapshot>
pub fn record_ui(&self, record: FrameRecord)
pub fn record_render(&self, record: FrameRecord)
pub fn frames(&self) -> Vec<FrameRecord>
pub fn clear_frames(&self)
pub fn set_paused(&self, paused: bool)
pub fn paused(&self) -> bool
pub fn set_recording(&self, recording: bool)
pub fn recording(&self) -> bool
pub fn select(&self, node: Option<InspectNodeId>)
pub fn selected(&self) -> Option<InspectNodeId>
pub fn set_hovered(&self, node: Option<InspectNodeId>)
pub fn highlighted(&self) -> Option<InspectNodeId>
Sourcepub fn hit_test(&self, point: Point, viewport: Rect) -> Option<InspectNodeId>
pub fn hit_test(&self, point: Point, viewport: Rect) -> Option<InspectNodeId>
Returns the visually foremost inspected node containing point.
Later nodes win equal stacking levels, matching retained paint order;
deeper nodes win inside the same branch.
Sourcepub fn hit_stack(&self, point: Point, viewport: Rect) -> Vec<InspectNodeId>
pub fn hit_stack(&self, point: Point, viewport: Rect) -> Vec<InspectNodeId>
Returns every inspected node under point, ordered from the most useful
visual target to structural fallbacks.
pub fn toggle(&self, node: InspectNodeId, property: StyleProperty) -> bool
pub fn property_enabled( &self, node: InspectNodeId, property: StyleProperty, ) -> Option<bool>
pub fn set_property_value( &self, node: InspectNodeId, property: StyleProperty, value: StyleValue, )
pub fn property_value( &self, node: InspectNodeId, property: StyleProperty, ) -> Option<StyleValue>
pub fn clear_overrides(&self)
Sourcepub fn overridden_nodes(&self) -> HashSet<InspectNodeId>
pub fn overridden_nodes(&self) -> HashSet<InspectNodeId>
Nodes with edited or disabled properties; allows hosts to retain untouched subtrees.
Sourcepub fn clear_property_override(
&self,
node: InspectNodeId,
property: StyleProperty,
)
pub fn clear_property_override( &self, node: InspectNodeId, property: StyleProperty, )
Restore the authored value and enabled state of a single property.
pub fn trace_json(&self) -> Result<String, TraceError>
pub fn import_trace_json(&self, json: &str) -> Result<(), TraceError>
Trait Implementations§
Source§impl Clone for InspectorHandle
impl Clone for InspectorHandle
Source§fn clone(&self) -> InspectorHandle
fn clone(&self) -> InspectorHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InspectorHandle
impl Debug for InspectorHandle
Auto Trait Implementations§
impl !RefUnwindSafe for InspectorHandle
impl !Send for InspectorHandle
impl !Sync for InspectorHandle
impl !UnwindSafe for InspectorHandle
impl Freeze for InspectorHandle
impl Unpin for InspectorHandle
impl UnsafeUnpin for InspectorHandle
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