EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj);
EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj);
EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on);
+ EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj);
EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t);
+ EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj);
EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t);
+ EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj);
EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent);
EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label);
wd->repeating = EINA_FALSE;
}
+/**
+ * Get if autorepeat event is on
+ *
+ * @param obj The button object
+ * @return If autorepeat is on
+ *
+ * @ingroup Button
+ */
+EAPI Eina_Bool
+elm_button_autorepeat_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_FALSE;
+ return wd->autorepeat;
+}
+
/**
* Set the initial timeout before the autorepeat event is generated
*
wd->ar_threshold = t;
}
+/**
+ * Get the initial timeout before the autorepeat event is generated
+ *
+ * @param obj The button object
+ * @return Timeout
+ *
+ * @ingroup Button
+ */
+EAPI double
+elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) 0.0;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return 0.0;
+ return wd->ar_threshold;
+}
+
/**
* Set the interval between each generated autorepeat event
*
*
* @ingroup Button
*/
-EAPI void
+EAPI void
elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t)
{
ELM_CHECK_WIDTYPE(obj, widtype);
wd->ar_interval = t;
if ((wd->repeating) && (wd->timer)) ecore_timer_interval_set(wd->timer, t);
}
+
+/**
+ * Get the interval between each generated autorepeat event
+ *
+ * @param obj The button object
+ * @return Interval
+ *
+ * @ingroup Button
+ */
+EAPI double
+elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) 0.0;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return 0.0;
+ return wd->ar_interval;
+}