|
PebbleOS
|
Icon transitions between the pin and card views of a timeline item. More...
Functions | |
| void | timeline_layout_transition_pin_to_card (TimelineLayout *pin_timeline_layout, TimelineLayout *card_timeline_layout) |
| Animate the icon from a pin layout to a card layout. | |
| void | timeline_layout_transition_card_to_pin (TimelineLayout *card_timeline_layout, TimelineLayout *pin_timeline_layout) |
| Animate the icon from a card layout back to a pin layout. | |
| Animation * | timeline_layout_create_up_down_animation (TimelineLayout *layout, const GRect *from, const GRect *to, const GRect *icon_from, const GRect *icon_to, uint32_t duration, InterpolateInt64Function interpolate) |
| Create an animation moving a layout and its icon between two frames. | |
Icon transitions between the pin and card views of a timeline item.
| Animation * timeline_layout_create_up_down_animation | ( | TimelineLayout * | layout, |
| const GRect * | from, | ||
| const GRect * | to, | ||
| const GRect * | icon_from, | ||
| const GRect * | icon_to, | ||
| uint32_t | duration, | ||
| InterpolateInt64Function | interpolate | ||
| ) |
Create an animation moving a layout and its icon between two frames.
| layout | Layout to move. |
| from | Start frame of the layout. |
| to | End frame of the layout. |
| icon_from | Start frame of the icon. |
| icon_to | End frame of the icon. |
| duration | Duration in milliseconds. |
| interpolate | Interpolation function. |
| void timeline_layout_transition_card_to_pin | ( | TimelineLayout * | card_timeline_layout, |
| TimelineLayout * | pin_timeline_layout | ||
| ) |
Animate the icon from a card layout back to a pin layout.
The pin icon is hidden until the animation stops. Does nothing if the card icon cannot be loaded.
| card_timeline_layout | Layout of the card. |
| pin_timeline_layout | Layout of the pin. |
| void timeline_layout_transition_pin_to_card | ( | TimelineLayout * | pin_timeline_layout, |
| TimelineLayout * | card_timeline_layout | ||
| ) |
Animate the icon from a pin layout to a card layout.
Runs for TIMELINE_CARD_TRANSITION_MS. Does nothing if the pin icon cannot be loaded.
| pin_timeline_layout | Layout of the pin. |
| card_timeline_layout | Layout of the card. |