evas_object_smart_callback_add(sl, "delay,changed", sc_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
evas_object_smart_callback_add(sl, "delay,changed", sc_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
evas_object_show(rd);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, 1.0, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_table_pack(base, sp, 0, 2, 2, 1);
/////////////////////////////////////////////
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, 1.0, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_table_pack(tb, sp, 0, 2, 1, 1);
evas_object_smart_callback_add(sl, "delay,changed", cf_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
evas_object_smart_callback_add(sl, "delay,changed", fc_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
evas_object_smart_callback_add(sl, "delay,changed", ic_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
evas_object_smart_callback_add(sl, "delay,changed", efc_change, NULL);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
elm_box_pack_end(bx, sp);
tb = elm_toolbar_add(win);
elm_toolbar_menu_parent_set(tb, win);
- elm_toolbar_homogeneous_set(tb, 0);
+ elm_toolbar_homogeneous_set(tb, EINA_FALSE);
evas_object_size_hint_weight_set(tb, 1.0, 0.0);
evas_object_size_hint_align_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_button_add(win);
elm_object_text_set(bt, "Disabled Button");
elm_object_part_content_set(bt, "icon", ic);
- elm_object_disabled_set(bt, 1);
+ elm_object_disabled_set(bt, EINA_TRUE);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)3);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)3);
elm_box_pack_end(bx, bt);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_part_content_set(bt, "icon", ic);
- elm_object_disabled_set(bt, 1);
+ elm_object_disabled_set(bt, EINA_TRUE);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)4);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)4);
elm_box_pack_end(bx, bt);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)5);
elm_box_pack_end(bx, bt);
evas_object_smart_callback_add(bt, "repeated", _bt_repeated, NULL);
- elm_button_autorepeat_set(bt, 1);
+ elm_button_autorepeat_set(bt, EINA_TRUE);
elm_button_autorepeat_initial_timeout_set(bt, 2.0);
elm_button_autorepeat_gap_timeout_set(bt, 0.5);
evas_object_show(bt);
elm_object_access_info_set(bt, "This is some custom text describing this widget");
elm_object_style_set(bt, "anchor");
elm_object_part_content_set(bt, "icon", ic);
- elm_object_disabled_set(bt, 1);
+ elm_object_disabled_set(bt, EINA_TRUE);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)9);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9);
elm_box_pack_end(bx, bt);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_show_am_pm_set(ck, 1);
+ elm_clock_show_am_pm_set(ck, EINA_TRUE);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_show_seconds_set(ck, 1);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_show_seconds_set(ck, 1);
- elm_clock_show_am_pm_set(ck, 1);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
+ elm_clock_show_am_pm_set(ck, EINA_TRUE);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_show_seconds_set(ck, 1);
- elm_clock_show_am_pm_set(ck, 0);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
+ elm_clock_show_am_pm_set(ck, EINA_FALSE);
elm_clock_time_set(ck, 23, 59, 57);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_edit_set(ck, 1);
- elm_clock_show_seconds_set(ck, 1);
- elm_clock_show_am_pm_set(ck, 1);
+ elm_clock_edit_set(ck, EINA_TRUE);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
+ elm_clock_show_am_pm_set(ck, EINA_TRUE);
elm_clock_time_set(ck, 10, 11, 12);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
ck = elm_clock_add(win);
- elm_clock_show_seconds_set(ck, 1);
- elm_clock_edit_set(ck, 1);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
+ elm_clock_edit_set(ck, EINA_TRUE);
digedit = ELM_CLOCK_HOUR_UNIT | ELM_CLOCK_MIN_UNIT | ELM_CLOCK_SEC_UNIT;
elm_clock_digit_edit_set(ck, digedit);
elm_box_pack_end(bx, ck);
if (!elm_clock_edit_get(ck)) {
elm_object_text_set(obj, "Done");
- elm_clock_edit_set(ck, 1);
+ elm_clock_edit_set(ck, EINA_TRUE);
return;
}
elm_object_text_set(obj, "Edit");
- elm_clock_edit_set(ck, 0);
+ elm_clock_edit_set(ck, EINA_FALSE);
}
static void
if (!elm_clock_show_am_pm_get(ck)) {
elm_object_text_set(obj, "24h");
- elm_clock_show_am_pm_set(ck, 1);
+ elm_clock_show_am_pm_set(ck, EINA_TRUE);
return;
}
elm_object_text_set(obj, "12h");
- elm_clock_show_am_pm_set(ck, 0);
+ elm_clock_show_am_pm_set(ck, EINA_FALSE);
}
void
evas_object_show(bx);
ck = elm_clock_add(win);
- elm_clock_show_seconds_set(ck, 1);
- elm_clock_show_am_pm_set(ck, 1);
+ elm_clock_show_seconds_set(ck, EINA_TRUE);
+ elm_clock_show_am_pm_set(ck, EINA_TRUE);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC);
elm_win_title_set(win, "Conformant");
elm_win_autodel_set(win, EINA_TRUE);
- elm_win_conformant_set(win, 1);
+ elm_win_conformant_set(win, EINA_TRUE);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_single_line_set(en, 1);
- elm_entry_bounce_set(en, 1, 0);
+ elm_entry_single_line_set(en, EINA_TRUE);
+ elm_entry_bounce_set(en, EINA_TRUE, EINA_FALSE);
elm_object_text_set(en, "This is the top entry here");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_single_line_set(en, 1);
- elm_entry_bounce_set(en, 1, 0);
+ elm_entry_single_line_set(en, EINA_TRUE);
+ elm_entry_bounce_set(en, EINA_TRUE, EINA_FALSE);
elm_object_text_set(en, "This is the middle entry here");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_bounce_set(en, 0, 1);
+ elm_entry_bounce_set(en, EINA_FALSE, EINA_TRUE);
elm_object_text_set(en,
"This is a multi-line entry at the bottom<br/>"
"This can contain more than 1 line of text and be "
win = elm_win_add(NULL, "conformant2", ELM_WIN_BASIC);
elm_win_title_set(win, "Conformant 2");
elm_win_autodel_set(win, EINA_TRUE);
- elm_win_conformant_set(win, 1);
+ elm_win_conformant_set(win, EINA_TRUE);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_single_line_set(en, 1);
- elm_entry_bounce_set(en, 1, 0);
+ elm_entry_single_line_set(en, EINA_TRUE);
+ elm_entry_bounce_set(en, EINA_TRUE, EINA_FALSE);
elm_object_text_set(en, "This is the top entry here");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
evas_object_show(en);
btn = elm_button_add(win);
- elm_object_focus_allow_set(btn, 0);
+ elm_object_focus_allow_set(btn, EINA_FALSE);
elm_object_text_set(btn, "Delete Below");
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_bounce_set(en, 0, 1);
+ elm_entry_bounce_set(en, EINA_FALSE, EINA_TRUE);
elm_object_text_set(en, "This entry and button below get deleted.");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(bx, en);
btn = elm_button_add(win);
- elm_object_focus_allow_set(btn, 0);
+ elm_object_focus_allow_set(btn, EINA_FALSE);
elm_object_text_set(btn, "Delete this bottom bit 1");
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
- elm_entry_bounce_set(en, 0, 1);
+ elm_entry_bounce_set(en, EINA_FALSE, EINA_TRUE);
elm_object_text_set(en, "This entry and button below get deleted.");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(bx, en);
btn = elm_button_add(win);
- elm_object_focus_allow_set(btn, 0);
+ elm_object_focus_allow_set(btn, EINA_FALSE);
elm_object_text_set(btn, "Delete this bottom bit 2");
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en, "Disabled entry");
- elm_entry_single_line_set(en, 1);
- elm_object_disabled_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
+ elm_object_disabled_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_password_set(en, 1);
- elm_entry_single_line_set(en, 1);
+ elm_entry_password_set(en, EINA_TRUE);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_object_text_set(en, "Access denied, give up!");
- elm_object_disabled_set(en, 1);
+ elm_object_disabled_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_ON, ELM_SCROLLER_POLICY_ON);
- elm_object_disabled_set(en, 1);
+ elm_object_disabled_set(en, EINA_TRUE);
elm_entry_context_menu_item_add(en, "Hello", NULL, ELM_ICON_NONE, NULL, NULL);
elm_entry_context_menu_item_add(en, "World", NULL, ELM_ICON_NONE, NULL, NULL);
elm_object_text_set(en,
elm_box_pack_end(bx, en);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
elm_box_pack_end(bx, sp);
evas_object_show(sp);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "This is a single line");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_entry_select_all(en);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "01234");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "No numbers here");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "Just 20 chars");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "And now only 30 bytes");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en_p, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en_p, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en_p, "Password here");
- elm_entry_single_line_set(en_p, 1);
- elm_entry_password_set(en_p, 1);
+ elm_entry_single_line_set(en_p, EINA_TRUE);
+ elm_entry_password_set(en_p, EINA_TRUE);
evas_object_show(en_p);
elm_box_pack_end(bx, en_p);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_icon_add(win);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en, "This is a single line");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_box_pack_end(bx, en);
evas_object_show(en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en, "This is a single line");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_object_part_content_set(ly, "element1", en);
evas_object_show(en);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "This is a single line");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_box_pack_end(bx, en);
my_show(en);
}
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(sc, EVAS_HINT_FILL,
EVAS_HINT_FILL);
- elm_scroller_bounce_set(sc, 1, 1);
+ elm_scroller_bounce_set(sc, EINA_TRUE, EINA_TRUE);
elm_scroller_content_min_limit(sc, 1, 1);
elm_box_pack_end(bx2, sc);
my_show(sc);
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(sc, EVAS_HINT_FILL,
EVAS_HINT_FILL);
- elm_scroller_bounce_set(sc, 0, 1);
+ elm_scroller_bounce_set(sc, EINA_FALSE, EINA_TRUE);
elm_scroller_content_min_limit(sc, 1, 0);
elm_box_pack_end(bx2, sc);
my_show(sc);
Evas_Object *newfocus = (Evas_Object *)edje_object_part_object_get(ed, "sky");
const char *type = evas_object_type_get(newfocus);
- printf("evas_object_focus_set(%p, 1) %s\n", newfocus, type);
+ printf("evas_object_focus_set(%p, EINA_TRUE) %s\n", newfocus, type);
evas_object_focus_set(newfocus, EINA_TRUE);;
}
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en, "Scrolled Entry that should get focus");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(en, "Scrolled Entry that should get focus");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_object_part_content_set(ly, "element2", en);
bt = elm_button_add(ly);
evas_object_smart_callback_add(en, "unfocused", _unfoc, NULL);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_box_pack_start(bx, en);
evas_object_show(en);
}
evas_object_smart_callback_add(en, "unfocused", _unfoc, NULL);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_box_pack_end(bx, en);
evas_object_show(en);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
elm_object_text_set(en, "Entry text");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_grid_pack(gd, en, 50, 10, 40, 10);
evas_object_show(en);
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
elm_object_text_set(en, "Entry text 2");
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
elm_grid_pack(gd, en, 60, 20, 30, 10);
evas_object_show(en);
EINA_LIST_FOREACH(mbs, l, mb)
{
if (elm_mapbuf_enabled_get(mb))
- elm_mapbuf_enabled_set(mb, 0);
+ elm_mapbuf_enabled_set(mb, EINA_FALSE);
else
- elm_mapbuf_enabled_set(mb, 1);
+ elm_mapbuf_enabled_set(mb, EINA_TRUE);
}
}
elm_box_horizontal_set(bx, EINA_TRUE);
sc = elm_scroller_add(win);
- elm_scroller_bounce_set(sc, 1, 0);
+ elm_scroller_bounce_set(sc, EINA_TRUE, EINA_FALSE);
elm_scroller_policy_set(sc, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL);
ck = elm_check_add(win);
elm_object_text_set(ck, "Map");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", mode_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.05, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "A");
- elm_check_state_set(ck, 1);
+ elm_check_state_set(ck, EINA_TRUE);
evas_object_smart_callback_add(ck, "changed", alpha_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.20, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "Smo");
- elm_check_state_set(ck, 1);
+ elm_check_state_set(ck, EINA_TRUE);
evas_object_smart_callback_add(ck, "changed", smooth_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.40, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "FS");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", full_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.5, 0.99);
evas_object_data_set(win, "mbs", mbs);
sc = elm_scroller_add(win);
- elm_scroller_bounce_set(sc, 1, 0);
+ elm_scroller_bounce_set(sc, EINA_TRUE, EINA_FALSE);
elm_scroller_policy_set(sc, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, sc);
ck = elm_check_add(win);
elm_object_text_set(ck, "Map");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", mode_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.05, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "A");
- elm_check_state_set(ck, 1);
+ elm_check_state_set(ck, EINA_TRUE);
evas_object_smart_callback_add(ck, "changed", alpha_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.20, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "Smo");
- elm_check_state_set(ck, 1);
+ elm_check_state_set(ck, EINA_TRUE);
evas_object_smart_callback_add(ck, "changed", smooth_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.40, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "FS");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", full_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.5, 0.99);
EINA_LIST_FOREACH(mbs, l, mb)
{
if (elm_mapbuf_enabled_get(mb))
- elm_mapbuf_enabled_set(mb, 0);
+ elm_mapbuf_enabled_set(mb, EINA_FALSE);
else
elm_mapbuf_enabled_set(mb, 1);
}
elm_box_horizontal_set(bx, EINA_TRUE);
sc = elm_scroller_add(win);
- elm_scroller_bounce_set(sc, 1, 0);
+ elm_scroller_bounce_set(sc, EINA_TRUE, EINA_FALSE);
elm_scroller_policy_set(sc, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL);
ck = elm_check_add(win);
elm_object_text_set(ck, "Map");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", l3_mode_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.05, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "FS");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", l3_full_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.5, 0.99);
ck = elm_check_add(win);
elm_object_text_set(ck, "Hid");
- elm_check_state_set(ck, 0);
+ elm_check_state_set(ck, EINA_FALSE);
evas_object_smart_callback_add(ck, "changed", l3_hidden_cb, win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, 0.5, 0.99);
void *event_info __UNUSED__ )
{
//Set the multibuttonentry to contracted mode of single line
- elm_multibuttonentry_shrink_mode_set(obj, 1);
+ elm_multibuttonentry_shrink_mode_set(obj, EINA_TRUE);
printf("multibuttonentry unfocused!\n");
}
elm_photo_thumb_set(ph, buf, NULL);
else
elm_photo_file_set(ph, buf);
- elm_photo_editable_set(ph, 1);
+ elm_photo_editable_set(ph, EINA_TRUE);
evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
elm_radio_state_value_set(rd, 3);
elm_radio_group_add(rd, rdg);
elm_object_text_set(rd, "Disabled");
- elm_object_disabled_set(rd, 1);
+ elm_object_disabled_set(rd, EINA_TRUE);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
elm_radio_state_value_set(rd, 5);
elm_radio_group_add(rd, rdg);
elm_object_part_content_set(rd, "icon", ic);
- elm_object_disabled_set(rd, 1);
+ elm_object_disabled_set(rd, EINA_TRUE);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
evas_object_show(ic);
bx0 = elm_box_add(win);
evas_object_size_hint_weight_set(bx0, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_box_horizontal_set(bx0, 1);
+ elm_box_horizontal_set(bx0, EINA_TRUE);
elm_win_resize_object_add(win, bx0);
evas_object_show(bx0);
evas_object_show(bt);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1); // by default, separator is vertical, we must set it horizontal
+ elm_separator_horizontal_set(sp, EINA_TRUE); // by default, separator is vertical, we must set it horizontal
elm_box_pack_end(bx, sp);
evas_object_show(sp);
bt = elm_button_add(win);
elm_object_text_set(bt, "Left lower corner");
- elm_object_disabled_set(bt, 1);
+ elm_object_disabled_set(bt, EINA_TRUE);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Right upper corner");
- elm_object_disabled_set(bt, 1);
+ elm_object_disabled_set(bt, EINA_TRUE);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
sp = elm_separator_add(win);
- elm_separator_horizontal_set(sp, 1);
+ elm_separator_horizontal_set(sp, EINA_TRUE);
elm_box_pack_end(bx, sp);
evas_object_show(sp);
sp = elm_spinner_add(win);
elm_spinner_label_format_set(sp, "Disabled %.0f");
- elm_object_disabled_set(sp, 1);
+ elm_object_disabled_set(sp, EINA_TRUE);
elm_spinner_min_max_set(sp, -50.0, 250.0);
evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_style_set(tg, "toggle");
elm_object_text_set(tg, "Icon no scale");
elm_object_part_content_set(tg, "icon", ic);
- elm_object_disabled_set(tg, 1);
+ elm_object_disabled_set(tg, EINA_TRUE);
elm_box_pack_end(bx, tg);
evas_object_show(tg);
evas_object_show(ic);
ELM_SCROLLER_POLICY_OFF);
elm_object_text_set(se, "Hello, some scrolled entry here!");
elm_object_tooltip_text_set(se, "Type something here!");
- elm_entry_single_line_set(se, 1);
+ elm_entry_single_line_set(se, EINA_TRUE);
elm_box_pack_end(bx, se);
evas_object_show(se);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "This is a single line");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "Entry 2");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "This is a single line");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
elm_object_text_set(en, "Entry 2");
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- elm_entry_single_line_set(en, 1);
+ elm_entry_single_line_set(en, EINA_TRUE);
evas_object_show(en);
elm_box_pack_end(bx, en);