Horizontal flip transitions between apps, shaped for round displays.
More...
|
| #define | ROUND_FLIP_ANIMATION_DURATION_MS (6 * ANIMATION_TARGET_FRAME_INTERVAL_MS) |
| | Duration of the flip transition, in milliseconds (as many frames as the design).
|
| |
Horizontal flip transitions between apps, shaped for round displays.
◆ ROUND_FLIP_ANIMATION_DURATION_MS
| #define ROUND_FLIP_ANIMATION_DURATION_MS (6 * ANIMATION_TARGET_FRAME_INTERVAL_MS) |
Duration of the flip transition, in milliseconds (as many frames as the design).
◆ compositor_round_flip_transition_get()
Get the flip transition between apps.
- Parameters
-
| flip_to_the_right | Whether the visual elements flip to the right. |
- Returns
- Transition, or NULL if app-to-app transitions should be skipped.
◆ compositor_round_flip_transitions_flip_animation_update()
| void compositor_round_flip_transitions_flip_animation_update |
( |
GContext * |
ctx, |
|
|
uint32_t |
distance_normalized, |
|
|
CompositorTransitionDirection |
dir, |
|
|
GColor |
flip_lid_color |
|
) |
| |
Draw the flip "lid" for the current point of a flip animation.
The lid sweeps across the display and flips halfway through the animation.
- Parameters
-
| ctx | Graphics context to draw into. |
| distance_normalized | Animation progress, 0 to ANIMATION_NORMALIZED_MAX. |
| dir | Direction of the visual elements. |
| flip_lid_color | Fill color of the lid. |