1 #ifndef _EFL_LOOP_TIMER_EO_LEGACY_H_
2 #define _EFL_LOOP_TIMER_EO_LEGACY_H_
3 
4 #ifndef _EFL_LOOP_TIMER_EO_CLASS_TYPE
5 #define _EFL_LOOP_TIMER_EO_CLASS_TYPE
6 
7 typedef Eo Efl_Loop_Timer;
8 
9 #endif
10 
11 #ifndef _EFL_LOOP_TIMER_EO_TYPES
12 #define _EFL_LOOP_TIMER_EO_TYPES
13 
14 
15 #endif
16 
17 /**
18  * @brief Interval the timer ticks on.
19  *
20  * If set during a timer call this will affect the next interval.
21  *
22  * @param[in] obj The object.
23  * @param[in] in The new interval in seconds
24  *
25  * @ingroup Ecore_Timer_Group
26  */
27 EAPI void ecore_timer_interval_set(Efl_Loop_Timer *obj, double in);
28 
29 /**
30  * @brief Interval the timer ticks on.
31  *
32  * @param[in] obj The object.
33  *
34  * @return The new interval in seconds
35  *
36  * @ingroup Ecore_Timer_Group
37  */
38 EAPI double ecore_timer_interval_get(const Efl_Loop_Timer *obj);
39 
40 /**
41  * @brief Pending time regarding a timer.
42  *
43  * @param[in] obj The object.
44  *
45  * @return Pending time
46  *
47  * @ingroup Ecore_Timer_Group
48  */
49 EAPI double ecore_timer_pending_get(const Efl_Loop_Timer *obj);
50 
51 /**
52  * @brief Resets a timer to its full interval. This effectively makes the timer
53  * start ticking off from zero now.
54  *
55  * This is equal to delaying the timer by the already passed time, since the
56  * timer started ticking
57  *
58  * @param[in] obj The object.
59  *
60  * @since 1.2
61  *
62  * @ingroup Ecore_Timer_Group
63  */
64 EAPI void ecore_timer_reset(Efl_Loop_Timer *obj);
65 
66 /** This effectively resets a timer but based on the time when this iteration
67  * of the main loop started.
68  *
69  * @since 1.18
70  *
71  * @ingroup Ecore_Timer_Group
72  */
73 EAPI void ecore_timer_loop_reset(Efl_Loop_Timer *obj);
74 
75 /**
76  * @brief Adds a delay to the next occurrence of a timer. This doesn't affect
77  * the timer interval.
78  *
79  * @param[in] obj The object.
80  * @param[in] add The amount of time by which to delay the timer in seconds
81  *
82  * @ingroup Ecore_Timer_Group
83  */
84 EAPI void ecore_timer_delay(Efl_Loop_Timer *obj, double add);
85 
86 #endif
87