2 * @defgroup Transit Transit
5 * Transit is designed to apply various animated transition effects to @c
6 * Evas_Object, such like translation, rotation, etc. For using these
7 * effects, create an @ref Elm_Transit and add the desired transition effects.
9 * Once the effects are added into transit, they will be automatically
10 * managed (their callback will be called for the set duration and
11 * they will be deleted upon completion).
15 * Elm_Transit *trans = elm_transit_add();
16 * elm_transit_object_add(trans, obj);
17 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
18 * elm_transit_duration_set(transit, 1);
19 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
20 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
21 * elm_transit_repeat_times_set(transit, 3);
24 * Some transition effects are used to change the properties of objects. They
26 * @li @ref elm_transit_effect_translation_add
27 * @li @ref elm_transit_effect_color_add
28 * @li @ref elm_transit_effect_rotation_add
29 * @li @ref elm_transit_effect_wipe_add
30 * @li @ref elm_transit_effect_zoom_add
31 * @li @ref elm_transit_effect_resizing_add
33 * Other transition effects are used to make one object disappear and another
34 * object appear on its place. These effects are:
36 * @li @ref elm_transit_effect_flip_add
37 * @li @ref elm_transit_effect_resizable_flip_add
38 * @li @ref elm_transit_effect_fade_add
39 * @li @ref elm_transit_effect_blend_add
41 * It's also possible to make a transition chain with @ref
42 * elm_transit_chain_transit_add.
44 * @warning We strongly recommend to use elm_transit just when edje can not do
45 * the trick. Edje is better at handling transitions than Elm_Transit.
46 * Edje has more flexibility and animations can be manipulated inside the theme.
49 * @li @ref transit_example_01_explained
50 * @li @ref transit_example_02_explained
51 * @li @ref transit_example_03_c
52 * @li @ref transit_example_04_c
58 * @enum Elm_Transit_Tween_Mode
60 * The type of acceleration used in the transition.
64 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
65 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
66 over time, then decrease again
68 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
70 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
72 } Elm_Transit_Tween_Mode;
75 * @enum Elm_Transit_Effect_Flip_Axis
77 * The axis along which flip effect should be applied.
81 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
82 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
83 } Elm_Transit_Effect_Flip_Axis;
86 * @enum Elm_Transit_Effect_Wipe_Dir
88 * The direction in which the wipe effect should occur.
92 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
93 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
94 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
95 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
96 } Elm_Transit_Effect_Wipe_Dir;
98 /** @enum Elm_Transit_Effect_Wipe_Type
100 * Whether the wipe effect should show or hide the object.
104 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
106 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
108 } Elm_Transit_Effect_Wipe_Type;
111 * @typedef Elm_Transit
113 * The Transit created with elm_transit_add(). This type has the information
114 * about the objects which the transition will be applied, and the
115 * transition effects that will be used. It also contains info about
116 * duration, number of repetitions, auto-reverse, etc.
118 typedef struct _Elm_Transit Elm_Transit;
119 typedef void Elm_Transit_Effect;
122 * @typedef Elm_Transit_Effect_Transition_Cb
124 * Transition callback called for this effect on each transition iteration.
126 typedef void (*Elm_Transit_Effect_Transition_Cb)(Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
129 * Elm_Transit_Effect_End_Cb
131 * Transition callback called for this effect when the transition is over.
133 typedef void (*Elm_Transit_Effect_End_Cb)(Elm_Transit_Effect *effect, Elm_Transit *transit);
138 * A callback called when the transit is deleted.
140 typedef void (*Elm_Transit_Del_Cb)(void *data, Elm_Transit *transit);
143 * Create new transit.
145 * @note It is not necessary to delete the transit object, it will be deleted at
146 * the end of its operation.
147 * @note The transit will start playing when the program enters the main loop.
149 * @return The transit object.
153 EAPI Elm_Transit *elm_transit_add(void);
156 * Stops the animation and delete the @p transit object.
158 * Call this function if you want to stop the animation before the
159 * transit time. Make sure the @p transit object is still alive with
160 * elm_transit_del_cb_set() function.
161 * All added effects will be deleted, calling its respective data_free_cb
162 * functions. The function set by elm_transit_del_cb_set() will be called.
164 * @see elm_transit_del_cb_set()
166 * @param transit The transit object to be deleted.
170 EAPI void elm_transit_del(Elm_Transit *transit);
173 * Add a new effect to the transit.
175 * @note The cb function and the data are the key to the effect.
176 * If you try to add an existing effect, nothing is done.
177 * @note After the first addition of an effect to @p transit, if its
178 * effect list become empty again, the @p transit will be killed by
179 * elm_transit_del(transit) function.
183 * Elm_Transit *transit = elm_transit_add();
184 * elm_transit_effect_add(transit,
185 * elm_transit_effect_blend_op,
186 * elm_transit_effect_blend_context_new(),
187 * elm_transit_effect_blend_context_free);
190 * @param transit The transit object.
191 * @param transition_cb The operation function. It is called when the
192 * animation begins, it is the function that actually performs the animation.
193 * It is called with the @p data, @p transit and the time progression of the
194 * animation (a double value between 0.0 and 1.0).
195 * @param effect The context data of the effect.
196 * @param end_cb The function to free the context data, it will be called
197 * at the end of the effect, it must finalize the animation and free the
201 * @warning The transit will free the context data at the and of the
202 * transition with the data_free_cb function.
203 * Do not share the context data in between different transit objects.
205 EAPI void elm_transit_effect_add(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect, Elm_Transit_Effect_End_Cb end_cb);
208 * Delete an added effect.
210 * This function will remove the effect from the @p transit, calling the
211 * data_free_cb to free the @p data.
213 * @see elm_transit_effect_add()
215 * @note If the effect is not found, nothing is done.
216 * @note If the effect list become empty, this function will call
217 * elm_transit_del(transit), i.e., it will kill the @p transit.
219 * @param transit The transit object.
220 * @param transition_cb The operation function.
221 * @param effect The context data of the effect.
225 EAPI void elm_transit_effect_del(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect);
228 * Add new object to apply the effects.
230 * @note After the first addition of an object to @p transit, if its
231 * object list become empty again, the @p transit will be killed by
232 * elm_transit_del(transit) function.
233 * @note If the @p obj belongs to another transit, the @p obj will be
234 * removed from it and it will only belong to the other @p transit.
235 * If the old transit stays without objects, it will die.
236 * @note When you add an object into the @p transit, its state from
237 * evas_object_pass_events_get(obj) is saved, and it is applied when the
238 * transit ends, if you change this state with evas_object_pass_events_set()
239 * after add the object, this state will change again when @p transit stops.
241 * @param transit The transit object.
242 * @param obj Object to be animated.
245 * @warning It is not allowed to add a new object after transit begins.
247 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj);
250 * Removes an added object from the transit.
252 * @note If the @p obj is not in the @p transit, nothing is done.
253 * @note If the list become empty, this function will call
254 * elm_transit_del(transit), i.e., it will kill the @p transit.
256 * @param transit The transit object.
257 * @param obj Object to be removed from @p transit.
260 * @warning It is not allowed to remove objects after transit begins.
262 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj);
265 * Get the objects of the transit.
267 * @param transit The transit object.
268 * @return a Eina_List with the objects from the transit.
272 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit);
275 * Enable/disable keeping up the objects states.
276 * If it is not kept, the objects states will be reset when transition ends.
278 * @note @p transit can not be NULL.
279 * @note One state includes geometry, color, map data.
281 * @param transit The transit object.
282 * @param state_keep retain the state or not.
286 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep);
289 * Get a value whether the objects states will be reset or not.
291 * @note @p transit can not be NULL
293 * @see elm_transit_objects_final_state_keep_set()
295 * @param transit The transit object.
296 * @return EINA_TRUE means the states of the objects will be reset.
297 * If @p transit is NULL, EINA_FALSE is returned
301 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit);
304 * Set the event enabled when transit is operating.
306 * If @p enabled is EINA_TRUE, the objects of the transit will receive
307 * events from mouse and keyboard during the animation.
308 * @note When you add an object with elm_transit_object_add(), its state from
309 * evas_object_freeze_events_get(obj) is saved, and it is applied when the
310 * transit ends. If you change this state with evas_object_freeze_events_set()
311 * after adding the object, this state will change again when @p transit stops
314 * @param transit The transit object.
315 * @param enabled Events are received when enabled is @c EINA_TRUE, and
320 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled);
323 * Get the value of event enabled status.
325 * @see elm_transit_event_enabled_set()
327 * @param transit The Transit object
328 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
329 * EINA_FALSE is returned
333 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit);
336 * Set the user-callback function when the transit is deleted.
338 * @note Using this function twice will overwrite the first function set.
339 * @note the @p transit object will be deleted after call @p cb function.
341 * @param transit The transit object.
342 * @param cb Callback function pointer. This function will be called before
343 * the deletion of the transit.
344 * @param data Callback function user data. It is the @p op parameter.
348 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data);
351 * Set reverse effect automatically.
353 * If auto reverse is set, after running the effects with the progress
354 * parameter from 0 to 1, it will call the effects again with the progress
355 * from 1 to 0. The transit will last for a time equal to (2 * duration * repeat),
356 * where the duration was set with the function elm_transit_add and
357 * the repeat with the function elm_transit_repeat_times_set().
359 * @param transit The transit object.
360 * @param reverse EINA_TRUE means the auto_reverse is on.
364 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse);
367 * Get if the auto reverse is on.
369 * @see elm_transit_auto_reverse_set()
371 * @param transit The transit object.
372 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
373 * EINA_FALSE is returned
377 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit);
380 * Set the transit repeat count. Effect will be repeated by repeat count.
382 * This function sets the number of repetition the transit will run after
383 * the first one, i.e., if @p repeat is 1, the transit will run 2 times.
384 * If the @p repeat is a negative number, it will repeat infinite times.
386 * @note If this function is called during the transit execution, the transit
387 * will run @p repeat times, ignoring the times it already performed.
389 * @param transit The transit object
390 * @param repeat Repeat count
394 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat);
397 * Get the transit repeat count.
399 * @see elm_transit_repeat_times_set()
401 * @param transit The Transit object.
402 * @return The repeat count. If @p transit is NULL
407 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit);
410 * Set the transit animation acceleration type.
412 * This function sets the tween mode of the transit that can be:
413 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
414 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
415 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
416 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
418 * @param transit The transit object.
419 * @param tween_mode The tween type.
423 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode);
426 * Get the transit animation acceleration type.
428 * @note @p transit can not be NULL
430 * @param transit The transit object.
431 * @return The tween type. If @p transit is NULL
432 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
436 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit);
439 * Set the transit animation time
441 * @note @p transit can not be NULL
443 * @param transit The transit object.
444 * @param duration The animation time.
448 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration);
451 * Get the transit animation time
453 * @note @p transit can not be NULL
455 * @param transit The transit object.
457 * @return The transit animation time.
461 EAPI double elm_transit_duration_get(const Elm_Transit *transit);
464 * Starts the transition.
465 * Once this API is called, the transit begins to measure the time.
467 * @note @p transit can not be NULL
469 * @param transit The transit object.
473 EAPI void elm_transit_go(Elm_Transit *transit);
476 * Pause/Resume the transition.
478 * If you call elm_transit_go again, the transit will be started from the
479 * beginning, and will be played.
481 * @note @p transit can not be NULL
483 * @param transit The transit object.
484 * @param paused Whether the transition should be paused or not.
488 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused);
491 * Get the value of paused status.
493 * @see elm_transit_paused_set()
495 * @note @p transit can not be NULL
497 * @param transit The transit object.
498 * @return EINA_TRUE means transition is paused. If @p transit is NULL
499 * EINA_FALSE is returned
503 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit);
506 * Get the time progression of the animation (a double value between 0.0 and 1.0).
508 * The value returned is a fraction (current time / total time). It
509 * represents the progression position relative to the total.
511 * @note @p transit can not be NULL
513 * @param transit The transit object.
515 * @return The time progression value. If @p transit is NULL
520 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit);
523 * Makes the chain relationship between two transits.
525 * @note @p transit can not be NULL. Transit would have multiple chain transits.
526 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
528 * @param transit The transit object.
529 * @param chain_transit The chain transit object. This transit will be operated
530 * after transit is done.
532 * This function adds @p chain_transit transition to a chain after the @p
533 * transit, and will be started as soon as @p transit ends. See @ref
534 * transit_example_02_explained for a full example.
538 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit);
541 * Cut off the chain relationship between two transits.
543 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
544 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
546 * @param transit The transit object.
547 * @param chain_transit The chain transit object.
549 * This function remove the @p chain_transit transition from the @p transit.
553 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit);
556 * Get the current chain transit list.
558 * @note @p transit can not be NULL.
560 * @param transit The transit object.
561 * @return chain transit list.
565 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
568 * Add the Resizing Effect to Elm_Transit.
570 * @note This API is one of the facades. It creates resizing effect context
571 * and add it's required APIs to elm_transit_effect_add.
573 * @see elm_transit_effect_add()
575 * @param transit Transit object.
576 * @param from_w Object width size when effect begins.
577 * @param from_h Object height size when effect begins.
578 * @param to_w Object width size when effect ends.
579 * @param to_h Object height size when effect ends.
580 * @return Resizing effect context data.
584 EAPI Elm_Transit_Effect *elm_transit_effect_resizing_add(Elm_Transit *transit, Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
587 * Add the Translation Effect to Elm_Transit.
589 * @note This API is one of the facades. It creates translation effect context
590 * and add it's required APIs to elm_transit_effect_add.
592 * @see elm_transit_effect_add()
594 * @param transit Transit object.
595 * @param from_dx X Position variation when effect begins.
596 * @param from_dy Y Position variation when effect begins.
597 * @param to_dx X Position variation when effect ends.
598 * @param to_dy Y Position variation when effect ends.
599 * @return Translation effect context data.
602 * @warning It is highly recommended just create a transit with this effect when
603 * the window that the objects of the transit belongs has already been created.
604 * This is because this effect needs the geometry information about the objects,
605 * and if the window was not created yet, it can get a wrong information.
607 EAPI Elm_Transit_Effect *elm_transit_effect_translation_add(Elm_Transit *transit, Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy);
610 * Add the Zoom Effect to Elm_Transit.
612 * @note This API is one of the facades. It creates zoom effect context
613 * and add it's required APIs to elm_transit_effect_add.
615 * @see elm_transit_effect_add()
617 * @param transit Transit object.
618 * @param from_rate Scale rate when effect begins (1 is current rate).
619 * @param to_rate Scale rate when effect ends.
620 * @return Zoom effect context data.
623 * @warning It is highly recommended just create a transit with this effect when
624 * the window that the objects of the transit belongs has already been created.
625 * This is because this effect needs the geometry information about the objects,
626 * and if the window was not created yet, it can get a wrong information.
628 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
631 * Add the Flip Effect to Elm_Transit.
633 * @note This API is one of the facades. It creates flip effect context
634 * and add it's required APIs to elm_transit_effect_add.
635 * @note This effect is applied to each pair of objects in the order they are listed
636 * in the transit list of objects. The first object in the pair will be the
637 * "front" object and the second will be the "back" object.
639 * @see elm_transit_effect_add()
641 * @param transit Transit object.
642 * @param axis Flipping Axis(X or Y).
643 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
644 * @return Flip effect context data.
647 * @warning It is highly recommended just create a transit with this effect when
648 * the window that the objects of the transit belongs has already been created.
649 * This is because this effect needs the geometry information about the objects,
650 * and if the window was not created yet, it can get a wrong information.
652 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
655 * Add the Resizeable Flip Effect to Elm_Transit.
657 * @note This API is one of the facades. It creates resizable flip effect context
658 * and add it's required APIs to elm_transit_effect_add.
659 * @note This effect is applied to each pair of objects in the order they are listed
660 * in the transit list of objects. The first object in the pair will be the
661 * "front" object and the second will be the "back" object.
663 * @see elm_transit_effect_add()
665 * @param transit Transit object.
666 * @param axis Flipping Axis(X or Y).
667 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
668 * @return Resizeable flip effect context data.
671 * @warning It is highly recommended just create a transit with this effect when
672 * the window that the objects of the transit belongs has already been created.
673 * This is because this effect needs the geometry information about the objects,
674 * and if the window was not created yet, it can get a wrong information.
676 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
679 * Add the Wipe Effect to Elm_Transit.
681 * @note This API is one of the facades. It creates wipe effect context
682 * and add it's required APIs to elm_transit_effect_add.
684 * @see elm_transit_effect_add()
686 * @param transit Transit object.
687 * @param type Wipe type. Hide or show.
688 * @param dir Wipe Direction.
689 * @return Wipe effect context data.
692 * @warning It is highly recommended just create a transit with this effect when
693 * the window that the objects of the transit belongs has already been created.
694 * This is because this effect needs the geometry information about the objects,
695 * and if the window was not created yet, it can get a wrong information.
697 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
700 * Add the Color Effect to Elm_Transit.
702 * @note This API is one of the facades. It creates color effect context
703 * and add it's required APIs to elm_transit_effect_add.
705 * @see elm_transit_effect_add()
707 * @param transit Transit object.
708 * @param from_r RGB R when effect begins.
709 * @param from_g RGB G when effect begins.
710 * @param from_b RGB B when effect begins.
711 * @param from_a RGB A when effect begins.
712 * @param to_r RGB R when effect ends.
713 * @param to_g RGB G when effect ends.
714 * @param to_b RGB B when effect ends.
715 * @param to_a RGB A when effect ends.
716 * @return Color effect context data.
720 EAPI Elm_Transit_Effect *elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a);
723 * Add the Fade Effect to Elm_Transit.
725 * @note This API is one of the facades. It creates fade effect context
726 * and add it's required APIs to elm_transit_effect_add.
727 * @note This effect is applied to each pair of objects in the order they are listed
728 * in the transit list of objects. The first object in the pair will be the
729 * "before" object and the second will be the "after" object.
731 * @see elm_transit_effect_add()
733 * @param transit Transit object.
734 * @return Fade effect context data.
737 * @warning It is highly recommended just create a transit with this effect when
738 * the window that the objects of the transit belongs has already been created.
739 * This is because this effect needs the color information about the objects,
740 * and if the window was not created yet, it can get a wrong information.
742 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
745 * Add the Blend Effect to Elm_Transit.
747 * @note This API is one of the facades. It creates blend effect context
748 * and add it's required APIs to elm_transit_effect_add.
749 * @note This effect is applied to each pair of objects in the order they are listed
750 * in the transit list of objects. The first object in the pair will be the
751 * "before" object and the second will be the "after" object.
753 * @see elm_transit_effect_add()
755 * @param transit Transit object.
756 * @return Blend effect context data.
759 * @warning It is highly recommended just create a transit with this effect when
760 * the window that the objects of the transit belongs has already been created.
761 * This is because this effect needs the color information about the objects,
762 * and if the window was not created yet, it can get a wrong information.
764 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
767 * Add the Rotation Effect to Elm_Transit.
769 * @note This API is one of the facades. It creates rotation effect context
770 * and add it's required APIs to elm_transit_effect_add.
772 * @see elm_transit_effect_add()
774 * @param transit Transit object.
775 * @param from_degree Degree when effect begins.
776 * @param to_degree Degree when effect is ends.
777 * @return Rotation effect context data.
780 * @warning It is highly recommended just create a transit with this effect when
781 * the window that the objects of the transit belongs has already been created.
782 * This is because this effect needs the geometry information about the objects,
783 * and if the window was not created yet, it can get a wrong information.
785 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
788 * Add the ImageAnimation Effect to Elm_Transit.
790 * @note This API is one of the facades. It creates image animation effect context
791 * and add it's required APIs to elm_transit_effect_add.
792 * The @p images parameter is a list images paths. This list and
793 * its contents will be deleted at the end of the effect by
794 * elm_transit_effect_image_animation_context_free() function.
798 * char buf[PATH_MAX];
799 * Eina_List *images = NULL;
800 * Elm_Transit *transi = elm_transit_add();
802 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
803 * images = eina_list_append(images, eina_stringshare_add(buf));
805 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
806 * images = eina_list_append(images, eina_stringshare_add(buf));
807 * elm_transit_effect_image_animation_add(transi, images);
811 * @see elm_transit_effect_add()
813 * @param transit Transit object.
814 * @param images Eina_List of images file paths. This list and
815 * its contents will be deleted at the end of the effect by
816 * elm_transit_effect_image_animation_context_free() function.
817 * @return Image Animation effect context data.
821 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);