pub struct InteractionContext {
pub viewport_width: f64,
pub viewport_height: f64,
pub volume_bounds: Option<Aabb>,
}Expand description
Viewport and volume context passed alongside every event.
Fields§
§viewport_width: f64Viewport width in logical pixels.
viewport_height: f64Viewport height in logical pixels.
volume_bounds: Option<Aabb>Volume bounding box, if a volume is loaded.
Implementations§
Trait Implementations§
Source§impl Clone for InteractionContext
impl Clone for InteractionContext
Source§fn clone(&self) -> InteractionContext
fn clone(&self) -> InteractionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 InteractionContext
impl Debug for InteractionContext
impl Copy for InteractionContext
Auto Trait Implementations§
impl Freeze for InteractionContext
impl RefUnwindSafe for InteractionContext
impl Send for InteractionContext
impl Sync for InteractionContext
impl Unpin for InteractionContext
impl UnsafeUnpin for InteractionContext
impl UnwindSafe for InteractionContext
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