summaryrefslogtreecommitdiff
path: root/unsorted/elementary/efl_ui_list_example_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'unsorted/elementary/efl_ui_list_example_1.c')
-rw-r--r--unsorted/elementary/efl_ui_list_example_1.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/unsorted/elementary/efl_ui_list_example_1.c b/unsorted/elementary/efl_ui_list_example_1.c
index 432c586..2afe6ab 100644
--- a/unsorted/elementary/efl_ui_list_example_1.c
+++ b/unsorted/elementary/efl_ui_list_example_1.c
@@ -115,15 +115,15 @@ elm_main(int argc, char **argv)
115 115
116 wbox = efl_add(EFL_UI_BOX_CLASS, win); 116 wbox = efl_add(EFL_UI_BOX_CLASS, win);
117 efl_ui_direction_set(wbox, EFL_UI_DIR_VERTICAL); 117 efl_ui_direction_set(wbox, EFL_UI_DIR_VERTICAL);
118 efl_gfx_size_hint_weight_set(wbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND); 118 efl_gfx_hint_weight_set(wbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
119 efl_gfx_size_hint_align_set(wbox, EFL_GFX_SIZE_HINT_FILL, EFL_GFX_SIZE_HINT_FILL); 119 efl_gfx_hint_align_set(wbox, EFL_GFX_SIZE_HINT_FILL, EFL_GFX_SIZE_HINT_FILL);
120 120
121 if ((argv[1] != NULL) && 121 if ((argv[1] != NULL) &&
122 (!strcmp(argv[1], "empty"))) 122 (!strcmp(argv[1], "empty")))
123 emptystyle = EINA_TRUE; 123 emptystyle = EINA_TRUE;
124 124
125 priv_d.list = list = efl_add(EFL_UI_LIST_CLASS, wbox); 125 priv_d.list = list = efl_add(EFL_UI_LIST_CLASS, wbox);
126 efl_gfx_size_hint_weight_set(list, EFL_GFX_SIZE_HINT_EXPAND, 0.9); 126 efl_gfx_hint_weight_set(list, EFL_GFX_SIZE_HINT_EXPAND, 0.9);
127 127
128 efl_event_callback_add(list, EFL_UI_EVENT_SELECTED, _list_selected, NULL); 128 efl_event_callback_add(list, EFL_UI_EVENT_SELECTED, _list_selected, NULL);
129 efl_event_callback_add(list, EFL_UI_EVENT_UNSELECTED, _list_unselected, NULL); 129 efl_event_callback_add(list, EFL_UI_EVENT_UNSELECTED, _list_unselected, NULL);
@@ -145,7 +145,7 @@ elm_main(int argc, char **argv)
145 efl_ui_direction_set(ibox, EFL_UI_DIR_HORIZONTAL); 145 efl_ui_direction_set(ibox, EFL_UI_DIR_HORIZONTAL);
146 146
147 txt = efl_add(EFL_UI_TEXT_CLASS, ibox); 147 txt = efl_add(EFL_UI_TEXT_CLASS, ibox);
148 efl_gfx_size_hint_weight_set(txt, 0.95, EFL_GFX_SIZE_HINT_EXPAND); 148 efl_gfx_hint_weight_set(txt, 0.95, EFL_GFX_SIZE_HINT_EXPAND);
149 efl_text_halign_set(txt, 0.2); 149 efl_text_halign_set(txt, 0.2);
150 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 150 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
151 snprintf(buf, sizeof(buf), "empty style item [%d]", i); 151 snprintf(buf, sizeof(buf), "empty style item [%d]", i);
@@ -153,7 +153,7 @@ elm_main(int argc, char **argv)
153 efl_pack_end(ibox, txt); 153 efl_pack_end(ibox, txt);
154 154
155 check = efl_add(EFL_UI_CHECK_CLASS, ibox); 155 check = efl_add(EFL_UI_CHECK_CLASS, ibox);
156 efl_gfx_size_hint_weight_set(check, 0.05, EFL_GFX_SIZE_HINT_EXPAND); 156 efl_gfx_hint_weight_set(check, 0.05, EFL_GFX_SIZE_HINT_EXPAND);
157 efl_pack_end(ibox, check); 157 efl_pack_end(ibox, check);
158 158
159 if (i % 2) 159 if (i % 2)
@@ -223,7 +223,7 @@ elm_main(int argc, char **argv)
223 223
224 /*select mode */ 224 /*select mode */
225 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 225 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
226 efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01); 226 efl_gfx_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
227 efl_text_halign_set(txt, 0.02); 227 efl_text_halign_set(txt, 0.02);
228 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 228 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
229 efl_text_set(txt, "Select Mode"); 229 efl_text_set(txt, "Select Mode");
@@ -231,7 +231,7 @@ elm_main(int argc, char **argv)
231 231
232 bbox = efl_add(EFL_UI_BOX_CLASS, wbox); 232 bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
233 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL); 233 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
234 efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05); 234 efl_gfx_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
235 235
236 select_radio = radio = efl_add(EFL_UI_RADIO_CLASS, wbox); 236 select_radio = radio = efl_add(EFL_UI_RADIO_CLASS, wbox);
237 efl_text_set(radio, "SINGLE"); 237 efl_text_set(radio, "SINGLE");
@@ -260,7 +260,7 @@ elm_main(int argc, char **argv)
260 260
261 /* scroll mode */ 261 /* scroll mode */
262 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 262 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
263 efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01); 263 efl_gfx_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
264 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 264 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
265 efl_text_halign_set(txt, 0.02); 265 efl_text_halign_set(txt, 0.02);
266 efl_text_set(txt, "Item Scroll"); 266 efl_text_set(txt, "Item Scroll");
@@ -268,27 +268,27 @@ elm_main(int argc, char **argv)
268 268
269 priv_d.slider = slider = efl_add(EFL_UI_SLIDER_CLASS, wbox); 269 priv_d.slider = slider = efl_add(EFL_UI_SLIDER_CLASS, wbox);
270 efl_ui_direction_set(slider, EFL_UI_DIR_HORIZONTAL); 270 efl_ui_direction_set(slider, EFL_UI_DIR_HORIZONTAL);
271 efl_gfx_size_hint_weight_set(slider, 0.0, 0.05); 271 efl_gfx_hint_weight_set(slider, 0.0, 0.05);
272 efl_gfx_size_hint_align_set(slider, 0.5, 0.5); 272 efl_gfx_hint_align_set(slider, 0.5, 0.5);
273 efl_gfx_size_hint_min_set(slider, EINA_SIZE2D(380, 20)); 273 efl_gfx_hint_size_min_set(slider, EINA_SIZE2D(380, 20));
274 efl_ui_range_min_max_set(slider, 0.0, 1.0); 274 efl_ui_range_min_max_set(slider, 0.0, 1.0);
275 efl_pack_end(wbox, slider); 275 efl_pack_end(wbox, slider);
276 276
277 bbox = efl_add(EFL_UI_BOX_CLASS, wbox); 277 bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
278 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL); 278 efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
279 efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05); 279 efl_gfx_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
280 280
281 rbox = efl_add(EFL_UI_BOX_CLASS, bbox); 281 rbox = efl_add(EFL_UI_BOX_CLASS, bbox);
282 efl_ui_direction_set(rbox, EFL_UI_DIR_VERTICAL); 282 efl_ui_direction_set(rbox, EFL_UI_DIR_VERTICAL);
283 283
284 anim_radio = radio = efl_add(EFL_UI_RADIO_CLASS, rbox); 284 anim_radio = radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
285 efl_gfx_size_hint_align_set(radio, 0.5, 0.5); 285 efl_gfx_hint_align_set(radio, 0.5, 0.5);
286 efl_text_set(radio, "ANIMATION OFF"); 286 efl_text_set(radio, "ANIMATION OFF");
287 efl_ui_radio_state_value_set(radio, 0); 287 efl_ui_radio_state_value_set(radio, 0);
288 efl_event_callback_add(radio, EFL_UI_RADIO_EVENT_CHANGED, _anim_radio_changed, NULL); 288 efl_event_callback_add(radio, EFL_UI_RADIO_EVENT_CHANGED, _anim_radio_changed, NULL);
289 efl_pack_end(rbox, radio); 289 efl_pack_end(rbox, radio);
290 radio = efl_add(EFL_UI_RADIO_CLASS, rbox); 290 radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
291 efl_gfx_size_hint_align_set(radio, 0.5, 0.5); 291 efl_gfx_hint_align_set(radio, 0.5, 0.5);
292 efl_text_set(radio, "ANIMATION ON"); 292 efl_text_set(radio, "ANIMATION ON");
293 efl_ui_radio_state_value_set(radio, 1); 293 efl_ui_radio_state_value_set(radio, 1);
294 efl_ui_radio_group_add(radio, anim_radio); 294 efl_ui_radio_group_add(radio, anim_radio);
@@ -301,15 +301,15 @@ elm_main(int argc, char **argv)
301 301
302 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox); 302 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
303 efl_text_set(scrl_btn, "Scroll Item"); 303 efl_text_set(scrl_btn, "Scroll Item");
304 efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5); 304 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
305 efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 305 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
306 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL); 306 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL);
307 efl_pack_end(rbox, scrl_btn); 307 efl_pack_end(rbox, scrl_btn);
308 308
309 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox); 309 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
310 efl_text_set(scrl_btn, "Scroll Item Align"); 310 efl_text_set(scrl_btn, "Scroll Item Align");
311 efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5); 311 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
312 efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 312 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
313 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL); 313 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL);
314 efl_pack_end(rbox, scrl_btn); 314 efl_pack_end(rbox, scrl_btn);
315 315