Pebble Foundation Classes
0.2.0
C++ for Pebble
|
#include <pebble.h>
Public Attributes | |
union { | |
Int16Setter int16 | |
Use if the property to animate is of int16_t type. | |
GPointSetter gpoint | |
Use if the property to animate is of GPoint type. | |
GRectSetter grect | |
Use if the property to animate is of GRect type. | |
GColor8Setter gcolor8 | |
Use if the property to animate is of GColor8 type. | |
UInt32Setter uint32 | |
Use if the property to animate is of uint32_t type. | |
} | setter |
union { | |
Int16Getter int16 | |
Use if the property to animate is of int16_t type. | |
GPointGetter gpoint | |
Use if the property to animate is of GPoint type. | |
GRectGetter grect | |
Use if the property to animate is of GRect type. | |
GColor8Getter gcolor8 | |
Use if the property to animate is of GColor8 type. | |
UInt32Getter uint32 | |
Use if the property to animate is of uint32_t type. | |
} | getter |
Data structure containing the setter and getter function pointers that the property animation should use. The specified setter function will be used by the animation's update callback.
Based on the type of the property (int16_t, GPoint or GRect), the accompanying update callback should be used, see property_animation_update_int16(), property_animation_update_gpoint() and property_animation_update_grect().
The getter function is used when the animation is initialized, to assign the current value of the subject's property as "from" or "to" value, see property_animation_create().
union { ... } PropertyAnimationAccessors::getter |
Function pointer to the implementation of the function that gets the current property value. This function will be called during property_animation_create(), to get the current property value, in case the from_value
or to_value
argument is NULL
.
union { ... } PropertyAnimationAccessors::setter |
Function pointer to the implementation of the function that sets the updated property value. This function will be called repeatedly for each animation frame.