PREFIX value ml_elm_clock_time_get(value v_obj) { int h, m, s; elm_clock_time_get(Evas_Object_val(v_obj), &h, &m, &s); value v = caml_alloc(3, 0); Store_field(v, 0, Val_int(h)); Store_field(v, 1, Val_int(m)); Store_field(v, 2, Val_int(s)); return v; }
SH_API void clock_callback(void *data, Evas_Object *obj, void *event_info) { Evas_Object *clock = data; char value[PATH_MAX]; int h, m, s; elm_clock_time_get(clock, &h, &m, &s); snprintf(value, sizeof(value), "%i:%i:%i", h, m, s); printf("%s\n", value); elm_exit(); }
// if user changed the time in the clock-settings (editable) then record static void on_clock_changed(void *data, Evas_Object *obj, void *event_info) { elm_clock_time_get(obj, &(alm.hours), &(alm.minutes), NULL); }