Functions | |
| int | kate_tracker_init (kate_tracker *kin, const kate_info *ki, kate_const kate_event *ev) |
| int | kate_tracker_clear (kate_tracker *kin) |
| int | kate_tracker_morph_styles (kate_style *style, kate_float t, const kate_style *from, const kate_style *to) |
| int | kate_tracker_update (kate_tracker *kin, kate_float t, int window_w, int window_h, int frame_x, int frame_y, int frame_w, int frame_h) |
| int | kate_tracker_get_text_path_position (kate_tracker *kin, size_t glyph, int *x, int *y) |
| int kate_tracker_clear | ( | kate_tracker * | kin | ) |
Clears a tracker.
| kin | the tracker to clear, must have been initialized with kate_tracker_init |
KATE_E_* error
| int kate_tracker_get_text_path_position | ( | kate_tracker * | kin, | |
| size_t | glyph, | |||
| int * | x, | |||
| int * | y | |||
| ) |
Finds the position of a particular glyph along a path.
| kin | the tracker to use | |
| glyph | the index of the glyph to get the position of | |
| x | will return the first coordinate of the position | |
| y | will return the second coordinate of the position |
| int kate_tracker_init | ( | kate_tracker * | kin, | |
| const kate_info * | ki, | |||
| kate_const kate_event * | ev | |||
| ) |
Initializes a tracker with the given event. When done, it should be cleared using kate_tracker_clear.
| kin | the tracker to initialize | |
| ki | the kate_info structure for the stream | |
| ev | the event to track |
| int kate_tracker_morph_styles | ( | kate_style * | style, | |
| kate_float | t, | |||
| const kate_style * | from, | |||
| const kate_style * | to | |||
| ) |
Morphs between two styles. t should be between 0 and 1
| style | the style that will hold the morphed style | |
| t | the amount of morping from the from style (eg, 0 yields from, 1 yields to) | |
| from | the style to morph from | |
| to | the style to morph to |
KATE_E_* error
| int kate_tracker_update | ( | kate_tracker * | kin, | |
| kate_float | t, | |||
| int | window_w, | |||
| int | window_h, | |||
| int | frame_x, | |||
| int | frame_y, | |||
| int | frame_w, | |||
| int | frame_h | |||
| ) |
Tracks changes in an event at the given time.
| kin | the tracker to update | |
| t | the time (between 0 and the duration of the motion) to update to | |
| window_w | the width of the window | |
| window_h | the height of the window | |
| frame_x | the horizontal offset of the video frame within the window | |
| frame_y | the vertical offset of the video frame within the window | |
| frame_w | the width of the video frame | |
| frame_h | the height of the video frame |
KATE_E_* error
1.5.4