pub struct InteractionResult {
pub camera_changed: bool,
pub window_level_changed: bool,
pub slice_changed: bool,
pub needs_redraw: bool,
}Expand description
Result of processing an interaction event.
Tells the consumer what changed so it can decide whether to re-render.
Fields§
§camera_changed: boolThe camera was modified.
window_level_changed: boolThe window/level was modified (for 2D slice styles).
slice_changed: boolThe slice plane was modified.
needs_redraw: boolConvenience: true if any of the above changed.
Implementations§
Source§impl InteractionResult
impl InteractionResult
Sourcepub fn camera_only() -> Self
pub fn camera_only() -> Self
Convenience: only the camera changed.
Sourcepub fn window_level_only() -> Self
pub fn window_level_only() -> Self
Convenience: window/level changed.
Sourcepub fn slice_only() -> Self
pub fn slice_only() -> Self
Convenience: slice changed.
Trait Implementations§
Source§impl Clone for InteractionResult
impl Clone for InteractionResult
Source§fn clone(&self) -> InteractionResult
fn clone(&self) -> InteractionResult
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 InteractionResult
impl Debug for InteractionResult
Source§impl Default for InteractionResult
impl Default for InteractionResult
Source§fn default() -> InteractionResult
fn default() -> InteractionResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for InteractionResult
impl PartialEq for InteractionResult
impl Copy for InteractionResult
impl Eq for InteractionResult
impl StructuralPartialEq for InteractionResult
Auto Trait Implementations§
impl Freeze for InteractionResult
impl RefUnwindSafe for InteractionResult
impl Send for InteractionResult
impl Sync for InteractionResult
impl Unpin for InteractionResult
impl UnsafeUnpin for InteractionResult
impl UnwindSafe for InteractionResult
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