PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
Shutter transitions

App transitions where the old app is pushed out behind a colored shutter. More...

Macros

#define SHUTTER_TRANSITION_FIRST_DURATION_MS   (2 * ANIMATION_TARGET_FRAME_INTERVAL_MS)
 Length of the first part, moving the old app off the screen, in milliseconds.
 
#define SHUTTER_TRANSITION_SECOND_DURATION_MS   (4 * ANIMATION_TARGET_FRAME_INTERVAL_MS)
 Length of the second part, moving the new app in, in milliseconds.
 
#define SHUTTER_TRANSITION_DURATION_MS    (SHUTTER_TRANSITION_FIRST_DURATION_MS + SHUTTER_TRANSITION_SECOND_DURATION_MS)
 Total length of the shutter transition, in milliseconds.
 

Functions

const CompositorTransition * compositor_shutter_transition_get (CompositorTransitionDirection direction, GColor color)
 Get the shutter transition between apps.
 

Detailed Description

App transitions where the old app is pushed out behind a colored shutter.

Macro Definition Documentation

◆ SHUTTER_TRANSITION_DURATION_MS

#define SHUTTER_TRANSITION_DURATION_MS    (SHUTTER_TRANSITION_FIRST_DURATION_MS + SHUTTER_TRANSITION_SECOND_DURATION_MS)

Total length of the shutter transition, in milliseconds.

◆ SHUTTER_TRANSITION_FIRST_DURATION_MS

#define SHUTTER_TRANSITION_FIRST_DURATION_MS   (2 * ANIMATION_TARGET_FRAME_INTERVAL_MS)

Length of the first part, moving the old app off the screen, in milliseconds.

◆ SHUTTER_TRANSITION_SECOND_DURATION_MS

#define SHUTTER_TRANSITION_SECOND_DURATION_MS   (4 * ANIMATION_TARGET_FRAME_INTERVAL_MS)

Length of the second part, moving the new app in, in milliseconds.

Function Documentation

◆ compositor_shutter_transition_get()

const CompositorTransition * compositor_shutter_transition_get ( CompositorTransitionDirection  direction,
GColor  color 
)

Get the shutter transition between apps.

Parameters
directionDirection of the transition. No shutter is drawn for CompositorTransitionDirectionLeft.
colorColor of the shutter.
Returns
Transition, or NULL if app-to-app transitions should be skipped.