Expand description
Declarative widget motion.
Motion is described during widget building and evaluated by the runtime from an explicit clock. Application code declares targets; shells never call back into user code per frame.
Structs§
- Active
Motion - Runtime transition currently being advanced by the clock.
- Motion
- Native motion wrapper for app-owned or framework-owned widgets.
- Motion
Declaration - Runtime declaration emitted by motion widgets during build.
- Motion
Eval Input - Inputs used when evaluating a
MotionExpr. - Motion
State Map - Runtime storage for active motion values.
- Motion
Sync Result - Result of synchronizing declarations into
MotionStateMap. - Motion
Track - A single declarative animation from a start value to a target expression.
- Presence
- Presence wrapper that keeps a child mounted while enter/exit tracks run.
- Ripple
Fx - Pointer-origin ripple effect configuration.
- Ripple
Layer - Wrapper that enables deterministic pointer-origin ripple effects.
- Spawned
Ripple - A ripple instance spawned by pointer input.
Enums§
- Motion
Declaration Kind - Payload for a
MotionDeclaration. - Motion
Easing - Easing curve applied to tween progress.
- Motion
Expr - Declarative expression evaluated by the motion runtime.
- Motion
Phase - The rendering stage affected by a motion track.
- Motion
Predicate - Runtime interaction predicate that can branch inside a
MotionExpr. - Motion
Property Id - Identifies the property a
MotionTrackanimates. - Motion
Start Value - Defines where a motion track starts from when a new target is synchronized.
- Motion
Transition - Timing model for a
MotionTrack. - Motion
Value - A typed value produced by a
MotionExpror held inMotionStateMap. - Presence
Phase - Runtime lifecycle phase for a
Presencewidget. - Ripple
Placement - Placement of a ripple layer relative to the wrapped child.
- Surface
Motion - Generic surface motion preset used by custom widgets and framework internals.
Traits§
- Into
Motion Id - Converts user-facing motion identifiers into stable
WidgetIdvalues.
Functions§
- appear
- Convenience wrapper for applying tracks to a child immediately.
- collapse_
x - Creates a width collapse/expand track from zero to intrinsic width.
- collapse_
y - Creates a height collapse/expand track from zero to intrinsic height.
- color
- Creates a color expression.
- dedupe_
tracks_ later_ wins - Removes duplicate tracks so the last track for each property/phase wins.
- deg
- Creates a degree expression.
- fade
- Creates an opacity fade-in track.
- follow_
x_ and_ width - Creates tracks that follow another widget’s x-position and width.
- hover_
press - Creates a hover/press scale feedback track for a widget id.
- interactive
- Convenience alias for interaction-driven motion.
- layout
- Convenience alias for layout-oriented motion.
- presence
- Convenience wrapper for presence motion.
- px
- Creates a logical pixel expression.
- reverse_
tracks_ for_ exit - Produces exit tracks by reversing explicit enter start values.
- ripple
- Convenience wrapper for adding a ripple layer to a child.
- ripple_
effect - Returns the default ripple effect configuration.
- scalar
- Creates a unitless scalar expression.
- slide_x
- Creates a horizontal slide-in track from
offsetpixels to zero. - slide_y
- Creates a vertical slide-in track from
offsetpixels to zero. - sync_
motion_ declarations - Synchronizes build-time motion declarations into runtime state.
- tick_
motion - Advances active motion to
current_timeand returns changed properties.