pub struct TestScene;Expand description
The scene used by TestRenderer.
Trait Implementations§
Source§impl RenderScene for TestScene
impl RenderScene for TestScene
type HitTarget = TestHitTarget
fn clear(&mut self)
Source§fn hit_test(&self, _x: f32, _y: f32) -> Vec<Self::HitTarget>
fn hit_test(&self, _x: f32, _y: f32) -> Vec<Self::HitTarget>
Performs hit testing at the given coordinates.
Returns hit targets ordered by z-index (top-to-bottom).
Source§fn find_target(&self, _node_id: NodeId) -> Option<Self::HitTarget>
fn find_target(&self, _node_id: NodeId) -> Option<Self::HitTarget>
Finds a hit target by NodeId with fresh geometry from the current scene. Read more
Source§fn hit_test_nodes(&self, x: f32, y: f32) -> Vec<usize>
fn hit_test_nodes(&self, x: f32, y: f32) -> Vec<usize>
Returns NodeIds of all hit regions at the given coordinates.
This is a convenience method equivalent to
hit_test().map(|h| h.node_id()).fn retained_visual_observation_nodes(&self) -> Option<HashSet<usize>>
Auto Trait Implementations§
impl Freeze for TestScene
impl RefUnwindSafe for TestScene
impl Send for TestScene
impl Sync for TestScene
impl Unpin for TestScene
impl UnsafeUnpin for TestScene
impl UnwindSafe for TestScene
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