pub struct LiveInspectorState {
pub config: InspectorConfig,
pub selected_node_id: Option<u32>,
pub selected_bounds: Option<Region>,
pub budget: FrameBudgetRing,
pub overrides: LiveStyleOverrides,
}Expand description
交互式 Live DevTools 面板运行态(含节点拾取锁定、帧耗时瀑布图与热重载覆写)。
Fields§
§config: InspectorConfig§selected_node_id: Option<u32>§selected_bounds: Option<Region>§budget: FrameBudgetRing§overrides: LiveStyleOverridesImplementations§
Source§impl LiveInspectorState
impl LiveInspectorState
pub fn new() -> Self
Sourcepub fn pick_node_at(
&mut self,
engine: &VeloxEngine,
px: i16,
py: i16,
) -> Option<u32>
pub fn pick_node_at( &mut self, engine: &VeloxEngine, px: i16, py: i16, ) -> Option<u32>
在鼠标点击点拾取最顶层可见元素并锁定为当前检视节点。
Trait Implementations§
Source§impl Clone for LiveInspectorState
impl Clone for LiveInspectorState
Source§impl Debug for LiveInspectorState
impl Debug for LiveInspectorState
Auto Trait Implementations§
impl Forget for LiveInspectorState
impl Freeze for LiveInspectorState
impl Move for LiveInspectorState
impl RefUnwindSafe for LiveInspectorState
impl Send for LiveInspectorState
impl Sync for LiveInspectorState
impl Unpin for LiveInspectorState
impl UnsafeUnpin for LiveInspectorState
impl UnwindSafe for LiveInspectorState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。