Struct rvlib::tools::AlwaysActiveZoom
source · pub struct AlwaysActiveZoom { /* private fields */ }Trait Implementations§
source§impl Clone for AlwaysActiveZoom
impl Clone for AlwaysActiveZoom
source§fn clone(&self) -> AlwaysActiveZoom
fn clone(&self) -> AlwaysActiveZoom
Returns a copy 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 AlwaysActiveZoom
impl Debug for AlwaysActiveZoom
source§impl Manipulate for AlwaysActiveZoom
impl Manipulate for AlwaysActiveZoom
fn new() -> AlwaysActiveZoom
source§fn has_been_used(&self, events: &Events) -> Option<bool>
fn has_been_used(&self, events: &Events) -> Option<bool>
None -> the tool does not tell you if it has been used
Some(true) -> the tool has been used
Some(false) -> the tool has not been used
source§fn events_tf(
&mut self,
world: World,
history: History,
events: &Events,
) -> (World, History)
fn events_tf( &mut self, world: World, history: History, events: &Events, ) -> (World, History)
All events that are used by a tool are implemented in here. Use the macro
make_tool_transform. See, e.g.,
Zoom::events_tf.fn on_activate(&mut self, world: World) -> World
fn on_deactivate(&mut self, world: World) -> World
fn on_filechange(&mut self, world: World, history: History) -> (World, History)
fn on_always_active_zoom( &mut self, world: World, history: History, ) -> (World, History)
fn get_visibility(&self, _world: &World) -> Visibility
Auto Trait Implementations§
impl Freeze for AlwaysActiveZoom
impl RefUnwindSafe for AlwaysActiveZoom
impl Send for AlwaysActiveZoom
impl Sync for AlwaysActiveZoom
impl Unpin for AlwaysActiveZoom
impl UnwindSafe for AlwaysActiveZoom
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.