pub struct RotationTransition {
pub key: Option<KeyRef>,
pub animation: Retained<AnyAnimation<f64>>,
pub alignment: Alignment,
pub filter_quality: Option<FilterQuality>,
pub child: Option<Rc<dyn Widget>>,
}Expand description
Animates the rotation of a widget.
See also:
ScaleTransition, a widget that animates the scale of a transformed widget.SizeTransition, a widget that animates its own size and clips and aligns its child.
Fields§
§key: Option<KeyRef>See Widget::key.
animation: Retained<AnyAnimation<f64>>See MatrixTransition::animation; read it as turns.
alignment: Alignment§filter_quality: Option<FilterQuality>§child: Option<Rc<dyn Widget>>The widget below this widget in the tree.
Implementations§
Source§impl RotationTransition
impl RotationTransition
Sourcepub fn new(turns: Retained<AnyAnimation<f64>>) -> RotationTransition
pub fn new(turns: Retained<AnyAnimation<f64>>) -> RotationTransition
Creates a rotation transition.
Sourcepub fn turns(&self) -> AnyAnimation<f64>
pub fn turns(&self) -> AnyAnimation<f64>
The animation that controls the rotation of the child.
Sourcepub fn key(self, key: KeyRef) -> RotationTransition
pub fn key(self, key: KeyRef) -> RotationTransition
Dart RotationTransition(key:).
Sourcepub fn alignment(self, alignment: Alignment) -> RotationTransition
pub fn alignment(self, alignment: Alignment) -> RotationTransition
Dart RotationTransition(alignment:).
Sourcepub fn filter_quality(self, filter_quality: FilterQuality) -> RotationTransition
pub fn filter_quality(self, filter_quality: FilterQuality) -> RotationTransition
Dart RotationTransition(filterQuality:).
Sourcepub fn child<K>(self, child: impl IntoWidget<K>) -> RotationTransition
pub fn child<K>(self, child: impl IntoWidget<K>) -> RotationTransition
Dart RotationTransition(child:).
Trait Implementations§
Source§impl AnimatedWidget for RotationTransition
impl AnimatedWidget for RotationTransition
Source§fn listenable(&self) -> Rc<dyn Listenable>
fn listenable(&self) -> Rc<dyn Listenable>
The
Listenable to which this widget is listening. Read moreSource§fn build(&self, app: &mut App, _context: AnyElement) -> Rc<dyn Widget>
fn build(&self, app: &mut App, _context: AnyElement) -> Rc<dyn Widget>
Override this method to build widgets that depend on the state of the
listenable (e.g., the current value of the animation).
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
AnimatedWidget.debugFillProperties, which a subclass’s own body calls where
Dart writes super.Auto Trait Implementations§
impl !RefUnwindSafe for RotationTransition
impl !Send for RotationTransition
impl !Sync for RotationTransition
impl !UnwindSafe for RotationTransition
impl Forget for RotationTransition
impl Freeze for RotationTransitionwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
&'static AnimationVTable<f64>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for RotationTransition
impl Unpin for RotationTransition
impl UnsafeUnpin for RotationTransitionwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static AnimationVTable<f64>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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<W> IntoWidget<AnimatedKind> for Wwhere
W: AnimatedWidget,
impl<W> IntoWidget<AnimatedKind> for Wwhere
W: AnimatedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.