pub enum TransitionType {
Fade {
thru_blk: bool,
},
Push {
dir: TransitionDirection,
},
Wipe {
dir: TransitionDirection,
},
Split {
orient: SplitOrientation,
dir: TransitionDirection,
},
Cover {
dir: TransitionDirection,
},
Pull {
dir: TransitionDirection,
},
Cut {
thru_blk: bool,
},
Zoom {
dir: TransitionDirection,
},
Morph {
option: MorphOption,
},
None,
}Expand description
过渡类型(<p:transition> 的子元素)。
Variants§
Fade
淡入淡出(<p:fade thruBlk="1|0"/>)。
Push
推入(<p:push dir="..."/>)。
Fields
§
dir: TransitionDirectionWipe
擦除(<p:wipe dir="..."/>)。
Fields
§
dir: TransitionDirectionSplit
分割(<p:split orient="...|..." dir="..."/>)。
Cover
覆盖(<p:cover dir="..."/>)。
Fields
§
dir: TransitionDirectionPull
拉出(<p:pull dir="..."/>)。
Fields
§
dir: TransitionDirectionCut
切割(<p:cut thruBlk="1|0"/>)。
Zoom
缩放(<p:zoom dir="..."/>)。
Fields
§
dir: TransitionDirectionMorph
变形(<p:morph option="byObject|byWord|byChar"/>)。
Fields
§
option: MorphOptionNone
无过渡(默认)。
Trait Implementations§
Source§impl Clone for TransitionType
impl Clone for TransitionType
Source§fn clone(&self) -> TransitionType
fn clone(&self) -> TransitionType
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 moreSource§impl Debug for TransitionType
impl Debug for TransitionType
Source§impl Default for TransitionType
impl Default for TransitionType
Source§fn default() -> TransitionType
fn default() -> TransitionType
Returns the “default value” for a type. Read more
impl Eq for TransitionType
Source§impl PartialEq for TransitionType
impl PartialEq for TransitionType
Source§fn eq(&self, other: &TransitionType) -> bool
fn eq(&self, other: &TransitionType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransitionType
Auto Trait Implementations§
impl Freeze for TransitionType
impl RefUnwindSafe for TransitionType
impl Send for TransitionType
impl Sync for TransitionType
impl Unpin for TransitionType
impl UnsafeUnpin for TransitionType
impl UnwindSafe for TransitionType
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.