#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
{
- Elm_Genlist_Item *item;
+ Elm_Object_Item *item;
int mode, onoff;
} Testitem;
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
evas_object_hide(bg);
- elm_win_alpha_set(win, 1);
+ elm_win_alpha_set(win, EINA_TRUE);
}
static void
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
evas_object_show(bg);
- elm_win_alpha_set(win, 0);
+ elm_win_alpha_set(win, EINA_FALSE);
}
static void
Evas_Object *win = data;
if (rotate_with_resize)
elm_win_rotation_with_resize_set(win, 0);
- else
+ else
elm_win_rotation_set(win, 0);
}
Evas_Object *win = data;
if (rotate_with_resize)
elm_win_rotation_with_resize_set(win, 90);
- else
+ else
elm_win_rotation_set(win, 90);
}
Evas_Object *win = data;
if (rotate_with_resize)
elm_win_rotation_with_resize_set(win, 180);
- else
+ else
elm_win_rotation_set(win, 180);
}
Evas_Object *win = data;
if (rotate_with_resize)
elm_win_rotation_with_resize_set(win, 270);
- else
+ else
elm_win_rotation_set(win, 270);
}
evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, _win_resize, NULL);
evas_event_callback_add(evas_object_evas_get(win), EVAS_CALLBACK_CANVAS_FOCUS_IN, _win_foc_in, NULL);
evas_event_callback_add(evas_object_evas_get(win), EVAS_CALLBACK_CANVAS_FOCUS_OUT, _win_foc_out, NULL);
- elm_win_autodel_set(win, 1);
+ elm_win_autodel_set(win, EINA_TRUE);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_show(bx);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
- elm_box_homogenous_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
+ elm_box_homogeneous_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Alpha On");
+ elm_object_text_set(bt, "Alpha On");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_alpha_on, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Alpha Off");
+ elm_object_text_set(bt, "Alpha Off");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_alpha_off, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bx2);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
- elm_box_homogenous_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
+ elm_box_homogeneous_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
sl = elm_slider_add(win);
- elm_slider_label_set(sl, "Test");
+ elm_object_text_set(sl, "Test");
elm_slider_span_size_set(sl, 100);
evas_object_size_hint_align_set(sl, 0.5, 0.5);
evas_object_size_hint_weight_set(sl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_slider_indicator_format_set(sl, "%3.0f");
elm_slider_min_max_set(sl, 50, 150);
elm_slider_value_set(sl, 50);
- elm_slider_inverted_set(sl, 1);
+ elm_slider_inverted_set(sl, EINA_TRUE);
elm_box_pack_end(bx2, sl);
evas_object_show(sl);
evas_object_show(bx2);
ck = elm_check_add(win);
- elm_check_label_set(ck, "resize");
+ elm_object_text_set(ck, "resize");
elm_check_state_set(ck, rotate_with_resize);
evas_object_smart_callback_add(ck, "changed", my_ck_38_resize, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.02, 0.99);
- evas_object_show(ck);
+ evas_object_show(ck);
elm_box_pack_end(bx, ck);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
- elm_box_homogenous_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
+ elm_box_homogeneous_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 0");
+ elm_object_text_set(bt, "Rot 0");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_0, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 90");
+ elm_object_text_set(bt, "Rot 90");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_90, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 180");
+ elm_object_text_set(bt, "Rot 180");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_180, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 270");
+ elm_object_text_set(bt, "Rot 270");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_270, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
{
Evas_Object *win, *bg, *sl, *bx, *bx2, *bt, *ck;
char buf[PATH_MAX];
-
+
win = elm_win_add(NULL, "window-states2", ELM_WIN_BASIC);
- elm_win_override_set(win, 1);
+ elm_win_override_set(win, EINA_TRUE);
evas_object_smart_callback_add(win, "moved", my_win_move, NULL);
evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, _win_resize, NULL);
elm_win_title_set(win, "Window States 2");
- elm_win_autodel_set(win, 1);
+ elm_win_autodel_set(win, EINA_TRUE);
bg = elm_bg_add(win);
- snprintf(buf, sizeof(buf), "%s/images/sky_02.jpg", PACKAGE_DATA_DIR);
+ snprintf(buf, sizeof(buf), "%s/images/sky_02.jpg", elm_app_data_dir_get());
elm_bg_file_set(bg, buf, NULL);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bx);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Alpha On");
+ elm_object_text_set(bt, "Alpha On");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_alpha_on, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, 0.0, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Alpha Off");
+ elm_object_text_set(bt, "Alpha Off");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_alpha_off, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, 0.0, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Close");
+ elm_object_text_set(bt, "Close");
evas_object_smart_callback_add(bt, "clicked", _close_win, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bx2);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
- elm_box_homogenous_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
+ elm_box_homogeneous_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
sl = elm_slider_add(win);
- elm_slider_label_set(sl, "Override Redirect");
+ elm_object_text_set(sl, "Override Redirect");
elm_slider_span_size_set(sl, 100);
evas_object_size_hint_align_set(sl, 0.5, 0.5);
evas_object_size_hint_weight_set(sl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_slider_indicator_format_set(sl, "%3.0f");
elm_slider_min_max_set(sl, 50, 150);
elm_slider_value_set(sl, 50);
- elm_slider_inverted_set(sl, 1);
+ elm_slider_inverted_set(sl, EINA_TRUE);
elm_box_pack_end(bx2, sl);
evas_object_show(sl);
evas_object_show(bx2);
ck = elm_check_add(win);
- elm_check_label_set(ck, "resize");
+ elm_object_text_set(ck, "resize");
elm_check_state_set(ck, rotate_with_resize);
evas_object_smart_callback_add(ck, "changed", my_ck_38_resize, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.02, 0.99);
- evas_object_show(ck);
+ evas_object_show(ck);
elm_box_pack_end(bx, ck);
bx2 = elm_box_add(win);
- elm_box_horizontal_set(bx2, 1);
- elm_box_homogenous_set(bx2, 1);
+ elm_box_horizontal_set(bx2, EINA_TRUE);
+ elm_box_homogeneous_set(bx2, EINA_TRUE);
evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_fill_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 0");
+ elm_object_text_set(bt, "Rot 0");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_0, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 90");
+ elm_object_text_set(bt, "Rot 90");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_90, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 180");
+ elm_object_text_set(bt, "Rot 180");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_180, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_show(bt);
bt = elm_button_add(win);
- elm_button_label_set(bt, "Rot 270");
+ elm_object_text_set(bt, "Rot 270");
evas_object_smart_callback_add(bt, "clicked", my_bt_38_rot_270, win);
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);