|
PebbleOS
|
Ready-made compositor transitions and helpers to build new ones. More...
Functions | |
| bool | compositor_transition_app_to_app_should_be_skipped (void) |
| Check whether app-to-app transitions should be skipped. | |
| AnimationProgress | animation_timing_scaled (AnimationProgress time_normalized, AnimationProgress interval_start, AnimationProgress interval_end) |
| Rescale animation progress to a sub-interval. | |
| void | compositor_transition_pdcs_animation_update (GContext *ctx, GDrawCommandSequence *sequence, uint32_t distance_normalized, GColor chroma_key_color, GColor stroke_color, GColor overdraw_color, bool inner, const GPoint *framebuffer_offset) |
| Draw the frame of a PDC sequence for the current point of a transition. | |
Variables | |
| const GDrawRawImplementation | g_compositor_transitions_app_fb_draw_implementation |
| Draw implementation filling lines with the contents of the app framebuffer. | |
Ready-made compositor transitions and helpers to build new ones.
Including this header pulls in the transitions available on the platform (see Default transitions and Legacy transitions). Each getter returns a CompositorTransition to pass to compositor_transition(); app-to-app getters return NULL when compositor_transition_app_to_app_should_be_skipped() says so, which switches without animation.
| AnimationProgress animation_timing_scaled | ( | AnimationProgress | time_normalized, |
| AnimationProgress | interval_start, | ||
| AnimationProgress | interval_end | ||
| ) |
Rescale animation progress to a sub-interval.
| time_normalized | Progress to rescale, expected between interval_start and interval_end. |
| interval_start | Progress mapped to 0. |
| interval_end | Progress mapped to ANIMATION_NORMALIZED_MAX. |
| bool compositor_transition_app_to_app_should_be_skipped | ( | void | ) |
Check whether app-to-app transitions should be skipped.
| void compositor_transition_pdcs_animation_update | ( | GContext * | ctx, |
| GDrawCommandSequence * | sequence, | ||
| uint32_t | distance_normalized, | ||
| GColor | chroma_key_color, | ||
| GColor | stroke_color, | ||
| GColor | overdraw_color, | ||
| bool | inner, | ||
| const GPoint * | framebuffer_offset | ||
| ) |
Draw the frame of a PDC sequence for the current point of a transition.
Does nothing if sequence is NULL. The sequence's red strokes are drawn with stroke_color.
| ctx | Graphics context to draw into. |
| sequence | PDC sequence whose frame to draw. |
| distance_normalized | Animation progress, 0 to ANIMATION_NORMALIZED_MAX. |
| chroma_key_color | Color to replace with the app framebuffer, only used when inner. |
| stroke_color | Color for the stroke of the ring in the frame. |
| overdraw_color | Color for areas of the frame without app content (e.g. flip animations must draw the right color beyond the edges of the app face). |
| inner | If true, draw the app framebuffer inside the ring, otherwise outside. |
| framebuffer_offset | Visual offset of the app framebuffer. Currently ignored. |
|
extern |
Draw implementation filling lines with the contents of the app framebuffer.
Swap it into a graphics context to make fill operations reveal the app.