summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-09 20:21:21 +0100
committerdavemds <dave@gurumeditation.it>2014-02-09 20:21:21 +0100
commit3ce61868e88fa95d507e01587bf4cbbec9b0d1a1 (patch)
treeee627c2ebb74f3b15b41941f3359b6d0752a06b6 /src/bin
parent0136122e1200ffc05985e8d97c39e75f5a6ca268 (diff)
Revert "label : Added the API to match the speed of label to different label"
As discussed I will try to implement the same functionality but with a different api. This reverts commit 56a2c96ea7a731d6066aa7cb0964a633c5bed35c.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_label.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/bin/test_label.c b/src/bin/test_label.c
index d5e789876..7e6a73d68 100644
--- a/src/bin/test_label.c
+++ b/src/bin/test_label.c
@@ -113,8 +113,6 @@ void
113test_label2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 113test_label2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
114{ 114{
115 Evas_Object *win, *gd, *rect, *lb, *rd, *rdg, *sl; 115 Evas_Object *win, *gd, *rect, *lb, *rd, *rdg, *sl;
116 double duration;
117 Evas_Coord textlen;
118 116
119 win = elm_win_util_standard_add("label2", "Label 2"); 117 win = elm_win_util_standard_add("label2", "Label 2");
120 elm_win_autodel_set(win, EINA_TRUE); 118 elm_win_autodel_set(win, EINA_TRUE);
@@ -214,51 +212,6 @@ test_label2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
214 elm_grid_pack(gd, sl, 5, 60, 90, 10); 212 elm_grid_pack(gd, sl, 5, 60, 90, 10);
215 evas_object_show(sl); 213 evas_object_show(sl);
216 214
217 /*Test label slide speed */
218 lb = elm_label_add(win);
219 elm_object_text_set(lb, "Test Label Slide Speed:");
220 elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
221 elm_label_slide_go(lb);
222 elm_grid_pack(gd, lb, 5, 70, 90, 10);
223 evas_object_show(lb);
224
225 rect = evas_object_rectangle_add(evas_object_evas_get(win));
226 elm_grid_pack(gd, rect, 5, 80, 90, 10);
227 evas_object_color_set(rect, 255, 125, 125, 255);
228 evas_object_show(rect);
229
230 lb = elm_label_add(win);
231 elm_object_style_set(lb, "slide_long");
232 elm_object_text_set(lb,
233 "This is a label set to slide and this will"
234 " test the speed of label with the below label."
235 " This label has few extra char to test");
236 elm_label_slide_duration_set(lb, 8.0);
237 elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
238 elm_label_slide_go(lb);
239 elm_grid_pack(gd, lb, 5, 80, 90, 10);
240 evas_object_show(lb);
241
242 //Get the required parameter of the previous label
243 duration = elm_label_slide_duration_get(lb);
244 textlen = elm_label_slide_text_length_get(lb);
245
246 rect = evas_object_rectangle_add(evas_object_evas_get(win));
247 elm_grid_pack(gd, rect, 5, 90, 90, 10);
248 evas_object_color_set(rect, 255, 125, 125, 255);
249 evas_object_show(rect);
250
251 lb = elm_label_add(win);
252 elm_object_style_set(lb, "slide_long");
253 elm_object_text_set(lb,
254 "This is a label set to slide and this will"
255 " match the speed of the upper label.");
256 elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
257 elm_label_slide_speed_match(lb, duration, textlen);
258 elm_label_slide_go(lb);
259 elm_grid_pack(gd, lb, 5, 90, 90, 10);
260 evas_object_show(lb);
261
262 evas_object_resize(win, 320, 320); 215 evas_object_resize(win, 320, 320);
263 evas_object_show(win); 216 evas_object_show(win);
264} 217}