pub enum ViewAction {
Propose {
view: ViewTransform,
},
Refresh,
Fit,
}Expand description
An explicit source edit, geometry refresh, or replacement with the sheet’s fit.
§Examples
use adam_web_ui::graph::ViewAction;
assert_eq!(serde_json::to_string(&ViewAction::Fit).unwrap(), r#"{"kind":"fit"}"#);Variants§
Propose
Replaces the original source aspiration with an absolute proposal.
Fields
§
view: ViewTransformThe finite proposed translation and positive finite zoom.
Refresh
Updates only bounds and viewport, preserving source aspirations.
Fit
Replaces pan and zoom sources with the sheet’s current derived fit.
Trait Implementations§
Source§impl Clone for ViewAction
impl Clone for ViewAction
Source§fn clone(&self) -> ViewAction
fn clone(&self) -> ViewAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewAction
Source§impl Debug for ViewAction
impl Debug for ViewAction
Source§impl<'de> Deserialize<'de> for ViewAction
impl<'de> Deserialize<'de> for ViewAction
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
Source§impl PartialEq for ViewAction
impl PartialEq for ViewAction
Source§impl Serialize for ViewAction
impl Serialize for ViewAction
impl StructuralPartialEq for ViewAction
Auto Trait Implementations§
impl Freeze for ViewAction
impl RefUnwindSafe for ViewAction
impl Send for ViewAction
impl Sync for ViewAction
impl Unpin for ViewAction
impl UnsafeUnpin for ViewAction
impl UnwindSafe for ViewAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.