pub struct Pointer {Show 13 fields
pub position: Option<[f32; 2]>,
pub ray: Option<([f32; 3], [f32; 3])>,
pub world: Option<[f32; 3]>,
pub body: Option<String>,
pub selected_body: Option<String>,
pub face: Option<FaceRef>,
pub faces: Vec<FaceRef>,
pub edges: Vec<EdgeRef>,
pub active_feature: Option<String>,
pub ctrl: bool,
pub hover_face: Option<FaceRef>,
pub hover_edge: Option<EdgeRef>,
pub vertex: Option<VertexRef>,
}Expand description
Where the cursor is and what it is over.
Fields§
§position: Option<[f32; 2]>Viewport pixels.
ray: Option<([f32; 3], [f32; 3])>The ray under the cursor: origin and unit direction.
world: Option<[f32; 3]>The point of a body under the cursor.
body: Option<String>§selected_body: Option<String>The selected body and the face and edges picked on it.
face: Option<FaceRef>§faces: Vec<FaceRef>Every face picked, in the order picked; face is the last.
edges: Vec<EdgeRef>§active_feature: Option<String>The feature selected in the tree.
ctrl: bool§hover_face: Option<FaceRef>The face under the cursor, whatever is selected: what a click would pick there.
hover_edge: Option<EdgeRef>The edge under the cursor, when one is within reach.
vertex: Option<VertexRef>The vertex under the cursor, when one is within a few pixels: an end of the edge under it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pointer
impl<'de> Deserialize<'de> for Pointer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Forget for Pointer
impl Freeze for Pointer
impl Move for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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