pub struct TimelineViewport {
pub pan_ms: f64,
pub zoom: f64,
}Expand description
A timeline viewport: the committed pan offset and zoom factor.
Fields§
§pan_ms: f64§zoom: f64Trait Implementations§
Source§impl Clone for TimelineViewport
impl Clone for TimelineViewport
Source§fn clone(&self) -> TimelineViewport
fn clone(&self) -> TimelineViewport
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 TimelineViewport
impl Debug for TimelineViewport
Source§impl From<TimelineViewport> for JsValuewhere
TimelineViewport: Serialize,
impl From<TimelineViewport> for JsValuewhere
TimelineViewport: Serialize,
Source§fn from(value: TimelineViewport) -> Self
fn from(value: TimelineViewport) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &TimelineViewportwhere
TimelineViewport: Serialize,
impl IntoWasmAbi for &TimelineViewportwhere
TimelineViewport: Serialize,
Source§impl IntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
impl IntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
Source§impl OptionIntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
impl OptionIntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
Source§impl Serialize for TimelineViewport
impl Serialize for TimelineViewport
Source§impl Tsify for TimelineViewport
impl Tsify for TimelineViewport
const DECL: &'static str = "/**\n * A timeline viewport: the committed pan offset and zoom factor.\n */\nexport interface TimelineViewport {\n panMs: number;\n zoom: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
impl VectorIntoWasmAbi for TimelineViewportwhere
TimelineViewport: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for TimelineViewport
impl WasmDescribe for TimelineViewport
Auto Trait Implementations§
impl Freeze for TimelineViewport
impl RefUnwindSafe for TimelineViewport
impl Send for TimelineViewport
impl Sync for TimelineViewport
impl Unpin for TimelineViewport
impl UnsafeUnpin for TimelineViewport
impl UnwindSafe for TimelineViewport
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.