PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
Round flip transitions

Horizontal flip transitions between apps, shaped for round displays. More...

Macros

#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).
 

Functions

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.
 
const CompositorTransition * compositor_round_flip_transition_get (bool flip_to_the_right)
 Get the flip transition between apps.
 

Detailed Description

Horizontal flip transitions between apps, shaped for round displays.

Macro Definition Documentation

◆ 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).

Function Documentation

◆ compositor_round_flip_transition_get()

const CompositorTransition * compositor_round_flip_transition_get ( bool  flip_to_the_right)

Get the flip transition between apps.

Parameters
flip_to_the_rightWhether 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
ctxGraphics context to draw into.
distance_normalizedAnimation progress, 0 to ANIMATION_NORMALIZED_MAX.
dirDirection of the visual elements.
flip_lid_colorFill color of the lid.