return sd->first_interval;
}
+
+EAPI void
+elm_clock_pause_set(Evas_Object *obj, Eina_Bool paused)
+{
+ ELM_CLOCK_CHECK(obj);
+ ELM_CLOCK_DATA_GET(obj, sd);
+
+ paused = !!paused;
+ if (sd->paused == paused)
+ return;
+ sd->paused = paused;
+ if (paused)
+ ecore_timer_freeze(sd->ticker);
+ else
+ {
+ _timediff_set(sd);
+ ecore_timer_thaw(sd->ticker);
+ }
+}
+
+EAPI Eina_Bool
+elm_clock_pause_get(const Evas_Object *obj)
+{
+ ELM_CLOCK_CHECK(obj) EINA_FALSE;
+ ELM_CLOCK_DATA_GET(obj, sd);
+
+ return sd->paused;
+}
EAPI double elm_clock_first_interval_get(const Evas_Object *obj);
/**
+ * Set whether the given clock widget should be paused or not.
+ *
+ * @param obj The clock object
+ * @param pause @c EINA_TRUE to pause clock, @c EINA_FALSE otherwise
+ *
+ * This function pauses or starts the clock widget.
+ *
+ * @see elm_clock_pause_get()
+ *
+ * @ingroup Clock
+ */
+EAPI void elm_clock_pause_set(Evas_Object *obj, Eina_Bool pause);
+
+/**
+ * Get whether the given clock widget is paused.
+ *
+ * @param obj The clock object
+ * @return @c EINA_TRUE if it's paused @c EINA_FALSE otherwise
+ *
+ * This function gets whether the clock is paused or not.
+ *
+ * @see elm_clock_pause_set()
+ *
+ * @ingroup Clock
+ */
+EAPI Eina_Bool elm_clock_pause_get(const Evas_Object *obj);
+
+/**
* @}
*/