lib/efl/interfaces/efl_gfx_gradient_radial.eo \
lib/efl/interfaces/efl_gfx_filter.eo \
lib/efl/interfaces/efl_gfx_blur.eo \
- lib/efl/interfaces/efl_gfx_size_hint.eo \
+ lib/efl/interfaces/efl_gfx_hint.eo \
lib/efl/interfaces/efl_model.eo \
lib/efl/interfaces/efl_animator.eo \
lib/efl/interfaces/efl_orientation.eo \
box = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_content_set(win, efl_added));
cs = elm_colorselector_add(win);
snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
efl_add(EFL_UI_IMAGE_CLASS, win,
efl_file_set(efl_added, buf, NULL),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(64, 64)),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _file_cb, win),
efl_pack(box, efl_added));
snprintf(buf, sizeof(buf), "%s/images/sky_04.jpg", elm_app_data_dir_get());
efl_add(EFL_UI_IMAGE_CLASS, win,
efl_file_set(efl_added, buf, NULL),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(64, 64)),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _image_cb, win),
efl_pack(box, efl_added));
efl_ui_win_alpha_set(efl_added, EINA_FALSE));
efl_add(EFL_UI_BG_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND),
efl_content_set(win, efl_added));
box = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_VERTICAL),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND),
efl_content_set(win, efl_added));
snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
o_bg = efl_add(EFL_UI_BG_CLASS, box,
efl_file_set(efl_added, buf, NULL),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack(box, efl_added));
hbox = efl_add(EFL_UI_BOX_CLASS, box,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack(box, efl_added));
rdg = rd = efl_add(EFL_UI_RADIO_CLASS, hbox,
efl_ui_radio_state_value_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_FILL),
efl_text_set(efl_added, "Fill"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
efl_ui_radio_state_value_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_FIT_INSIDE),
efl_ui_radio_group_add(efl_added, rdg),
efl_text_set(efl_added, "Fit Inside"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
efl_ui_radio_state_value_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_FIT_OUTSIDE),
efl_ui_radio_group_add(efl_added, rdg),
efl_text_set(efl_added, "Fit Outside"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
efl_ui_radio_state_value_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_NONE),
efl_ui_radio_group_add(efl_added, rdg),
efl_text_set(efl_added, "None"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
efl_ui_radio_state_value_set(efl_added, EFL_GFX_IMAGE_SCALE_TYPE_TILE),
efl_ui_radio_group_add(efl_added, rdg),
efl_text_set(efl_added, "Tile"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
efl_add(EFL_UI_CHECK_CLASS, hbox,
efl_text_set(efl_added, "Bg Color"),
- efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
+ efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0.0),
efl_event_callback_add(efl_added, EFL_UI_CHECK_EVENT_CHANGED, _cb_check_changed_scale_type, o_bg),
efl_pack(hbox, efl_added));
/* rectangle with a max size */
o = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win,
efl_gfx_color_set(efl_added, 64, 128, 64, 255),
- efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(128, 20)));
+ efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(128, 20)));
efl_pack(bx, o);
/* image with a forced min size */
snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
o = efl_add(EFL_UI_IMAGE_CLASS, win,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(64, 64)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
efl_file_set(efl_added, buf, NULL));
efl_pack(bx, o);
/* image with a min size */
snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
img = efl_add(EFL_UI_IMAGE_CLASS, win,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(64, 64)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
efl_file_set(efl_added, buf, NULL));
efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL);
evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE,
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
bx = efl_add(EFL_UI_BOX_CLASS, win);
- efl_gfx_size_hint_weight_set(bx, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(bx, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
efl_content_set(win, bx);
en = efl_add(EFL_UI_TEXT_CLASS, bx,
"occaecat cupidatat non proident, sunt in culpa qui officia deserunt\n"
"mollit anim id est laborum");
- efl_gfx_size_hint_min_set(en, EINA_SIZE2D(300, 100));
+ efl_gfx_hint_size_min_set(en, EINA_SIZE2D(300, 100));
efl_pack(bx, en);
bx2 = efl_add(EFL_UI_BOX_CLASS, bx);
- efl_gfx_size_hint_weight_set(bx2, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(bx2, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
efl_ui_direction_set(bx2, EFL_UI_DIR_HORIZONTAL);
bt = efl_add(EFL_UI_BUTTON_CLASS, bx2);
efl_text_set(bt, "Sel");
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_bt3_clicked, en);
- efl_gfx_size_hint_weight_set(bt, EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ efl_gfx_hint_weight_set(bt, EFL_GFX_HINT_EXPAND, 0.0);
efl_pack(bx2, bt);
elm_object_focus_allow_set(bt, EINA_FALSE);
bt = efl_add(EFL_UI_BUTTON_CLASS, bx2);
efl_text_set(bt, "Wr");
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_bt6_clicked, en);
- efl_gfx_size_hint_weight_set(bt, EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ efl_gfx_hint_weight_set(bt, EFL_GFX_HINT_EXPAND, 0.0);
efl_pack(bx2, bt);
elm_object_focus_allow_set(bt, EINA_FALSE);
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
bx = efl_add(EFL_UI_BOX_CLASS, win);
- efl_gfx_size_hint_weight_set(bx, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(bx, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
efl_content_set(win, bx);
en = efl_add(EFL_UI_TEXT_CLASS, bx,
elm_object_focus_set(en, EINA_TRUE);
bx2 = efl_add(EFL_UI_BOX_CLASS, bx);
- efl_gfx_size_hint_weight_set(bx2, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(bx2, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
efl_ui_direction_set(bx2, EFL_UI_DIR_HORIZONTAL);
bt = efl_add(EFL_UI_BUTTON_CLASS, bx2);
efl_text_set(bt, "Image");
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_factory_bt_image_clicked, en);
- efl_gfx_size_hint_weight_set(bt, EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ efl_gfx_hint_weight_set(bt, EFL_GFX_HINT_EXPAND, 0.0);
efl_pack(bx2, bt);
elm_object_focus_allow_set(bt, EINA_FALSE);
bt = efl_add(EFL_UI_BUTTON_CLASS, bx2);
efl_text_set(bt, "Emoticon");
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_factory_bt_emoticon_clicked, en);
- efl_gfx_size_hint_weight_set(bt, EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ efl_gfx_hint_weight_set(bt, EFL_GFX_HINT_EXPAND, 0.0);
efl_pack(bx2, bt);
elm_object_focus_allow_set(bt, EINA_FALSE);
bt = efl_add(EFL_UI_BUTTON_CLASS, bx2);
efl_text_set(bt, "Factory");
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_factory_bt_factory_clicked, en);
- efl_gfx_size_hint_weight_set(bt, EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ efl_gfx_hint_weight_set(bt, EFL_GFX_HINT_EXPAND, 0.0);
efl_pack(bx2, bt);
elm_object_focus_allow_set(bt, EINA_FALSE);
/* image with a min size */
snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
img = efl_add(EFL_UI_IMAGE_CLASS, win,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(64, 64)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(64, 64)),
efl_file_set(efl_added, buf, NULL));
efl_gfx_image_scale_type_set(img, EFL_GFX_IMAGE_SCALE_TYPE_FILL);
evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE,
// FIXME: No genlist in EO API
o = gl = elm_genlist_add(win);
elm_genlist_homogeneous_set(gl, 1);
- efl_gfx_size_hint_align_set(o, -1, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, -1, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
itc = elm_genlist_item_class_new();
itc->item_style = "default";
box2 = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_LTR),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added));
// FIXME: button EO API
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Toggle mask"),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _toggle_mask, ly),
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 0.0),
efl_pack(box2, efl_added));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Toggle map"),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _toggle_map, ly),
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 0.0),
efl_pack(box2, efl_added));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Rotate Window"),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _rotate_win, win),
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 0.0),
efl_pack(box2, efl_added));
efl_gfx_entity_size_set(win, EINA_SIZE2D(500, 600));
{
return efl_add(EFL_UI_IMAGE_CLASS, win,
efl_file_set(efl_added, path, NULL),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(20, 20)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(20, 20)));
}
static void
elm_slider_min_max_set(efl_added, 0, 64),
elm_slider_value_set(efl_added, 5),
elm_slider_unit_format_set(efl_added, "%.0f px"),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack_table(table, efl_added, 0, TABLE_SIZE, TABLE_SIZE, 1),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, _radius_set, win));
box = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack_table(table, efl_added, 0, TABLE_SIZE + 1, TABLE_SIZE, 1));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Toggle animation"),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _anim_toggle, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Save to file"),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _save_image, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Map"),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _toggle_map, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Close"),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _close_do, win));
Eina_Size2D sz;
sz = efl_gfx_entity_size_get(ev->object);
- efl_gfx_size_hint_min_set(ev->object, sz);
+ efl_gfx_hint_size_min_set(ev->object, sz);
}
static void
evas_object_textblock_size_native_get(ev->object, &w, &h);
evas_object_textblock_style_insets_get(ev->object, &l, &r, &t, &b);
- efl_gfx_size_hint_min_set(ev->object, EINA_SIZE2D(w + l + r, h + t + b));
+ efl_gfx_hint_size_min_set(ev->object, EINA_SIZE2D(w + l + r, h + t + b));
}
static void
{
box2 = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE));
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE));
efl_pack(box, box2);
/* FIXME: Efl.Ui.Text doesn't work as expected. */
o = efl_add(EFL_UI_TEXT_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 1.0),
- efl_gfx_size_hint_align_set(efl_added, 1.0, 0.5));
+ efl_gfx_hint_weight_set(efl_added, 0.0, 1.0),
+ efl_gfx_hint_align_set(efl_added, 1.0, 0.5));
efl_text_set(o, "Filter:");
efl_pack(box2, o);
o = spinner = elm_spinner_add(win);
- efl_gfx_size_hint_weight_set(o, 1.0, 1.0);
- efl_gfx_size_hint_align_set(o, -1.0, 0.5);
+ efl_gfx_hint_weight_set(o, 1.0, 1.0);
+ efl_gfx_hint_align_set(o, -1.0, 0.5);
_spinner_fill(o);
efl_pack(box2, o);
evas_object_show(o);
o = elm_spinner_add(win);
- efl_gfx_size_hint_weight_set(o, 0.0, 1.0);
- efl_gfx_size_hint_align_set(o, -1.0, 0.5);
+ efl_gfx_hint_weight_set(o, 0.0, 1.0);
+ efl_gfx_hint_align_set(o, -1.0, 0.5);
elm_spinner_min_max_set(o, 6, 120);
elm_spinner_value_set(o, default_font_size);
efl_event_callback_add(o, ELM_SPINNER_EVENT_DELAY_CHANGED, _font_size_change, win);
o = efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Flip"),
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 1.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 1.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _flip_click, win));
efl_pack(box2, o);
}
{
box2 = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_pack_padding_set(efl_added, 5, 5, 1),
- efl_gfx_size_hint_margin_set(efl_added, 5, 5, 5, 5),
+ efl_gfx_hint_margin_set(efl_added, 5, 5, 5, 5),
efl_pack_align_set(efl_added, 0, 0.5));
efl_pack(box, box2);
if (!images[k].path) break;
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), images[k].path);
o = efl_add(EFL_UI_IMAGE_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 0.0),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
- efl_gfx_size_hint_max_set(efl_added, size),
- efl_gfx_size_hint_min_set(efl_added, size),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 0.0),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
+ efl_gfx_hint_size_max_set(efl_added, size),
+ efl_gfx_hint_size_min_set(efl_added, size),
efl_file_set(efl_added, buf, NULL),
efl_name_set(efl_added, images[k].src_name),
elm_object_tooltip_text_set(efl_added, images[k].src_name));
};
o = elm_colorselector_add(win);
- efl_gfx_size_hint_weight_set(o, 1.0, 0);
- efl_gfx_size_hint_align_set(o, -1.0, 0);
+ efl_gfx_hint_weight_set(o, 1.0, 0);
+ efl_gfx_hint_align_set(o, -1.0, 0);
elm_colorselector_mode_set(o, ELM_COLORSELECTOR_PALETTE);
- efl_gfx_size_hint_max_set(o, maxsz);
+ efl_gfx_hint_size_max_set(o, maxsz);
efl_name_set(o, "myColor");
elm_object_tooltip_text_set(o, "Pick a color to use as variable 'myColor'");
evas_object_smart_callback_add(o, "changed", _colsel_cb, win);
box2 = efl_add(EFL_UI_BOX_STACK_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack_align_set(efl_added, 0.5, 0.5));
efl_pack(flip, box2);
o = box2 = efl_add(EFL_UI_BOX_STACK_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack_align_set(efl_added, 0.5, 0.5));
efl_pack(flip, box2);
hbox = efl_add(EFL_UI_BOX_CLASS, box,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_pack_end(box, efl_added));
radio_group = radio = efl_add(EFL_UI_RADIO_CLASS, hbox,
efl_pack_end(hbox, efl_added),
- efl_gfx_size_hint_weight_set(efl_added, 0, 0),
+ efl_gfx_hint_weight_set(efl_added, 0, 0),
efl_ui_radio_state_value_set(efl_added, 0));
content = efl_add(EFL_UI_BOX_CLASS, hbox,
efl_ui_radio_group_add(efl_added, radio_group),
efl_pack_end(hbox, efl_added),
efl_ui_radio_state_value_set(efl_added, i + 1),
- efl_gfx_size_hint_weight_set(efl_added, 0, 0));
+ efl_gfx_hint_weight_set(efl_added, 0, 0));
content = efl_add(content_class[i], hbox,
efl_pack_end(hbox, efl_added));
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
vbox = efl_add(EFL_UI_BOX_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_content_set(win, efl_added));
hbox = efl_add(EFL_UI_BOX_CLASS, vbox,
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL),
- efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
+ efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack_end(vbox, efl_added));
reset_btn = efl_add(EFL_UI_BUTTON_CLASS, hbox,
efl_pack_end(vbox, scr);
vbox = efl_add(EFL_UI_BOX_CLASS, scr,
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_content_set(scr, efl_added));
radio_group = _create_box_contents(vbox);
efl_content_set(win, bx);
pb = efl_add(EFL_UI_PROGRESSBAR_CLASS, win);
- efl_gfx_size_hint_weight_set(pb, EFL_GFX_SIZE_HINT_EXPAND, 0);
+ efl_gfx_hint_weight_set(pb, EFL_GFX_HINT_EXPAND, 0);
efl_ui_progressbar_pulse_mode_set(pb, EINA_TRUE);
efl_pack(bx, pb);
td->pb1 = pb;
pb = efl_add(EFL_UI_PROGRESSBAR_CLASS, win);
efl_ui_progressbar_pulse_mode_set(pb, EINA_TRUE);
- efl_gfx_size_hint_weight_set(pb, EFL_GFX_SIZE_HINT_EXPAND, 0);
+ efl_gfx_hint_weight_set(pb, EFL_GFX_HINT_EXPAND, 0);
efl_pack(bx, pb);
td->pb4 = pb;
hbx = efl_add(EFL_UI_BOX_CLASS, win);
efl_ui_direction_set(hbx, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(hbx, EFL_GFX_SIZE_HINT_EXPAND, 0);
+ efl_gfx_hint_weight_set(hbx, EFL_GFX_HINT_EXPAND, 0);
efl_pack(bx, hbx);
// FIXME: Needs wheel progressbar class
bt_bx = efl_add(EFL_UI_BOX_CLASS, win);
efl_ui_direction_set(bt_bx, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(bt_bx, EFL_GFX_SIZE_HINT_EXPAND, 0);
+ efl_gfx_hint_weight_set(bt_bx, EFL_GFX_HINT_EXPAND, 0);
efl_pack(bx, bt_bx);
bt = efl_add(EFL_UI_BUTTON_CLASS, win, efl_text_set(efl_added, "Start"));
efl_add(EFL_UI_TEXT_CLASS, bx,
efl_text_set(efl_added, "Clicking the image will play/pause animation."),
efl_text_interactive_editable_set(efl_added, EINA_FALSE),
- efl_gfx_size_hint_weight_set(efl_added, 1, 0),
+ efl_gfx_hint_weight_set(efl_added, 1, 0),
efl_canvas_text_style_set(efl_added, NULL, "DEFAULT='align=center font=Sans font_size=10 color=#fff wrap=word'"),
efl_pack(bx, efl_added)
);
switch (mode)
{
case NONE:
- efl_gfx_size_hint_align_set(data, 0.5, 0.5);
+ efl_gfx_hint_align_set(data, 0.5, 0.5);
for (int i = 0; i < CNT; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
case NONE_BUT_FILL:
- efl_gfx_size_hint_align_set(data, -1, -1);
+ efl_gfx_hint_align_set(data, -1, -1);
for (int i = 0; i < CNT; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
case EQUAL:
- efl_gfx_size_hint_align_set(data, 0.5, 0.5);
+ efl_gfx_hint_align_set(data, 0.5, 0.5);
for (int i = 0; i < CNT; i++)
- efl_gfx_size_hint_weight_set(objects[i], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 1, 1);
break;
case ONE:
- efl_gfx_size_hint_align_set(data, 0.5, 0.5);
+ efl_gfx_hint_align_set(data, 0.5, 0.5);
for (int i = 0; i < 6; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
- efl_gfx_size_hint_weight_set(objects[6], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[6], 1, 1);
for (int i = 7; i < CNT; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
case TWO:
- efl_gfx_size_hint_align_set(data, 0.5, 0.5);
+ efl_gfx_hint_align_set(data, 0.5, 0.5);
for (int i = 0; i < 5; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
- efl_gfx_size_hint_weight_set(objects[5], 1, 1);
- efl_gfx_size_hint_weight_set(objects[6], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[5], 1, 1);
+ efl_gfx_hint_weight_set(objects[6], 1, 1);
for (int i = 7; i < CNT; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
}
}
{
int val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_min_set(objects[3], EINA_SIZE2D(val, val));
+ efl_gfx_hint_size_min_set(objects[3], EINA_SIZE2D(val, val));
}
static void
Eo *win = data, *box;
box = efl_key_wref_get(win, "box");
- efl_gfx_size_hint_margin_set(box, val, val, val, val);
+ efl_gfx_hint_margin_set(box, val, val, val, val);
}
static void
btn = efl_key_wref_get(win, "button");
val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_align_get(btn, NULL, &av);
- efl_gfx_size_hint_align_set(btn, val, av);
+ efl_gfx_hint_align_get(btn, NULL, &av);
+ efl_gfx_hint_align_set(btn, val, av);
}
static void
btn = efl_key_wref_get(win, "button");
val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_align_get(btn, &ah, NULL);
- efl_gfx_size_hint_align_set(btn, ah, val);
+ efl_gfx_hint_align_get(btn, &ah, NULL);
+ efl_gfx_hint_align_set(btn, ah, val);
}
static void
r.x = (rp.w / count) * i;
r.y = (rp.h / count) * i;
- r.size = efl_gfx_size_hint_combined_min_get(sobj);
+ r.size = efl_gfx_hint_size_combined_min_get(sobj);
efl_gfx_entity_geometry_set(sobj, r);
i++;
}
vbox = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
efl_pack_padding_set(vbox, 10, 10, EINA_TRUE);
- efl_gfx_size_hint_margin_set(vbox, 5, 5, 5, 5);
+ efl_gfx_hint_margin_set(vbox, 5, 5, 5, 5);
elm_win_resize_object_add(win, vbox);
/* controls */
f = elm_frame_add(win);
elm_object_text_set(f, "Controls");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 0);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 0);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
/* weights radio group */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
efl_pack(hbox, bx);
chk = o = elm_radio_add(win);
elm_object_text_set(o, "No weight");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, NONE);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
o = elm_radio_add(win);
elm_object_text_set(o, "No weight + box fill");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, NONE_BUT_FILL);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "Equal weights");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, EQUAL);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "One weight only");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, ONE);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "Two weights");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, TWO);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
/* misc */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_check_selected_set(o, 0);
elm_object_text_set(o, "Flow");
efl_event_callback_add(o, EFL_UI_CHECK_EVENT_CHANGED, flow_check_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0);
+ efl_gfx_hint_align_set(o, 0, 0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
elm_check_selected_set(o, 1);
elm_object_text_set(o, "Horizontal");
efl_event_callback_add(o, EFL_UI_CHECK_EVENT_CHANGED, horiz_check_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0);
+ efl_gfx_hint_align_set(o, 0, 0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
elm_check_selected_set(o, 0);
elm_object_text_set(o, "Homogenous");
efl_event_callback_add(o, EFL_UI_CHECK_EVENT_CHANGED, homo_check_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0);
+ efl_gfx_hint_align_set(o, 0, 0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
elm_check_selected_set(o, 0);
elm_object_text_set(o, "Homogenous + Max");
efl_event_callback_add(o, EFL_UI_CHECK_EVENT_CHANGED, max_size_check_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0);
+ efl_gfx_hint_align_set(o, 0, 0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
elm_check_selected_set(o, 0);
elm_object_text_set(o, "Custom layout");
efl_event_callback_add(o, EFL_UI_CHECK_EVENT_CHANGED, custom_check_cb, win);
- efl_gfx_size_hint_align_set(o, 0, 0);
- efl_gfx_size_hint_weight_set(o, 0, 1);
+ efl_gfx_hint_align_set(o, 0, 0);
+ efl_gfx_hint_weight_set(o, 0, 1);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
/* user min size setter */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, user_min_slider_cb, NULL);
elm_slider_min_max_set(o, 0, 250);
elm_slider_inverted_set(o, 1);
/* inner box padding */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, padding_slider_cb, win);
elm_slider_min_max_set(o, 0, 40);
elm_slider_inverted_set(o, 1);
/* outer margin */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, margin_slider_cb, win);
elm_slider_min_max_set(o, 0, 40);
elm_slider_inverted_set(o, 1);
/* Box align */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignv_slider_cb, win);
elm_slider_min_max_set(o, -0.1, 1.0);
elm_slider_step_set(o, 0.1);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 1);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 0);
- efl_gfx_size_hint_min_set(o, EINA_SIZE2D(100, 0));
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 0);
+ efl_gfx_hint_size_min_set(o, EINA_SIZE2D(100, 0));
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignh_slider_cb, win);
elm_slider_min_max_set(o, -0.1, 1.0);
elm_slider_step_set(o, 0.1);
/* Button align */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignv_btn_slider_cb, win);
elm_slider_min_max_set(o, 0.0, 1.0);
elm_slider_step_set(o, 0.1);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 1);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 0);
- efl_gfx_size_hint_min_set(o, EINA_SIZE2D(100, 0));
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 0);
+ efl_gfx_hint_size_min_set(o, EINA_SIZE2D(100, 0));
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignh_btn_slider_cb, win);
elm_slider_min_max_set(o, -0.1, 1.0);
elm_slider_step_set(o, 0.1);
/* contents */
f = elm_frame_add(win);
elm_object_text_set(f, "Contents");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 1);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 1);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
efl_ui_direction_set(efl_added, EFL_UI_DIR_HORIZONTAL));
efl_key_wref_set(win, "box", bx);
efl_pack_padding_set(bx, 10, 10, EINA_TRUE);
- efl_gfx_size_hint_align_set(bx, 0.5, 0.5);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0.5, 0.5);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_content_set(f, bx);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "Btn1");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_align_set(o, 0.5, 0.5);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_align_set(o, 0.5, 0.5);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "Button 2");
- efl_gfx_size_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_weight_set(o, 0, 0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = elm_label_add(win);
elm_label_line_wrap_set(o, ELM_WRAP_WORD);
elm_object_text_set(o, "This label is not marked as fill");
- efl_gfx_size_hint_align_set(o, 0.5, 0.5);
+ efl_gfx_hint_align_set(o, 0.5, 0.5);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "Min size");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
- efl_gfx_size_hint_align_set(o, 0.5, 1.0);
- efl_gfx_size_hint_aspect_set(o, EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 1));
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_align_set(o, 0.5, 1.0);
+ efl_gfx_hint_aspect_set(o, EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 1));
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "Quit!");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
- efl_gfx_size_hint_align_set(o, 0.5, 0.0);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_align_set(o, 0.5, 0.0);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = elm_label_add(win);
elm_label_line_wrap_set(o, ELM_WRAP_WORD);
elm_object_text_set(o, "This label on the other hand<br/>is marked as align=fill.");
- efl_gfx_size_hint_align_set(o, -1, -1);
+ efl_gfx_hint_align_set(o, -1, -1);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_key_wref_set(win, "button", o);
efl_text_set(o, "Button with a quite long text.");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_max_set(o, EINA_SIZE2D(200, 100));
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_size_max_set(o, EINA_SIZE2D(200, 100));
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "BtnA");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
- efl_gfx_size_hint_aspect_set(o, EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 2));
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_aspect_set(o, EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 2));
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "BtnB");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, bx);
efl_text_set(o, "BtnC");
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_content_set(win, efl_added),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(360, 240)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240)));
dt1 = efl_add(EFL_UI_CLOCK_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_HOUR, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_MINUTE, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_AMPM, EINA_FALSE),
efl_pack(bx, efl_added));
dt2 = efl_add(EFL_UI_CLOCK_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_YEAR, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_MONTH, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_DATE, EINA_FALSE),
elm_object_disabled_set(dt2, EINA_TRUE);
dt3 = efl_add(EFL_UI_CLOCK_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_pack(bx, efl_added));
efl_add(EFL_UI_TEXT_CLASS, bx,
efl_text_set(efl_added, "Editable Clock:"),
- efl_gfx_size_hint_weight_set(efl_added, 0.0, 0.0),
- efl_gfx_size_hint_align_set(efl_added, 0, 0.5),
- efl_gfx_size_hint_fill_set(efl_added, EINA_FALSE, EINA_TRUE),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 25)),
+ efl_gfx_hint_weight_set(efl_added, 0.0, 0.0),
+ efl_gfx_hint_align_set(efl_added, 0, 0.5),
+ efl_gfx_hint_fill_set(efl_added, EINA_FALSE, EINA_TRUE),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 25)),
efl_pack(bx, efl_added));
dt4 = efl_add(EFL_UI_CLOCK_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_ui_clock_edit_mode_set(efl_added, EINA_TRUE),
efl_ui_clock_pause_set(efl_added, EINA_TRUE),
efl_pack(bx, efl_added));
page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
efl_file_set(efl_added, buf, "page"),
efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
case LIST:
page = elm_list_add(parent);
case BUTTON:
page = efl_add(EFL_UI_BUTTON_CLASS, parent,
efl_text_set(efl_added, "Button Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
default:
snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
efl_file_set(efl_added, buf, "page"),
efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
}
// Width
fr = elm_frame_add(box);
elm_object_text_set(fr, "Width");
- efl_gfx_size_hint_align_set(fr, -1, -1);
- efl_gfx_size_hint_weight_set(fr, 1, 1);
+ efl_gfx_hint_align_set(fr, -1, -1);
+ efl_gfx_hint_weight_set(fr, 1, 1);
efl_pack(box, fr);
efl_gfx_entity_visible_set(fr, 1);
sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
efl_ui_range_min_max_set(efl_added, 100, 200),
efl_ui_range_value_set(efl_added, params->w),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
width_slider_cb, params),
efl_pack_end(inbox, efl_added));
// Height
fr = elm_frame_add(box);
elm_object_text_set(fr, "Height");
- efl_gfx_size_hint_align_set(fr, -1, -1);
- efl_gfx_size_hint_weight_set(fr, 1, 1);
+ efl_gfx_hint_align_set(fr, -1, -1);
+ efl_gfx_hint_weight_set(fr, 1, 1);
efl_pack(box, fr);
efl_gfx_entity_visible_set(fr, 1);
sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
efl_ui_range_min_max_set(efl_added, 100, 300),
efl_ui_range_value_set(efl_added, params->h),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
height_slider_cb, params),
efl_pack_end(inbox, efl_added));
efl_pack_end(box, efl_added));
sp = efl_add(EFL_UI_SPIN_BUTTON_CLASS, box,
- efl_gfx_size_hint_align_set(efl_added, -1, -1),
+ efl_gfx_hint_align_set(efl_added, -1, -1),
efl_pack_end(box, efl_added));
if (efl_content_count(pager) > 0)
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
panes = efl_add(EFL_UI_PANES_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_ui_panes_split_ratio_set(efl_added, 0.3),
efl_content_set(win, efl_added));
page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
efl_file_set(efl_added, buf, "page"),
efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
case LIST:
page = elm_list_add(parent);
case BUTTON:
page = efl_add(EFL_UI_BUTTON_CLASS, parent,
efl_text_set(efl_added, "Button Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
default:
snprintf(buf, sizeof(buf), "%s/objects/test_pager.edj",
page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
efl_file_set(efl_added, buf, "page"),
efl_text_set(efl_part(efl_added, "text"), "Layout Page"));
- efl_gfx_size_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
}
// Width
fr = elm_frame_add(box);
elm_object_text_set(fr, "Width");
- efl_gfx_size_hint_align_set(fr, -1, -1);
- efl_gfx_size_hint_weight_set(fr, 1, 1);
+ efl_gfx_hint_align_set(fr, -1, -1);
+ efl_gfx_hint_weight_set(fr, 1, 1);
efl_pack(box, fr);
efl_gfx_entity_visible_set(fr, 1);
sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
efl_ui_range_min_max_set(efl_added, 100, 200),
efl_ui_range_value_set(efl_added, params->w),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
width_slider_cb, params),
efl_pack_end(inbox, efl_added));
// Height
fr = elm_frame_add(box);
elm_object_text_set(fr, "Height");
- efl_gfx_size_hint_align_set(fr, -1, -1);
- efl_gfx_size_hint_weight_set(fr, 1, 1);
+ efl_gfx_hint_align_set(fr, -1, -1);
+ efl_gfx_hint_weight_set(fr, 1, 1);
efl_pack(box, fr);
efl_gfx_entity_visible_set(fr, 1);
sl = efl_add(EFL_UI_SLIDER_CLASS, inbox,
efl_ui_range_min_max_set(efl_added, 100, 300),
efl_ui_range_value_set(efl_added, params->h),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
height_slider_cb, params),
efl_pack_end(inbox, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, box,
efl_ui_range_min_max_set(efl_added, 0, 50),
efl_ui_range_value_set(efl_added, params->padding),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(100, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 0)),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
padding_slider_cb, params),
efl_pack_end(box, efl_added));
efl_ui_range_min_max_set(efl_added, 0, 3),
efl_ui_range_value_set(efl_added, params->side_page_num),
efl_ui_direction_set(efl_added, EFL_UI_DIR_VERTICAL),
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
- efl_gfx_size_hint_align_set(efl_added, -1, -1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_align_set(efl_added, -1, -1),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED,
side_page_num_slider_cb, params),
efl_pack_end(box, efl_added));
efl_pack_end(box, efl_added));
sp = efl_add(EFL_UI_SPIN_BUTTON_CLASS, box,
- efl_gfx_size_hint_align_set(efl_added, -1, -1),
+ efl_gfx_hint_align_set(efl_added, -1, -1),
efl_pack_end(box, efl_added));
if (efl_content_count(pager) > 0)
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
panes = efl_add(EFL_UI_PANES_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, 1, 1),
+ efl_gfx_hint_weight_set(efl_added, 1, 1),
efl_ui_panes_split_ratio_set(efl_added, 0.3),
efl_content_set(win, efl_added));
snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
efl_add(EFL_UI_IMAGE_CLASS, table,
efl_file_set(efl_added, buf, NULL),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL),
efl_pack_table(table, efl_added, 0, 0, 4, 5));
// Top Panel
efl_ui_check_selected_set(efl_added, elm_config_scroll_thumbscroll_enabled_get()),
efl_text_set(efl_added, "Enable thumb scroll (temporarily"),
efl_event_callback_add(efl_added, EFL_UI_NSTATE_EVENT_CHANGED, _check_changed, NULL),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
efl_pack(box, efl_added));
check = efl_add(EFL_UI_CHECK_CLASS, box,
efl_text_set(efl_added, "Reset content on toggle"),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
efl_pack(box, efl_added));
btn = efl_add(EFL_UI_BUTTON_CLASS, box,
efl_text_set(efl_added, "toggle"),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
efl_pack(box, efl_added));
table = efl_add(EFL_UI_TABLE_CLASS, box,
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Left - user set min size(110,110)"),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(110, 110)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(110, 110)),
efl_content_set(efl_part(panes, "first"), efl_added)
);
);
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Up - user set min size(10,0)"),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(10, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(10, 0)),
efl_content_set(efl_part(panes_h, "first"), efl_added)
);
efl_ui_panes_part_hint_min_allow_set(efl_part(panes_h, "first"), EINA_TRUE);
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Down - min size 50 40"),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(50, 40)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(50, 40)),
efl_content_set(efl_part(panes_h, "second"), efl_added)
);
Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, win);
snprintf(buf, sizeof(buf), "%s/objects/test.edj", elm_app_data_dir_get());
efl_file_set(layout, buf, "efl_ui_anchor_popup_layout");
- efl_gfx_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
efl_content_set(win, layout);
Eo *efl_ui_popup = efl_add(EFL_UI_ANCHOR_POPUP_CLASS, win);
{
btn = efl_add(EFL_UI_BUTTON_CLASS, win);
efl_text_set(btn, "anchor");
- efl_gfx_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _anchor_set_cb, efl_ui_popup);
snprintf(buf, sizeof(buf), "anchor%d", i+1);
btn = efl_add(EFL_UI_BUTTON_CLASS, win);
efl_text_set(btn, "anchor none");
- efl_gfx_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _anchor_unset_cb, efl_ui_popup);
efl_content_set(efl_part(layout, "anchor_none"), btn);
Eo *table = efl_add(EFL_UI_TABLE_CLASS, efl_ui_popup);
- efl_gfx_size_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Center Align");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(70, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(70, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _center_align_cb, p_data);
efl_pack_table(table, btn, 0, 0, 2, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Top Align");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(70, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(70, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _top_align_cb, p_data);
efl_pack_table(table, btn, 2, 0, 2, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Bottom Align");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(70, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(70, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _bottom_align_cb, p_data);
efl_pack_table(table, btn, 4, 0, 2, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Left Align");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(100, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(100, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _left_align_cb, p_data);
efl_pack_table(table, btn, 0, 1, 3, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Right Align");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(100, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(100, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _right_align_cb, p_data);
efl_pack_table(table, btn, 3, 1, 3, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Position Set");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(100, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(100, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _position_set_cb, p_data);
efl_pack_table(table, btn, 0, 2, 3, 1);
btn = efl_add(EFL_UI_BUTTON_CLASS, efl_ui_popup);
efl_text_set(btn, "Resize");
- efl_gfx_size_hint_min_set(btn, EINA_SIZE2D(100, 35));
+ efl_gfx_hint_size_min_set(btn, EINA_SIZE2D(100, 35));
efl_event_callback_add(btn, EFL_UI_EVENT_CLICKED, _popup_resize_cb, p_data);
efl_pack_table(table, btn, 3, 2, 3, 1);
efl_pack(bx, efl_added),
efl_text_set(efl_added, "percent"),
efl_ui_range_min_max_set(efl_added, 0, 100),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(250, 20))
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(250, 20))
);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
efl_pack(bx, efl_added),
efl_text_set(efl_added, "10-100"),
efl_ui_progressbar_pulse_set(efl_added, EINA_TRUE),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(250, 20)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(250, 20)),
efl_ui_range_min_max_set(efl_added, 10, 100),
efl_ui_range_value_set(efl_added, 10)
);
efl_gfx_entity_size_set(win, EINA_SIZE2D(320, 400));
sc = efl_add(EFL_UI_SCROLLER_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_START, _scroll_start_cb, NULL),
efl_event_callback_add(efl_added, EFL_UI_EVENT_SCROLL_STOP, _scroll_stop_cb, NULL),
efl_content_set(win, efl_added));
bx = efl_add(EFL_UI_BOX_CLASS, sc,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_content_set(sc, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 0)),
efl_pack(bx, efl_added));
for (i = 0; i < 3; i++)
{
efl_add(EFL_UI_BUTTON_CLASS, bx,
efl_text_set(efl_added, "Vertical"),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _bt_clicked, NULL),
efl_pack(bx, efl_added));
}
{
efl_add(EFL_UI_BUTTON_CLASS, bx,
efl_text_set(efl_added, "Vertical"),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _bt_clicked, NULL),
efl_pack(bx, efl_added));
}
gd = efl_add(EFL_UI_TABLE_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0),
efl_pack(bx, efl_added));
efl_add(EFL_CANVAS_RECTANGLE_CLASS, win,
efl_gfx_color_set(efl_added, 0, 0, 0, 0),
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(200, 120)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(200, 120)),
efl_pack_table(gd, efl_added, 0, 0, 1, 1));
sc3 = efl_add(EFL_UI_SCROLLER_CLASS, win,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_pack_table(gd, efl_added, 0, 0, 1, 1));
gd2 = efl_add(EFL_UI_TABLE_CLASS, sc3,
{
efl_add(EFL_UI_BUTTON_CLASS, bx,
efl_text_set(efl_added, "Vertical"),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_FALSE),
efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _bt_clicked, NULL),
efl_pack(bx, efl_added));
}
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 0)),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 0)),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
efl_pack(bx, efl_added));
efl_add(EFL_UI_TEXT_CLASS, bx,
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 0)),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 0)),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, 0.0),
efl_ui_direction_set(efl_added, EFL_UI_DIR_LEFT),
efl_pack(bx, efl_added));
step = _step_size_calculate(0, 9);
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(120, 0)),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(120, 0)),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
efl_ui_range_step_set(efl_added, step),
efl_pack(bx, efl_added));
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(120, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(120, 0)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_range_step_set(efl_added, step),
elm_object_disabled_set(efl_added, EINA_TRUE),
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, hbx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(0, 160)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 160)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_range_step_set(efl_added, step),
efl_ui_range_value_set(efl_added, 70),
efl_pack(hbx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, hbx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(0, 160)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 160)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_range_step_set(efl_added, step),
efl_ui_direction_set(efl_added, EFL_UI_DIR_VERTICAL),
efl_pack(hbx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, hbx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(0, 160)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 160)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_range_value_set(efl_added, 35),
efl_ui_range_step_set(efl_added, step),
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(260, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(260, 0)),
efl_ui_range_min_max_set(efl_added, 0, 150),
efl_ui_range_step_set(efl_added, step),
efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, _slider_changed_cb, NULL),
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 0)),
efl_ui_slider_interval_value_set(efl_added, 0.4, 0.9),
efl_pack(bx, efl_added));
step = _step_size_calculate(0, 9);
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(120, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(120, 0)),
efl_ui_slider_interval_value_set(efl_added, 0.4, 0.9),
efl_ui_range_step_set(efl_added, step),
efl_pack(bx, efl_added));
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(120, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(120, 0)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_slider_interval_value_set(efl_added, 50, 100),
efl_ui_range_step_set(efl_added, step),
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, hbx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(0, 160)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 160)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_slider_interval_value_set(efl_added, 50, 100),
efl_ui_range_step_set(efl_added, step),
efl_pack(hbx, efl_added));
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, hbx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(0, 160)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 160)),
efl_ui_range_min_max_set(efl_added, 10, 145),
efl_ui_slider_interval_value_set(efl_added, 50, 100),
efl_ui_range_step_set(efl_added, step),
efl_pack(bx, efl_added));
efl_add(EFL_UI_SLIDER_INTERVAL_CLASS, bx,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(260, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(260, 0)),
efl_ui_range_min_max_set(efl_added, 0, 600),
efl_ui_slider_interval_value_set(efl_added, 100, 500),
efl_ui_range_step_set(efl_added, step),
page = efl_add(EFL_UI_LAYOUT_CLASS, parent,
efl_file_set(efl_added, buf, "page_layout"),
efl_text_set(efl_part(efl_added, "text"), text),
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE));
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE));
return page;
}
efl_content_set(win, efl_added));
navi = elm_naviframe_add(layout);
- efl_gfx_size_hint_weight_set(navi, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_align_set(navi, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(navi, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_align_set(navi, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_content_set(efl_part(layout, "menu"), navi);
list = elm_list_add(navi);
- efl_gfx_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_list_select_mode_set(list, ELM_OBJECT_SELECT_MODE_ALWAYS);
elm_naviframe_item_push(navi, "Properties", NULL, NULL, list, NULL);
efl_gfx_entity_visible_set(list, EINA_TRUE);
tp = efl_add(EFL_UI_TAB_PAGER_CLASS, layout,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_fill_set(efl_added, EINA_TRUE, EINA_TRUE),
efl_ui_pager_page_size_set(efl_added, EINA_SIZE2D(-1, -1)),
efl_ui_pager_padding_set(efl_added, 20),
efl_content_set(efl_part(layout, "tab_pager"), efl_added));
switch (mode)
{
case NONE:
- efl_gfx_size_hint_align_set(table, 0.5, 0.5);
+ efl_gfx_hint_align_set(table, 0.5, 0.5);
for (int i = 0; i < 7; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
case NONE_BUT_FILL:
- efl_gfx_size_hint_fill_set(table, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(table, EINA_TRUE, EINA_TRUE);
for (int i = 0; i < 7; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
break;
case EQUAL:
- efl_gfx_size_hint_align_set(table, 0.5, 0.5);
+ efl_gfx_hint_align_set(table, 0.5, 0.5);
for (int i = 0; i < 7; i++)
- efl_gfx_size_hint_weight_set(objects[i], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 1, 1);
break;
case ONE:
- efl_gfx_size_hint_align_set(table, 0.5, 0.5);
+ efl_gfx_hint_align_set(table, 0.5, 0.5);
for (int i = 0; i < 6; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
- efl_gfx_size_hint_weight_set(objects[6], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[6], 1, 1);
break;
case TWO:
- efl_gfx_size_hint_align_set(table, 0.5, 0.5);
+ efl_gfx_hint_align_set(table, 0.5, 0.5);
for (int i = 0; i < 5; i++)
- efl_gfx_size_hint_weight_set(objects[i], 0, 0);
- efl_gfx_size_hint_weight_set(objects[5], 1, 1);
- efl_gfx_size_hint_weight_set(objects[6], 1, 1);
+ efl_gfx_hint_weight_set(objects[i], 0, 0);
+ efl_gfx_hint_weight_set(objects[5], 1, 1);
+ efl_gfx_hint_weight_set(objects[6], 1, 1);
break;
case CUSTOM:
efl_object_override(table, &custom_layout_ops);
{
int val = elm_slider_value_get(event->object);
for (int i = 0; i < 6; i++)
- efl_gfx_size_hint_min_set(objects[i], EINA_SIZE2D(val, val));
+ efl_gfx_hint_size_min_set(objects[i], EINA_SIZE2D(val, val));
}
static void
margin_slider_cb(void *data, const Efl_Event *event)
{
int val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_margin_set(data, val, val, val, val);
+ efl_gfx_hint_margin_set(data, val, val, val, val);
}
static void
{
int val = elm_slider_value_get(event->object);
for (int i = 1; i < 7; i++)
- efl_gfx_size_hint_margin_set(data, val, val, val, val);
+ efl_gfx_hint_margin_set(data, val, val, val, val);
}
static void
double ax, val;
val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_align_get(objects[1], &ax, NULL);
- efl_gfx_size_hint_align_set(objects[1], ax, val);
+ efl_gfx_hint_align_get(objects[1], &ax, NULL);
+ efl_gfx_hint_align_set(objects[1], ax, val);
}
static void
double ay, val;
val = elm_slider_value_get(event->object);
- efl_gfx_size_hint_align_get(objects[1], NULL, &ay);
- efl_gfx_size_hint_align_set(objects[1], val, ay);
+ efl_gfx_hint_align_get(objects[1], NULL, &ay);
+ efl_gfx_hint_align_set(objects[1], val, ay);
}
static void
m.x = g.x + c * g.w / cols + (cs * g.w / cols - g.x) / 2;
m.y = g.y + r * g.h / rows + (rs * g.h / rows - g.y) / 2;
- m.size = efl_gfx_size_hint_combined_min_get(item);
+ m.size = efl_gfx_hint_size_combined_min_get(item);
efl_gfx_entity_geometry_set(item, m);
gmw = MAX(gmw, m.w);
eina_iterator_free(it);
end:
- efl_gfx_size_hint_min_set(pack, EINA_SIZE2D(gmw * cols, gmh * rows));
+ efl_gfx_hint_size_min_set(pack, EINA_SIZE2D(gmw * cols, gmh * rows));
}
void
vbox = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
efl_pack_padding_set(vbox, 10, 10, EINA_TRUE);
- efl_gfx_size_hint_weight_set(vbox, 1, 1);
- efl_gfx_size_hint_margin_set(vbox, 5, 5, 5, 5);
+ efl_gfx_hint_weight_set(vbox, 1, 1);
+ efl_gfx_hint_margin_set(vbox, 5, 5, 5, 5);
elm_win_resize_object_add(win, vbox);
/* controls */
f = elm_frame_add(win);
elm_object_text_set(f, "Controls");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 0);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 0);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
/* weights radio group */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
efl_pack(hbox, bx);
chk = o = elm_radio_add(win);
elm_object_text_set(o, "No weight");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, NONE);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
o = elm_radio_add(win);
elm_object_text_set(o, "No weight + table fill");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, NONE_BUT_FILL);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "Equal weights");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, EQUAL);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "One weight only");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, ONE);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "Two weights");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, TWO);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
o = elm_radio_add(win);
elm_object_text_set(o, "Custom layout");
efl_event_callback_add(o, EFL_UI_RADIO_EVENT_CHANGED, weights_cb, table);
- efl_gfx_size_hint_align_set(o, 0, 0.5);
+ efl_gfx_hint_align_set(o, 0, 0.5);
elm_radio_state_value_set(o, CUSTOM);
elm_radio_group_add(o, chk);
efl_pack(bx, o);
/* min size setter */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, user_min_slider_cb, NULL);
elm_slider_min_max_set(o, 0, 250);
elm_slider_inverted_set(o, 1);
/* inner box padding */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, padding_slider_cb, table);
elm_slider_min_max_set(o, 0, 40);
elm_slider_inverted_set(o, 1);
/* outer margin */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 0, 1);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 0, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, margin_slider_cb, table);
elm_slider_min_max_set(o, 0, 40);
elm_slider_inverted_set(o, 1);
/* button margins */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.0fpx");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, btnmargins_slider_cb, table);
elm_slider_min_max_set(o, 0, 40);
elm_slider_inverted_set(o, 1);
/* button1 aligns */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 0);
- efl_gfx_size_hint_align_set(o, 0.5, -1);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, -1);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignv_slider_cb, NULL);
elm_slider_min_max_set(o, 0, 1);
elm_slider_value_set(o, 0.3);
elm_slider_indicator_format_set(o, "%.1f");
elm_slider_indicator_show_set(o, 1);
elm_slider_horizontal_set(o, 1);
- efl_gfx_size_hint_align_set(o, -1, -1);
- efl_gfx_size_hint_weight_set(o, 1, 0);
+ efl_gfx_hint_align_set(o, -1, -1);
+ efl_gfx_hint_weight_set(o, 1, 0);
efl_event_callback_add(o, EFL_UI_SLIDER_EVENT_CHANGED, alignh_slider_cb, NULL);
elm_slider_min_max_set(o, 0, 1);
elm_slider_value_set(o, 0.3);
/* ro info */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
o = elm_label_add(win);
o = elm_label_add(win);
efl_event_callback_add(table, EFL_CONTAINER_EVENT_CONTENT_ADDED, child_evt_cb, o);
efl_event_callback_add(table, EFL_CONTAINER_EVENT_CONTENT_REMOVED, child_evt_cb, o);
- efl_gfx_size_hint_align_set(o, 0.5, 0);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, 0);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
/* contents */
f = elm_frame_add(win);
elm_object_text_set(f, "Contents");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 1);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 1);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
- efl_gfx_size_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_content_set(f, table);
efl_gfx_entity_visible_set(table, 1);
objects[i++] = o = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win);
- efl_gfx_size_hint_min_set(o, EINA_SIZE2D(10, 10));
+ efl_gfx_hint_size_min_set(o, EINA_SIZE2D(10, 10));
efl_gfx_color_set(o, 64, 96, 128, 255);
efl_pack_table(table, o, 0, 0, 3, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 1");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
- efl_gfx_size_hint_align_set(o, 0.3, 0.3);
- efl_gfx_size_hint_max_set(o, EINA_SIZE2D(100, 100));
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_align_set(o, 0.3, 0.3);
+ efl_gfx_hint_size_max_set(o, EINA_SIZE2D(100, 100));
efl_pack_table(table, o, 0, 0, 1, 1);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 2");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
efl_pack_table(table, o, 1, 0, 1, 1);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 3");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
efl_pack_table(table, o, 2, 0, 1, 1);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 4");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
efl_pack_table(table, o, 0, 1, 2, 1);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 5");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
efl_pack_table(table, o, 2, 1, 1, 2);
efl_gfx_entity_visible_set(o, 1);
objects[i++] = o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, "Button 6");
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(o, EINA_TRUE, EINA_TRUE);
efl_pack_table(table, o, 0, 2, 2, 1);
efl_gfx_entity_visible_set(o, 1);
Eo *table = data;
Eo *o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, btn_text("appended"));
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_event_callback_add(o, EFL_UI_EVENT_CLICKED, remove_cb, NULL);
elm_object_tooltip_text_set(o, "Click to unpack");
efl_pack_end(table, o);
vbox = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
efl_pack_padding_set(vbox, 10, 10, EINA_TRUE);
- efl_gfx_size_hint_margin_set(vbox, 5, 5, 5, 5);
+ efl_gfx_hint_margin_set(vbox, 5, 5, 5, 5);
elm_win_resize_object_add(win, vbox);
efl_gfx_entity_visible_set(vbox, 1);
/* controls */
f = elm_frame_add(win);
elm_object_text_set(f, "Controls");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 0);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 0);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
/* ro info */
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_ui_direction_set(efl_added, EFL_UI_DIR_DOWN));
- efl_gfx_size_hint_align_set(bx, 0, 0.5);
- efl_gfx_size_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bx, 1, 1);
+ efl_gfx_hint_align_set(bx, 0, 0.5);
+ efl_gfx_hint_fill_set(bx, EINA_FALSE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bx, 1, 1);
efl_pack(hbox, bx);
efl_gfx_entity_visible_set(bx, 1);
o = elm_label_add(win);
efl_event_callback_add(table, EFL_CONTAINER_EVENT_CONTENT_ADDED, child_evt_cb, o);
efl_event_callback_add(table, EFL_CONTAINER_EVENT_CONTENT_REMOVED, child_evt_cb, o);
- efl_gfx_size_hint_align_set(o, 0.5, 0);
- efl_gfx_size_hint_weight_set(o, 1, 1);
+ efl_gfx_hint_align_set(o, 0.5, 0);
+ efl_gfx_hint_weight_set(o, 1, 1);
efl_pack(bx, o);
efl_gfx_entity_visible_set(o, 1);
/* contents */
f = elm_frame_add(win);
elm_object_text_set(f, "Contents");
- efl_gfx_size_hint_align_set(f, -1, -1);
- efl_gfx_size_hint_weight_set(f, 1, 1);
+ efl_gfx_hint_align_set(f, -1, -1);
+ efl_gfx_hint_weight_set(f, 1, 1);
efl_pack(vbox, f);
efl_gfx_entity_visible_set(f, 1);
efl_pack_table_columns_set(table, 4);
efl_pack_table_direction_set(table, EFL_UI_DIR_RIGHT, EFL_UI_DIR_DOWN);
- efl_gfx_size_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_content_set(f, table);
efl_gfx_entity_visible_set(table, 1);
o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, btn_text(NULL));
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_event_callback_add(o, EFL_UI_EVENT_CLICKED, remove_cb, NULL);
efl_pack(table, o);
efl_gfx_entity_visible_set(o, 1);
o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, btn_text(NULL));
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_event_callback_add(o, EFL_UI_EVENT_CLICKED, remove_cb, NULL);
efl_pack(table, o);
efl_gfx_entity_visible_set(o, 1);
o = efl_add(EFL_UI_BUTTON_CLASS, table);
efl_text_set(o, btn_text(NULL));
- efl_gfx_size_hint_weight_set(o, 0, 0);
- efl_gfx_size_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
+ efl_gfx_hint_weight_set(o, 0, 0);
+ efl_gfx_hint_fill_set(o, EINA_FALSE, EINA_FALSE);
efl_event_callback_add(o, EFL_UI_EVENT_CLICKED, remove_cb, NULL);
efl_pack(table, o);
efl_gfx_entity_visible_set(o, 1);
box = elm_box_add(win);
elm_box_horizontal_set(box, EINA_FALSE);
- efl_gfx_size_hint_weight_set(box, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(box, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_gfx_entity_visible_set(box, EINA_TRUE);
txtpath = efl_add(EFL_UI_TEXTPATH_CLASS, win);
hbox = elm_box_add(win);
elm_box_horizontal_set(hbox, EINA_TRUE);
- efl_gfx_size_hint_weight_set(hbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(hbox, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_gfx_entity_visible_set(hbox, EINA_TRUE);
elm_box_pack_end(box, hbox);
hbox = elm_box_add(win);
elm_box_horizontal_set(hbox, EINA_TRUE);
- efl_gfx_size_hint_weight_set(hbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(hbox, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_gfx_entity_visible_set(hbox, EINA_TRUE);
elm_box_pack_end(box, hbox);
elm_object_text_set(sld, "Angle");
elm_slider_min_max_set(sld, 0, 360);
elm_slider_value_set(sld, 0);
- efl_gfx_size_hint_align_set(sld, 0.5, EVAS_HINT_FILL);
- efl_gfx_size_hint_weight_set(sld, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_min_set(sld, EINA_SIZE2D(150, 0));
+ efl_gfx_hint_align_set(sld, 0.5, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(sld, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_size_min_set(sld, EINA_SIZE2D(150, 0));
efl_event_callback_add(sld, EFL_UI_SLIDER_EVENT_CHANGED, _angle_changed_cb, txtpath);
elm_box_pack_end(hbox, sld);
efl_gfx_entity_visible_set(sld, EINA_TRUE);
elm_object_text_set(sld, "Slice No");
elm_slider_min_max_set(sld, 20, 300);
elm_slider_value_set(sld, 99);
- efl_gfx_size_hint_align_set(sld, 0.5, EVAS_HINT_FILL);
- efl_gfx_size_hint_weight_set(sld, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_min_set(sld, EINA_SIZE2D(150, 0));
+ efl_gfx_hint_align_set(sld, 0.5, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(sld, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_size_min_set(sld, EINA_SIZE2D(150, 0));
efl_event_callback_add(sld, EFL_UI_SLIDER_EVENT_CHANGED, _slice_no_changed_cb, txtpath);
elm_box_pack_end(hbox, sld);
efl_gfx_entity_visible_set(sld, EINA_TRUE);
hbox = elm_box_add(win);
elm_box_horizontal_set(hbox, EINA_TRUE);
- efl_gfx_size_hint_weight_set(hbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(hbox, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_gfx_entity_visible_set(hbox, EINA_TRUE);
elm_box_pack_end(box, hbox);
// Notes:
// - All objects have 0 weight, this makes the window not resizable.
- // - With EO APIs, efl_gfx_size_hint_min_set() is safe to call as EFL will
+ // - With EO APIs, efl_gfx_hint_size_min_set() is safe to call as EFL will
// only set the restricted min size (and combine them for calculation).
lb = efl_add(EFL_UI_TEXT_CLASS, dia,
efl_text_set(efl_added, "This is a non-resizable dialog."),
- efl_gfx_size_hint_min_set(efl_added, size),
- efl_gfx_size_hint_max_set(efl_added, size),
- efl_gfx_size_hint_weight_set(efl_added, 0, 0));
+ efl_gfx_hint_size_min_set(efl_added, size),
+ efl_gfx_hint_size_max_set(efl_added, size),
+ efl_gfx_hint_weight_set(efl_added, 0, 0));
// Swallow in the label as the default content, this will make it visible.
efl_content_set(dia, lb);
Eo *dia = ev->object;
Eo *lbl = data;
- cmin = efl_gfx_size_hint_combined_min_get(dia);
- min = efl_gfx_size_hint_min_get(dia);
- max = efl_gfx_size_hint_max_get(dia);
+ cmin = efl_gfx_hint_size_combined_min_get(dia);
+ min = efl_gfx_hint_size_min_get(dia);
+ max = efl_gfx_hint_size_max_get(dia);
sz = efl_gfx_entity_size_get(dia);
sprintf(buf, "This is a dialog with min/max size<br>"
efl_event_callback_add(dia, EFL_GFX_ENTITY_EVENT_CHANGE_SIZE_HINTS, _size_update, lb);
efl_event_callback_add(dia, EFL_GFX_ENTITY_EVENT_RESIZE, _size_update, lb);
elm_object_text_set(lb, "This is a Dialog Window");
- efl_gfx_size_hint_weight_set(lb, 1.0, 1.0);
+ efl_gfx_hint_weight_set(lb, 1.0, 1.0);
// Swallow in the label as the default content, this will make it visible.
efl_content_set(dia, lb);
// Set min & max size (app-side)
- efl_gfx_size_hint_min_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(0), ELM_SCALE_SIZE(100)));
- efl_gfx_size_hint_max_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(800), ELM_SCALE_SIZE(600)));
+ efl_gfx_hint_size_min_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(0), ELM_SCALE_SIZE(100)));
+ efl_gfx_hint_size_max_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(800), ELM_SCALE_SIZE(600)));
}
static void
efl_event_callback_add(dia, EFL_GFX_ENTITY_EVENT_CHANGE_SIZE_HINTS, _size_update, lb);
efl_event_callback_add(dia, EFL_GFX_ENTITY_EVENT_RESIZE, _size_update, lb);
elm_object_text_set(lb, "This is a Centered Dialog Window");
- efl_gfx_size_hint_weight_set(lb, 1.0, 1.0);
+ efl_gfx_hint_weight_set(lb, 1.0, 1.0);
// Swallow in the label as the default content, this will make it visible.
efl_content_set(dia, lb);
// Set min & max size (app-side)
- efl_gfx_size_hint_min_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(0), ELM_SCALE_SIZE(100)));
- efl_gfx_size_hint_max_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(800), ELM_SCALE_SIZE(600)));
+ efl_gfx_hint_size_min_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(0), ELM_SCALE_SIZE(100)));
+ efl_gfx_hint_size_max_set(dia, EINA_SIZE2D(ELM_SCALE_SIZE(800), ELM_SCALE_SIZE(600)));
efl_ui_win_center(dia, EINA_TRUE, EINA_TRUE);
}
efl_content_set(win, efl_added));
efl_add(EFL_UI_CLOCK_CLASS, bx,
- efl_gfx_size_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
- efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
+ efl_gfx_hint_weight_set(efl_added, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
+ efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_HOUR, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_MINUTE, EINA_FALSE),
efl_ui_clock_field_visible_set(efl_added, EFL_UI_CLOCK_TYPE_AMPM, EINA_FALSE),
win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
efl_text_set(efl_added, "Efl.Win.Indicator"),
- efl_gfx_size_hint_max_set(efl_added, EINA_SIZE2D(300, -1)),
+ efl_gfx_hint_size_max_set(efl_added, EINA_SIZE2D(300, -1)),
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
efl_event_callback_add(win, EFL_EVENT_DEL, _win_del, indicator);
efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 360));
Eo *bx = efl_add(EFL_UI_BOX_CLASS, win,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(300, 0)),
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(300, 0)),
efl_content_set(win, efl_added));
efl_add(EFL_UI_BUTTON_CLASS, win,
elm_win_alpha_set(win2, EINA_TRUE);
evas_object_size_hint_weight_set(elm_win_inlined_image_object_get(win2), EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(elm_win_inlined_image_object_get(win2), EVAS_HINT_FILL, EVAS_HINT_FILL);
- efl_gfx_size_hint_margin_set(elm_win_inlined_image_object_get(win2), 20, 20, 20, 20);
+ efl_gfx_hint_margin_set(elm_win_inlined_image_object_get(win2), 20, 20, 20, 20);
efl_pack(box, elm_win_inlined_image_object_get(win2));
evas_object_resize(win2, 300, 200);
efl::ui::Box box_initial(instantiate, win);
box_initial.direction_set(EFL_UI_DIR_HORIZONTAL);
- box_initial.hint_weight_set(EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ box_initial.hint_weight_set(EFL_GFX_HINT_EXPAND, 0.0);
box.pack_end(box_initial);
efl::ui::Button btn(instantiate, win);
efl::ui::Box box_gap(instantiate, win);
box_gap.direction_set(EFL_UI_DIR_HORIZONTAL);
- box_gap.hint_weight_set(EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ box_gap.hint_weight_set(EFL_GFX_HINT_EXPAND, 0.0);
box.pack_end(box_gap);
efl::ui::Button btn4(instantiate, win);
up.autorepeat_enabled_set(true);
up.autorepeat_initial_timeout_set(1.0);
up.autorepeat_gap_timeout_set(0.5);
- up.hint_weight_set(EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ up.hint_weight_set(EFL_GFX_HINT_EXPAND, 0.0);
up.hint_fill_set(true, false);
up.hint_align_set(0.5, 0.0);
box.pack_end(up);
left.autorepeat_enabled_set(true);
left.autorepeat_initial_timeout_set(1.0);
left.autorepeat_gap_timeout_set(0.5);
- left.hint_weight_set(0.0, EFL_GFX_SIZE_HINT_EXPAND);
+ left.hint_weight_set(0.0, EFL_GFX_HINT_EXPAND);
left.hint_fill_set(false, true);
left.hint_align_set(0.0, 0.5);
box_inferior.pack_end(left);
right.autorepeat_enabled_set(true);
right.autorepeat_initial_timeout_set(1.0);
right.autorepeat_gap_timeout_set(0.5);
- right.hint_weight_set(0.0, EFL_GFX_SIZE_HINT_EXPAND);
+ right.hint_weight_set(0.0, EFL_GFX_HINT_EXPAND);
right.hint_fill_set(false, true);
right.hint_align_set(0.0, 0.5);
box_inferior.pack_end(right);
down.autorepeat_enabled_set(true);
down.autorepeat_initial_timeout_set(1.0);
down.autorepeat_gap_timeout_set(0.5);
- down.hint_weight_set(EFL_GFX_SIZE_HINT_EXPAND, 0.0);
+ down.hint_weight_set(EFL_GFX_HINT_EXPAND, 0.0);
down.hint_fill_set(true, false);
down.hint_align_set(0.5, 0.0);
box.pack_end(down);
{
Eo* obj = efl_add(klass, parent);
if (dir != EFL_UI_DIR_DEFAULT) efl_ui_direction_set(obj, dir);
- efl_gfx_size_hint_weight_set(obj, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(obj, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(obj, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_fill_set(obj, EINA_TRUE, EINA_TRUE);
return obj;
}
elm_win_resize_object_add(win, box);
Eo *btn = efl_add(EFL_UI_BUTTON_CLASS, box);
- efl_gfx_size_hint_weight_set(btn, 0.3, 0.3);
- efl_gfx_size_hint_fill_set(btn, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(btn, 0.3, 0.3);
+ efl_gfx_hint_fill_set(btn, EINA_TRUE, EINA_TRUE);
efl_text_set(btn, "BUTTON");
efl_pack_end(box, btn);
wbox = efl_add(EFL_UI_BOX_CLASS, win);
efl_ui_direction_set(wbox, EFL_UI_DIR_VERTICAL);
- efl_gfx_size_hint_weight_set(wbox, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(wbox, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(wbox, EFL_GFX_HINT_EXPAND, EFL_GFX_HINT_EXPAND);
+ efl_gfx_hint_fill_set(wbox, EINA_TRUE, EINA_TRUE);
if ((argv[1] != NULL) &&
(!strcmp(argv[1], "empty")))
emptystyle = EINA_TRUE;
priv_d.list = list = efl_add(EFL_UI_LIST_CLASS, wbox);
- efl_gfx_size_hint_weight_set(list, EFL_GFX_SIZE_HINT_EXPAND, 0.9);
+ efl_gfx_hint_weight_set(list, EFL_GFX_HINT_EXPAND, 0.9);
efl_event_callback_add(list, EFL_UI_EVENT_SELECTED, _list_selected, NULL);
efl_event_callback_add(list, EFL_UI_EVENT_UNSELECTED, _list_unselected, NULL);
efl_ui_direction_set(ibox, EFL_UI_DIR_HORIZONTAL);
txt = efl_add(EFL_UI_TEXT_CLASS, ibox);
- efl_gfx_size_hint_weight_set(txt, 0.95, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(txt, 0.95, EFL_GFX_HINT_EXPAND);
efl_text_halign_set(txt, 0.2);
efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
snprintf(buf, sizeof(buf), "empty style item [%d]", i);
efl_pack_end(ibox, txt);
check = efl_add(EFL_UI_CHECK_CLASS, ibox);
- efl_gfx_size_hint_weight_set(check, 0.05, EFL_GFX_SIZE_HINT_EXPAND);
+ efl_gfx_hint_weight_set(check, 0.05, EFL_GFX_HINT_EXPAND);
efl_pack_end(ibox, check);
if (i % 2)
/*select mode */
txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
- efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
+ efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01);
efl_text_halign_set(txt, 0.02);
efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
efl_text_set(txt, "Select Mode");
bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
+ efl_gfx_hint_weight_set(bbox, EFL_GFX_HINT_EXPAND, 0.05);
select_radio = radio = efl_add(EFL_UI_RADIO_CLASS, wbox);
efl_text_set(radio, "SINGLE");
/* scroll mode */
txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
- efl_gfx_size_hint_weight_set(txt, EFL_GFX_SIZE_HINT_EXPAND, 0.01);
+ efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01);
efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
efl_text_halign_set(txt, 0.02);
efl_text_set(txt, "Item Scroll");
priv_d.slider = slider = efl_add(EFL_UI_SLIDER_CLASS, wbox);
efl_ui_direction_set(slider, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(slider, 0.0, 0.05);
- efl_gfx_size_hint_align_set(slider, 0.5, 0.5);
- efl_gfx_size_hint_min_set(slider, EINA_SIZE2D(380, 20));
+ efl_gfx_hint_weight_set(slider, 0.0, 0.05);
+ efl_gfx_hint_align_set(slider, 0.5, 0.5);
+ efl_gfx_hint_size_min_set(slider, EINA_SIZE2D(380, 20));
efl_ui_range_min_max_set(slider, 0.0, 1.0);
efl_pack_end(wbox, slider);
bbox = efl_add(EFL_UI_BOX_CLASS, wbox);
efl_ui_direction_set(bbox, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(bbox, EFL_GFX_SIZE_HINT_EXPAND, 0.05);
+ efl_gfx_hint_weight_set(bbox, EFL_GFX_HINT_EXPAND, 0.05);
rbox = efl_add(EFL_UI_BOX_CLASS, bbox);
efl_ui_direction_set(rbox, EFL_UI_DIR_VERTICAL);
anim_radio = radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
- efl_gfx_size_hint_align_set(radio, 0.5, 0.5);
+ efl_gfx_hint_align_set(radio, 0.5, 0.5);
efl_text_set(radio, "ANIMATION OFF");
efl_ui_radio_state_value_set(radio, 0);
efl_event_callback_add(radio, EFL_UI_RADIO_EVENT_CHANGED, _anim_radio_changed, NULL);
efl_pack_end(rbox, radio);
radio = efl_add(EFL_UI_RADIO_CLASS, rbox);
- efl_gfx_size_hint_align_set(radio, 0.5, 0.5);
+ efl_gfx_hint_align_set(radio, 0.5, 0.5);
efl_text_set(radio, "ANIMATION ON");
efl_ui_radio_state_value_set(radio, 1);
efl_ui_radio_group_add(radio, anim_radio);
scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
efl_text_set(scrl_btn, "Scroll Item");
- efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5);
- efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25));
+ efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
+ efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL);
efl_pack_end(rbox, scrl_btn);
scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
efl_text_set(scrl_btn, "Scroll Item Align");
- efl_gfx_size_hint_align_set(scrl_btn, 0.5, 0.5);
- efl_gfx_size_hint_min_set(scrl_btn, EINA_SIZE2D(200, 25));
+ efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
+ efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL);
efl_pack_end(rbox, scrl_btn);
sl6.direction_set(EFL_UI_DIR_HORIZONTAL);
sl6.range_min_max_set(0, 10);
sl6.hint_fill_set(false, true);
- sl6.hint_weight_set(0, EFL_GFX_SIZE_HINT_EXPAND);
+ sl6.hint_weight_set(0, EFL_GFX_HINT_EXPAND);
bx.pack_end(sl6);
efl::ui::Slider sl7(instantiate, win);
printf("\talign hints: h(%f), v(%f)\n",
x, y);
- cmin = efl_gfx_size_hint_combined_min_get(rect);
+ cmin = efl_gfx_hint_size_combined_min_get(rect);
printf("\tmin. size hints: h(%d), v(%d)\n",
cmin.w, cmin.h);
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#include "edje_private.h"
ed->recalc_hints = EINA_FALSE;
edje_object_size_min_calc(ed->obj, &min.w, &min.h);
- efl_gfx_size_hint_restricted_min_set(ed->obj, min);
+ efl_gfx_hint_size_restricted_min_set(ed->obj, min);
}
if (!ed->collection) return;
efl_canvas_group_need_recalculate_set(ep->object, 1);
efl_canvas_group_calculate(ep->object);
- lmin = efl_gfx_size_hint_restricted_min_get(ep->object);
+ lmin = efl_gfx_hint_size_restricted_min_get(ep->object);
if (((Edje_Part_Description_Table *)chosen_desc)->table.min.h)
{
if (lmin.w > minw) minw = lmin.w;
efl_canvas_group_need_recalculate_set(ep->object, 1);
efl_canvas_group_calculate(ep->object);
- lmin = efl_gfx_size_hint_restricted_min_get(ep->object);
+ lmin = efl_gfx_hint_size_restricted_min_get(ep->object);
if (((Edje_Part_Description_Box *)chosen_desc)->box.min.h)
{
if (lmin.w > minw) minw = lmin.w;
/* Add here all the required ifdef for any @protected method */
#ifdef EFL_BUILD
# define EFL_PACK_LAYOUT_PROTECTED
-# define EFL_GFX_SIZE_HINT_PROTECTED
+# define EFL_GFX_HINT_PROTECTED
#endif
/**
#include "interfaces/efl_gfx_gradient_radial.eo.h"
#include "interfaces/efl_gfx_filter.eo.h"
#include "interfaces/efl_gfx_blur.eo.h"
-#include "interfaces/efl_gfx_size_hint.eo.h"
+#include "interfaces/efl_gfx_hint.eo.h"
#include "interfaces/efl_gfx_color_class.eo.h"
#include "interfaces/efl_gfx_text_class.eo.h"
#include "interfaces/efl_gfx_size_class.eo.h"
Note that setting the actual size of an object might be the job
of its container, so this function might have no effect.
- Look at @Efl.Gfx.Size_Hint instead, when manipulating
+ Look at @Efl.Gfx.Hint instead, when manipulating
widgets.
]]
}
import eina_types;
import efl_gfx_types;
-const Efl.Gfx.Size_Hint_Expand: double = 1.0;
- [[Use with @Efl.Gfx.Size_Hint.hint_weight.]]
+const Efl.Gfx.Hint_Expand: double = 1.0;
+ [[Use with @Efl.Gfx.Hint.hint_weight.]]
-interface @beta Efl.Gfx.Size_Hint
+interface @beta Efl.Gfx.Hint
{
- [[Efl graphics size hint interface]]
+ [[Efl graphics hint interface]]
event_prefix: efl_gfx_entity;
methods {
@property hint_aspect {
@image html aspect-control-horizontal.png
*/
values {
- mode: Efl.Gfx.Size_Hint_Aspect; [[Mode of interpretation.]]
+ mode: Efl.Gfx.Hint_Aspect; [[Mode of interpretation.]]
sz: Eina.Size2D; [[Base size to use for aspecting.]]
/* FIXME: do we want min/max like Edje instead??
*/
}
}
- @property hint_max {
+ @property hint_size_max {
[[Hints on the object's maximum size.
This is not a size enforcement in any way, it's just a hint
queried by managers.
Note: Smart objects (such as elementary) can have their own
- size hint policy. So calling this API may or may not affect
+ hint policy. So calling this API may or may not affect
the size of smart objects.
]]
values {
default for canvas objects).]]
}
}
- @property hint_min {
+ @property hint_size_min {
[[Hints on the object's minimum size.
This is not a size enforcement in any way, it's just a hint
sz: Eina.Size2D; [[Minimum size (hint) in pixels.]]
}
}
- @property hint_restricted_min {
+ @property hint_size_restricted_min {
[[Internal hints for an object's minimum size.
This is not a size enforcement in any way, it's just a hint
Note: This property is internal and meant for widget developers to
define the absolute minimum size of the object. EFL itself sets
this size internally, so any change to it from an application
- might be ignored. Use @.hint_min instead.
+ might be ignored. Use @.hint_size_min instead.
]]
set @protected {
[[This function is protected as it is meant for widgets to indicate
sz: Eina.Size2D; [[Minimum size (hint) in pixels.]]
}
}
- @property hint_combined_min {
- [[Read-only minimum size combining both @.hint_restricted_min and
- @.hint_min size hints.
+ @property hint_size_combined_min {
+ [[Read-only minimum size combining both @.hint_size_restricted_min and
+ @.hint_size_min hints.
- @.hint_restricted_min is intended for mostly internal usage
- and widget developers, and @.hint_min is intended to be
- set from application side. @.hint_combined_min combines both values
+ @.hint_size_restricted_min is intended for mostly internal usage
+ and widget developers, and @.hint_size_min is intended to be
+ set from application side. @.hint_size_combined_min combines both values
by taking their repective maximum (in both width and height), and
is used internally to get an object's minimum size.
]]
placing the object accordingly.
Note: Smart objects (such as elementary) can have their own
- size hint policy. So calling this API may or may not affect
+ hint policy. So calling this API may or may not affect
the size of smart objects.
]]
/*
This is a hint on how a container object should resize a given
child within its area. Containers may adhere to the simpler
logic of just expanding the child object's dimensions to fit
- its own (see the @Efl.Gfx.Size_Hint_Expand helper weight macro) or
+ its own (see the @Efl.Gfx.Hint_Expand helper weight macro) or
the complete one of taking each child's weight hint as real
weights to how much of its size to allocate for them in each
axis. A container is supposed to, after normalizing the
or "fill" by some users. @.hint_fill specify whether to fill
the space inside the boundaries of a container/manager.
- Maximum size hints should be enforced with higher
+ Maximum hints should be enforced with higher
priority, if they are set. Also, any @.hint_margin set on
objects should add up to the object space on the final
scene composition.
}
}
events {
- change,size,hints: void; [[Object size hints changed.]]
+ change,size,hints: void; [[Object hints changed.]]
}
}
updated in the canvas.]]
}
-enum Efl.Gfx.Size_Hint_Aspect
+enum Efl.Gfx.Hint_Aspect
{
[[Aspect types/policies for scaling size hints.
- See also @Efl.Gfx.Size_Hint.hint_aspect.
+ See also @Efl.Gfx.Hint.hint_aspect.
]]
none = 0, [[No preference on either direction of the container
#include "interfaces/efl_gfx_filter.eo.c"
#include "interfaces/efl_gfx_blur.eo.c"
-#include "interfaces/efl_gfx_size_hint.eo.c"
+#include "interfaces/efl_gfx_hint.eo.c"
#include "interfaces/efl_canvas_scene.eo.c"
#include "interfaces/efl_canvas_pointer.eo.c"
'efl_gfx_gradient_radial.eo',
'efl_gfx_filter.eo',
'efl_gfx_blur.eo',
- 'efl_gfx_size_hint.eo',
+ 'efl_gfx_hint.eo',
'efl_model.eo',
'efl_animator.eo',
'efl_interpolator.eo',
item = efl_add(EFL_CANVAS_LAYOUT_CLASS, spd->idbox);
elm_widget_theme_object_set(spd->idbox, item,
"pager", "indicator", "default");
- efl_gfx_size_hint_align_set(item, 0.5, 0.5);
- efl_gfx_size_hint_weight_set(item, 0, 0);
- efl_gfx_size_hint_fill_set(item, 0, 0);
+ efl_gfx_hint_align_set(item, 0.5, 0.5);
+ efl_gfx_hint_weight_set(item, 0, 0);
+ efl_gfx_hint_fill_set(item, 0, 0);
if (index == spd->cnt)
{
elm_widget_theme_object_set(spd->idbox, item,
"pager", "indicator", "default");
- efl_gfx_size_hint_align_set(item, 0.5, 0.5);
- efl_gfx_size_hint_weight_set(item, 0, 0);
- efl_gfx_size_hint_fill_set(item, 0, 0);
+ efl_gfx_hint_align_set(item, 0.5, 0.5);
+ efl_gfx_hint_weight_set(item, 0, 0);
+ efl_gfx_hint_fill_set(item, 0, 0);
efl_pack_end(spd->idbox, item);
}
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#include "efl_ui_box_private.h"
Eina_Bool fill[2];
Eina_Size2D max, min, aspect;
int pad[4];
- Efl_Gfx_Size_Hint_Aspect aspect_type;
+ Efl_Gfx_Hint_Aspect aspect_type;
int id;
};
Eina_Bool box_fill[2] = { EINA_FALSE, EINA_FALSE };
boxs = efl_gfx_entity_geometry_get(ui_box);
- efl_gfx_size_hint_margin_get(ui_box, &boxl, &boxr, &boxt, &boxb);
+ efl_gfx_hint_margin_get(ui_box, &boxl, &boxr, &boxt, &boxb);
scale = efl_gfx_entity_scale_get(ui_box);
// Box align: used if "item has max size and fill" or "no item has a weight"
count = eina_list_count(bd->children);
if (!count)
{
- efl_gfx_size_hint_min_set(ui_box, EINA_SIZE2D(0, 0));
+ efl_gfx_hint_size_min_set(ui_box, EINA_SIZE2D(0, 0));
return;
}
item = &items[id];
o = item->obj = opt->obj;
- efl_gfx_size_hint_weight_get(o, &item->weight[0], &item->weight[1]);
- efl_gfx_size_hint_align_get(o, &item->align[0], &item->align[1]);
- efl_gfx_size_hint_margin_get(o, &item->pad[0], &item->pad[1], &item->pad[2], &item->pad[3]);
- efl_gfx_size_hint_fill_get(o, &item->fill[0], &item->fill[1]);
- item->max = efl_gfx_size_hint_max_get(o);
- item->min = efl_gfx_size_hint_combined_min_get(o);
- efl_gfx_size_hint_aspect_get(o, &item->aspect_type, &item->aspect);
+ efl_gfx_hint_weight_get(o, &item->weight[0], &item->weight[1]);
+ efl_gfx_hint_align_get(o, &item->align[0], &item->align[1]);
+ efl_gfx_hint_margin_get(o, &item->pad[0], &item->pad[1], &item->pad[2], &item->pad[3]);
+ efl_gfx_hint_fill_get(o, &item->fill[0], &item->fill[1]);
+ item->max = efl_gfx_hint_size_max_get(o);
+ item->min = efl_gfx_hint_size_combined_min_get(o);
+ efl_gfx_hint_aspect_get(o, &item->aspect_type, &item->aspect);
if (horiz && (box_fill[0] || pd->homogeneous)) item->weight[0] = 1;
else if (item->weight[0] < 0) item->weight[0] = 0;
{
ERR("Invalid aspect parameter for obj: %p", item->obj);
item->aspect.w = item->aspect.h = 0;
- item->aspect_type = EFL_GFX_SIZE_HINT_ASPECT_NONE;
+ item->aspect_type = EFL_GFX_HINT_ASPECT_NONE;
}
}
else
if (horiz)
{
- efl_gfx_size_hint_min_set(ui_box, EINA_SIZE2D(
+ efl_gfx_hint_size_min_set(ui_box, EINA_SIZE2D(
wantw + boxl + boxr + pad * (count - 1),
wanth + boxt + boxb));
}
else
{
- efl_gfx_size_hint_min_set(ui_box, EINA_SIZE2D(
+ efl_gfx_hint_size_min_set(ui_box, EINA_SIZE2D(
wantw + boxl + boxr,
wanth + pad * (count - 1) + boxt + boxb));
}
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#include "efl_ui_box_private.h"
{
Evas_Object *child = opt->obj;
- cmin = efl_gfx_size_hint_combined_min_get(child);
+ cmin = efl_gfx_hint_size_combined_min_get(child);
if (cmin.w > min.w) min.w = cmin.w;
if (cmin.h > min.h) min.h = cmin.h;
}
- efl_gfx_size_hint_restricted_min_set(obj, min);
+ efl_gfx_hint_size_restricted_min_set(obj, min);
}
#include "efl_ui_box_stack.eo.c"
}
}
- min = efl_gfx_size_hint_min_get(item);
- max = efl_gfx_size_hint_max_get(item);
+ min = efl_gfx_hint_size_min_get(item);
+ max = efl_gfx_hint_size_max_get(item);
if (pd->item.size.w < min.w) pd->item.size.w = min.w;
if (pd->item.size.h < min.h) pd->item.size.h = min.h;
//
efl_gfx_entity_position_set(item, ipos);
efl_gfx_entity_size_set(item, id->geo.size);
- //efl_gfx_size_hint_restricted_min_set(item, id->geo.size);
+ //efl_gfx_hint_size_restricted_min_set(item, id->geo.size);
prev = id;
count++;
else
pd->geo.h = cur.y + pd->item.size.h + pd->item.pad.h - pd->geo.y;
- //efl_gfx_size_hint_restricted_min_set(pd->content, pd->geo.size);
+ //efl_gfx_hint_size_restricted_min_set(pd->content, pd->geo.size);
efl_gfx_entity_size_set(pd->content, pd->geo.size);
pd->need_update = EINA_FALSE;
ipos.y = id->geo.y - pan.y;
efl_gfx_entity_position_set(item, ipos);
efl_gfx_entity_size_set(item, id->geo.size);
- //efl_gfx_size_hint_min_set(item, id->geo.size);
+ //efl_gfx_hint_size_min_set(item, id->geo.size);
}
}
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
- min = efl_gfx_size_hint_combined_min_get(obj);
- max = efl_gfx_size_hint_max_get(obj);
- efl_gfx_size_hint_weight_get(obj, &xw, &yw);
+ min = efl_gfx_hint_size_combined_min_get(obj);
+ max = efl_gfx_hint_size_max_get(obj);
+ efl_gfx_hint_weight_get(obj, &xw, &yw);
if (pd->smanager)
view = efl_ui_scrollable_viewport_geometry_get(pd->smanager);
if (pd->match_content_w) size.w = vmw + min.w;
if (pd->match_content_h) size.h = vmh + min.h;
- max = efl_gfx_size_hint_max_get(obj);
+ max = efl_gfx_hint_size_max_get(obj);
if ((max.w > 0) && (size.w > max.w)) size.w = max.w;
if ((max.h > 0) && (size.h > max.h)) size.h = max.h;
pd->geo = view;
- efl_gfx_size_hint_min_set(obj, size);
+ efl_gfx_hint_size_min_set(obj, size);
_need_update(pd);
return;
else
{
// Ignore restricted here? Combine with min? Hmm...
- return efl_gfx_size_hint_combined_min_get(sd->img);
+ return efl_gfx_hint_size_combined_min_get(sd->img);
}
}
// FIXME: should be restricted_min?
efl_gfx_entity_size_set(sd->text_table, fsz);
- efl_gfx_size_hint_min_set(obj, size);
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, size.h));
+ efl_gfx_hint_size_min_set(obj, size);
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(-1, size.h));
}
}
if (pd->box)
{
- min = efl_gfx_size_hint_combined_min_get(pd->box);
- max = efl_gfx_size_hint_max_get(pd->box);
- efl_gfx_size_hint_weight_get(pd->box, &xw, &yw);
+ min = efl_gfx_hint_size_combined_min_get(pd->box);
+ max = efl_gfx_hint_size_max_get(pd->box);
+ efl_gfx_hint_weight_get(pd->box, &xw, &yw);
}
if (pd->smanager)
if (pd->match_content_w) size.w = vmw + min.w;
if (pd->match_content_h) size.h = vmh + min.h;
- max = efl_gfx_size_hint_max_get(obj);
+ max = efl_gfx_hint_size_max_get(obj);
if ((max.w > 0) && (size.w > max.w)) size.w = max.w;
if ((max.h > 0) && (size.h > max.h)) size.h = max.h;
- efl_gfx_size_hint_min_set(obj, size);
+ efl_gfx_hint_size_min_set(obj, size);
}
//FIXME: is this box related API could be improved more?
efl_gfx_entity_visible_set(pd->pan_obj, EINA_TRUE);
edje_object_size_min_calc(wd->resize_obj, &min.w, &min.h);
- efl_gfx_size_hint_restricted_min_set(obj, min);
+ efl_gfx_hint_size_restricted_min_set(obj, min);
efl_event_callback_add(obj, EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED,
_efl_ui_list_view_bar_size_changed_cb, obj);
Eina_Bool fill[2];
Eina_Size2D max;
- efl_gfx_size_hint_margin_get(item->layout, &pad[0], &pad[1], &pad[2], &pad[3]);
+ efl_gfx_hint_margin_get(item->layout, &pad[0], &pad[1], &pad[2], &pad[3]);
evas_object_geometry_get(pd->modeler, &boxx, &boxy, &boxw, &boxh);
- efl_gfx_size_hint_margin_get(pd->modeler, &boxl, &boxr, &boxt, &boxb);
- efl_gfx_size_hint_align_get(item->layout, &align[0], &align[1]);
- efl_gfx_size_hint_fill_get(item->layout, &fill[0], &fill[1]);
- max = efl_gfx_size_hint_max_get(item->layout);
+ efl_gfx_hint_margin_get(pd->modeler, &boxl, &boxr, &boxt, &boxb);
+ efl_gfx_hint_align_get(item->layout, &align[0], &align[1]);
+ efl_gfx_hint_fill_get(item->layout, &fill[0], &fill[1]);
+ max = efl_gfx_hint_size_max_get(item->layout);
// box outer margin
boxw -= boxl + boxr;
Efl_Ui_List_View_Layout_Item *layout_item;
int i, pad[4];
- Eina_Size2D min = efl_gfx_size_hint_combined_min_get(item->layout);
+ Eina_Size2D min = efl_gfx_hint_size_combined_min_get(item->layout);
- efl_gfx_size_hint_margin_get(item->layout, &pad[0], &pad[1], &pad[2], &pad[3]);
+ efl_gfx_hint_margin_get(item->layout, &pad[0], &pad[1], &pad[2], &pad[3]);
min.w += pad[0] + pad[1];
min.h += pad[2] + pad[3];
_calc_range(pd);
evas_object_geometry_get(pd->modeler, &boxx, &boxy, &boxw, &boxh);
- efl_gfx_size_hint_margin_get(pd->modeler, &boxl, &boxr, &boxt, &boxb);
+ efl_gfx_hint_margin_get(pd->modeler, &boxl, &boxr, &boxt, &boxb);
// box outer margin
boxw -= boxl + boxr;
if (pd->resize)
_item_size_calc(pd, layout_item);
- efl_gfx_size_hint_weight_get(layout_item->layout, &weight_x, &weight_y);
+ efl_gfx_hint_weight_get(layout_item->layout, &weight_x, &weight_y);
}
else
{
#define EFL_ACCESS_OBJECT_PROTECTED
#define ELM_LAYOUT_PROTECTED
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#define EFL_PART_PROTECTED
#include <Elementary.h>
if (first_content)
{
if (!sd->first_hint_min_allow)
- sd->first_min = efl_gfx_size_hint_combined_min_get(first_content);
+ sd->first_min = efl_gfx_hint_size_combined_min_get(first_content);
else
- sd->first_min = efl_gfx_size_hint_min_get(first_content);
+ sd->first_min = efl_gfx_hint_size_min_get(first_content);
}
if (second_content)
{
if (!sd->second_hint_min_allow)
- sd->second_min = efl_gfx_size_hint_combined_min_get(second_content);
+ sd->second_min = efl_gfx_hint_size_combined_min_get(second_content);
else
- sd->second_min = efl_gfx_size_hint_min_get(second_content);
+ sd->second_min = efl_gfx_hint_size_min_get(second_content);
}
if (sd->dir == EFL_UI_DIR_HORIZONTAL)
min.h = MAX(sd->first_min.h, sd->second_min.h);
}
- efl_gfx_size_hint_restricted_min_set(obj, min);
+ efl_gfx_hint_size_restricted_min_set(obj, min);
_set_min_size_new(obj);
}
@property hint_min_allow {
[[Allows the user to set size hints to be respected and ignored combined
with a minimum size. If this flag is set, the minimum size set by
- @Efl.Gfx.Size_Hint.hint_min.set is respected forcefully.
+ @Efl.Gfx.Hint.hint_size_min.set is respected forcefully.
]]
values {
allow: bool; [[If $true minimum size is forced]]
@property split_ratio_min {
[[Controls the relative minimum size of panes widget's part.
- If @Efl.Gfx.Size_Hint.hint_min.set is also used along with
+ If @Efl.Gfx.Hint.hint_size_min.set is also used along with
@.split_ratio_min.set, maximum value is set as minimum size to part.
]]
values {
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
(wd->resize_obj, &minw, &minh, minw, minh);
- efl_gfx_size_hint_min_set(obj, EINA_SIZE2D(minw, minh));
+ efl_gfx_hint_size_min_set(obj, EINA_SIZE2D(minw, minh));
Eina_Size2D size = efl_gfx_entity_size_get(obj);
efl_gfx_entity_size_set(obj, new_size);
}
- efl_gfx_size_hint_min_set(obj, new_min);
+ efl_gfx_hint_size_min_set(obj, new_min);
}
static void
pd->content = content;
//Content should have expand propeties since the scroller is not layout layer
- efl_gfx_size_hint_weight_set(pd->content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(pd->content, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(pd->content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_fill_set(pd->content, EINA_TRUE, EINA_TRUE);
efl_content_set(pd->scroller, pd->content);
}
if (sd->content)
{
- min = efl_gfx_size_hint_combined_min_get(sd->content);
- max = efl_gfx_size_hint_max_get(sd->content);
- efl_gfx_size_hint_weight_get(sd->content, &xw, &yw);
+ min = efl_gfx_hint_size_combined_min_get(sd->content);
+ max = efl_gfx_hint_size_max_get(sd->content);
+ efl_gfx_hint_weight_get(sd->content, &xw, &yw);
}
if (sd->smanager)
if (sd->match_content_w) size.w = vmw + min.w;
if (sd->match_content_h) size.h = vmh + min.h;
- max = efl_gfx_size_hint_max_get(obj);
+ max = efl_gfx_hint_size_max_get(obj);
if ((max.w > 0) && (size.w > max.w)) size.w = max.w;
if ((max.h > 0) && (size.h > max.h)) size.h = max.h;
- efl_gfx_size_hint_min_set(obj, size);
+ efl_gfx_hint_size_min_set(obj, size);
}
EOLIAN static Efl_Ui_Theme_Apply_Result
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
edje_object_size_min_restricted_calc
(wd->resize_obj, &minw, &minh, minw, minh);
- efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
+ efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(-1, -1));
}
static void
ti->label = eina_stringshare_add(label);
tab = efl_add(EFL_UI_LAYOUT_CLASS, obj,
- efl_gfx_size_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL));
+ efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL));
/* FIXME: This is for tab sizing issue.
* Recently, the size_hint_fill API has been added,
* but currently tab_bar is not available because it uses evas_object_box.
{
elm_box_pack_end(sd->box, sd->label);
Eina_Size2D label_min =
- efl_gfx_size_hint_combined_min_get(sd->label);
+ efl_gfx_hint_size_combined_min_get(sd->label);
w -= label_min.w;
w -= box_inner_item_width_padding;
}
evas_object_show(layout);
Eina_Size2D item_min =
- efl_gfx_size_hint_combined_min_get(layout);
+ efl_gfx_hint_size_combined_min_get(layout);
w -= item_min.w;
w -= box_inner_item_width_padding;
edje_object_size_min_calc(sd->end, &w_label_count, &h);
elm_coords_finger_size_adjust(1, &w_label_count, 1, &h);
- efl_gfx_size_hint_min_set(sd->end, EINA_SIZE2D(w_label_count, h));
+ efl_gfx_hint_size_min_set(sd->end, EINA_SIZE2D(w_label_count, h));
elm_box_pack_end(sd->box, sd->end);
evas_object_show(sd->end);
(layout,
EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb, obj);
- efl_gfx_size_hint_align_set(layout, 0.5, 0.5);
- efl_gfx_size_hint_weight_set(layout, 0.0, 0.0);
+ efl_gfx_hint_align_set(layout, 0.5, 0.5);
+ efl_gfx_hint_weight_set(layout, 0.0, 0.0);
evas_object_show(layout);
evas_object_smart_calculate(layout);
- min = efl_gfx_size_hint_combined_min_get(layout);
+ min = efl_gfx_hint_size_combined_min_get(layout);
r = efl_gfx_entity_geometry_get(sd->box);
if (sd->w_box && min.w > r.w)
{
elm_coords_finger_size_adjust(1, &r.w, 1, &min.h);
- efl_gfx_size_hint_min_set(layout, EINA_SIZE2D(r.w, min.h));
+ efl_gfx_hint_size_min_set(layout, EINA_SIZE2D(r.w, min.h));
efl_gfx_entity_size_set(layout, EINA_SIZE2D(r.w, min.h));
}
edje_object_size_min_restricted_calc
(wd->resize_obj, &minw, &minh, minw, minh);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
- efl_gfx_size_hint_min_set(obj, EINA_SIZE2D(minw, minh));
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(maxw, maxh));
+ efl_gfx_hint_size_min_set(obj, EINA_SIZE2D(minw, minh));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(maxw, maxh));
}
static void
elm_layout_sizing_eval(layout);
evas_object_smart_calculate(layout);
- min = efl_gfx_size_hint_combined_min_get(layout);
+ min = efl_gfx_hint_size_combined_min_get(layout);
if (min.w > r.w - hpad)
{
min.w = r.w - hpad;
- efl_gfx_size_hint_min_set(layout, EINA_SIZE2D(min.w, min.h));
+ efl_gfx_hint_size_min_set(layout, EINA_SIZE2D(min.w, min.h));
efl_gfx_entity_size_set(layout, EINA_SIZE2D(min.w, min.h));
}
}
Evas_Object_Box_Option *opt;
evas_object_geometry_get(box, NULL, NULL, &w, NULL);
- box_min = efl_gfx_size_hint_combined_min_get(box);
+ box_min = efl_gfx_hint_size_combined_min_get(box);
if (!w) return EINA_FALSE;
line_num = 1;
EINA_LIST_FOREACH(priv->children, l, opt)
{
- min = efl_gfx_size_hint_combined_min_get(opt->obj);
+ min = efl_gfx_hint_size_combined_min_get(opt->obj);
linew += min.w;
if (lineh < min.h) lineh = min.h;
}
box_min.h = lineh * line_num + (line_num - 1) * priv->pad.v;
- efl_gfx_size_hint_min_set(box, EINA_SIZE2D(box_min.w, box_min.h));
+ efl_gfx_hint_size_min_set(box, EINA_SIZE2D(box_min.w, box_min.h));
*line_height = lineh;
return EINA_TRUE;
r = efl_gfx_entity_geometry_get(o);
- min = efl_gfx_size_hint_combined_min_get(o);
- efl_gfx_size_hint_align_get(o, &ax, &ay);
+ min = efl_gfx_hint_size_combined_min_get(o);
+ efl_gfx_hint_align_get(o, &ax, &ay);
rtl = efl_ui_mirrored_get(data);
if (rtl) ax = 1.0 - ax;
obj = opt->obj;
evas_object_size_hint_align_get(obj, &ax, &ay);
evas_object_size_hint_weight_get(obj, &wx, &wy);
- efl_gfx_size_hint_fill_get(obj, &fx, &fy);
- obj_min = efl_gfx_size_hint_combined_min_get(obj);
+ efl_gfx_hint_fill_get(obj, &fx, &fy);
+ obj_min = efl_gfx_hint_size_combined_min_get(obj);
if (EINA_DBL_EQ(ax, -1)) { fx = 1; ax = 0.5; }
else if (ax < 0) { ax = 0.0; }
efl_text_interactive_editable_set(efl_added, EINA_TRUE),
efl_composite_attach(obj, efl_added));
- efl_gfx_size_hint_min_set(sd->entry, EINA_SIZE2D(MIN_W_ENTRY, 0));
+ efl_gfx_hint_size_min_set(sd->entry, EINA_SIZE2D(MIN_W_ENTRY, 0));
evas_object_size_hint_weight_set
(sd->entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_fill_set(sd->entry, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_fill_set(sd->entry, EINA_TRUE, EINA_TRUE);
elm_box_pack_end(sd->box, sd->entry);
edje_object_size_min_calc(sd->end, &button_min_width, &button_min_height);
elm_coords_finger_size_adjust(1, &button_min_width, 1, &button_min_height);
- efl_gfx_size_hint_min_set(sd->end, EINA_SIZE2D(button_min_width, button_min_height));
+ efl_gfx_hint_size_min_set(sd->end, EINA_SIZE2D(button_min_width, button_min_height));
elm_widget_sub_object_add(obj, sd->end);
}
}
}
elm_layout_sizing_eval(sd->scroller);
- min = efl_gfx_size_hint_min_get(sd->scroller);
+ min = efl_gfx_hint_size_min_get(sd->scroller);
if (sd->single_line)
{
efl_ui_internal_text_scroller_mode_set(sd->scroller,
edje_object_size_min_calc(wd->resize_obj, &edmin.w, &edmin.h);
min.w = edmin.w;
min.h = edmin.h;
- efl_gfx_size_hint_restricted_min_set(obj, min);
+ efl_gfx_hint_size_restricted_min_set(obj, min);
}
sd->cursor_update = EINA_TRUE;
efl_canvas_text_size_formatted_get(sd->text_obj, &min.w, &min.h);
min.w += edmin.w;
min.h += edmin.h;
- efl_gfx_size_hint_restricted_min_set(obj, min);
+ efl_gfx_hint_size_restricted_min_set(obj, min);
}
}
efl_gfx_entity_size_set(obj, new_size);
}
- efl_gfx_size_hint_min_set(obj, new_min);
+ efl_gfx_hint_size_min_set(obj, new_min);
}
EOLIAN static void
//Calculate popup's min size including scroller's min size
{
elm_label_line_wrap_set(pd->message, ELM_WRAP_NONE);
- text_min = efl_gfx_size_hint_combined_min_get(pd->message);
+ text_min = efl_gfx_hint_size_combined_min_get(pd->message);
elm_label_line_wrap_set(pd->message, ELM_WRAP_MIXED);
elm_scroller_content_min_limit(pd->scroller, EINA_FALSE, EINA_TRUE);
elm_object_style_set(pd->message, "popup/default");
//
//elm_widget_element_update(obj, pd->message, PART_NAME_TEXT);
- efl_gfx_size_hint_weight_set(pd->message, EVAS_HINT_EXPAND,
+ efl_gfx_hint_weight_set(pd->message, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
efl_content_set(pd->scroller, pd->message);
}
}
if (set_min)
{
- efl_gfx_size_hint_min_set(obj, rect.size);
+ efl_gfx_hint_size_min_set(obj, rect.size);
}
}
}
priv->text_obj = edje_object_add(evas_object_evas_get(obj));
elm_widget_theme_object_set(obj, priv->text_obj, "textpath", "base",
elm_widget_style_get(obj));
- efl_gfx_size_hint_weight_set(priv->text_obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- efl_gfx_size_hint_align_set(priv->text_obj, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ efl_gfx_hint_weight_set(priv->text_obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_align_set(priv->text_obj, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_gfx_entity_visible_set(priv->text_obj, EINA_TRUE);
evas_object_smart_member_add(priv->text_obj, obj);
#define EFL_ACCESS_COMPONENT_PROTECTED
#define EFL_ACCESS_WIDGET_ACTION_PROTECTED
#define EFL_INPUT_EVENT_PROTECTED
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#define EFL_CANVAS_OBJECT_PROTECTED
#define EFL_UI_L10N_PROTECTED
#define EFL_UI_WIN_INLINED_PROTECTED
{
Eina_Size2D min, max;
- min = efl_gfx_size_hint_combined_min_get(win);
- max = efl_gfx_size_hint_max_get(win);
+ min = efl_gfx_hint_size_combined_min_get(win);
+ max = efl_gfx_hint_size_max_get(win);
if (max.w < 1) max.w = -1;
if (max.h < 1) max.h = -1;
}
if (ch_wm_rotation)
{
- efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
+ efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(-1, -1));
#ifdef HAVE_ELEMENTARY_X
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
_elm_win_xwin_update(sd);
if ((!minw) && (!minh) && (!sd->deferred_resize_job)) return;
// If content has a weight, make resizable
- efl_gfx_size_hint_weight_get(sd->legacy.edje, &wx, &wy);
+ efl_gfx_hint_weight_get(sd->legacy.edje, &wx, &wy);
// Content max hint is ignored
maxw = sd->max_w;
}
sd->tmp_updating_hints = 1;
- efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(maxw, maxh));
+ efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(maxw, maxh));
sd->tmp_updating_hints = 0;
_elm_win_size_hints_update(obj, sd);
ELM_WIN_DATA_GET_OR_RETURN(data, sd);
Evas_Object *indicator = event->object;
Evas_Coord_Size *size = (Evas_Coord_Size *)event->info;
- efl_gfx_size_hint_restricted_min_set(indicator, EINA_SIZE2D(size->w, size->h));
+ efl_gfx_hint_size_restricted_min_set(indicator, EINA_SIZE2D(size->w, size->h));
_elm_win_frame_obj_update(sd, 0);
}
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
- Efl_Gfx_Size_Hint_Aspect mode, Eina_Size2D sz)
+_efl_ui_win_efl_gfx_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
+ Efl_Gfx_Hint_Aspect mode, Eina_Size2D sz)
{
if (sz.h) _win_aspect_set(pd, (double) sz.w / (double) sz.h);
else _win_aspect_set(pd, 0.0);
- efl_gfx_size_hint_aspect_set(efl_super(obj, MY_CLASS), mode, sz);
+ efl_gfx_hint_aspect_set(efl_super(obj, MY_CLASS), mode, sz);
#ifdef HAVE_ELEMENTARY_WL2
if (pd->wl.win)
ecore_wl2_window_aspect_set(pd->wl.win, sz.w, sz.h, mode);
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_hint_weight_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd EINA_UNUSED,
+_efl_ui_win_efl_gfx_hint_hint_weight_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd EINA_UNUSED,
double w, double h)
{
- efl_gfx_size_hint_weight_set(efl_super(obj, MY_CLASS), w, h);
+ efl_gfx_hint_weight_set(efl_super(obj, MY_CLASS), w, h);
#ifdef HAVE_ELEMENTARY_WL2
if (pd->wl.win)
ecore_wl2_window_weight_set(pd->wl.win, w, h);
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_hint_max_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Size2D sz)
+_efl_ui_win_efl_gfx_hint_hint_size_max_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Size2D sz)
{
if (sd->tmp_updating_hints)
{
- efl_gfx_size_hint_max_set(efl_super(obj, MY_CLASS), sz);
+ efl_gfx_hint_size_max_set(efl_super(obj, MY_CLASS), sz);
}
else
{
sd->rot = rotation;
if (resize) TRAP(sd, rotation_with_resize_set, rotation);
else TRAP(sd, rotation_set, rotation);
- efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
+ efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(-1, -1));
_elm_win_resize_objects_eval(obj, EINA_FALSE);
#ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd);
}
}
efl_gfx_entity_visible_set(bg, 1);
- efl_gfx_size_hint_fill_set(bg, EINA_TRUE, EINA_TRUE);
- efl_gfx_size_hint_weight_set(bg, 1, 1);
+ efl_gfx_hint_fill_set(bg, EINA_TRUE, EINA_TRUE);
+ efl_gfx_hint_weight_set(bg, 1, 1);
efl_wref_add(bg, &sd->bg);
return EINA_TRUE;
}
if (aspect > DBL_EPSILON)
sz = EINA_SIZE2D(1000 * aspect, 1000);
- efl_gfx_size_hint_aspect_set(obj, EFL_GFX_SIZE_HINT_ASPECT_NONE, sz);
+ efl_gfx_hint_aspect_set(obj, EFL_GFX_HINT_ASPECT_NONE, sz);
}
EAPI double
EINA_LIST_FOREACH(p->children, l, opt)
{
child = opt->obj;
- efl_gfx_size_hint_weight_get(child, &wx, &wy);
+ efl_gfx_hint_weight_get(child, &wx, &wy);
if (EINA_DBL_EQ(wx, 0.0)) weight_x = 0;
if (EINA_DBL_EQ(wy, 0.0)) weight_y = 0;
}
if (minw < menuw) minw = menuw;
- efl_gfx_size_hint_restricted_min_set(o, EINA_SIZE2D(minw, minh));
+ efl_gfx_hint_size_restricted_min_set(o, EINA_SIZE2D(minw, minh));
evas_object_geometry_get(o, &x, &y, &w, &h);
if (w < minw) w = minw;
if (h < minh) h = minh;
evas_object_geometry_set(child, x, y, w, h);
}
- efl_gfx_size_hint_weight_set(sd->legacy.edje, weight_x, weight_y);
+ efl_gfx_hint_weight_set(sd->legacy.edje, weight_x, weight_y);
//evas_object_smart_changed(sd->legacy.edje);
}
Efl.Screen.screen_dpi { get; }
Efl.Screen.screen_rotation { get; }
Efl.Screen.screen_size_in_pixels { get; }
- Efl.Gfx.Size_Hint.hint_aspect { set; }
- Efl.Gfx.Size_Hint.hint_weight { set; }
- Efl.Gfx.Size_Hint.hint_max { set; }
+ Efl.Gfx.Hint.hint_aspect { set; }
+ Efl.Gfx.Hint.hint_weight { set; }
+ Efl.Gfx.Hint.hint_size_max { set; }
Efl.Text.text { get; set; }
Efl.Canvas.Scene.pointer_position { get; }
Efl.Canvas.Pointer.pointer_inside { get; }
if (sd->label && sd->label_packed)
{
elm_box_pack_end(sd->box, sd->label);
- w -= efl_gfx_size_hint_combined_min_get(sd->label).w;
+ w -= efl_gfx_hint_size_combined_min_get(sd->label).w;
w -= box_inner_item_width_padding;
}
evas_object_show(VIEW(item));
item->visible = EINA_TRUE;
- w -= efl_gfx_size_hint_combined_min_get(VIEW(item)).w;
+ w -= efl_gfx_hint_size_combined_min_get(VIEW(item)).w;
w -= box_inner_item_width_padding;
count--;
_palette_box_prepare(Eo *o)
{
efl_ui_direction_set(o, EFL_UI_DIR_HORIZONTAL);
- efl_gfx_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ efl_gfx_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
efl_gfx_entity_visible_set(o, EINA_FALSE);
}
#define EVAS_EVENT_FLAG_ON_HOLD EFL_INPUT_FLAGS_PROCESSED
#define EVAS_EVENT_FLAG_ON_SCROLL EFL_INPUT_FLAGS_SCROLLING
-typedef Efl_Gfx_Size_Hint_Aspect Evas_Aspect_Control; /**< Aspect types/policies for scaling size hints, used for evas_object_size_hint_aspect_set */
+typedef Efl_Gfx_Hint_Aspect Evas_Aspect_Control; /**< Aspect types/policies for scaling size hints, used for evas_object_size_hint_aspect_set */
-#define EVAS_ASPECT_CONTROL_NONE EFL_GFX_SIZE_HINT_ASPECT_NONE
-#define EVAS_ASPECT_CONTROL_NEITHER EFL_GFX_SIZE_HINT_ASPECT_NEITHER
-#define EVAS_ASPECT_CONTROL_HORIZONTAL EFL_GFX_SIZE_HINT_ASPECT_HORIZONTAL
-#define EVAS_ASPECT_CONTROL_VERTICAL EFL_GFX_SIZE_HINT_ASPECT_VERTICAL
-#define EVAS_ASPECT_CONTROL_BOTH EFL_GFX_SIZE_HINT_ASPECT_BOTH
+#define EVAS_ASPECT_CONTROL_NONE EFL_GFX_HINT_ASPECT_NONE
+#define EVAS_ASPECT_CONTROL_NEITHER EFL_GFX_HINT_ASPECT_NEITHER
+#define EVAS_ASPECT_CONTROL_HORIZONTAL EFL_GFX_HINT_ASPECT_HORIZONTAL
+#define EVAS_ASPECT_CONTROL_VERTICAL EFL_GFX_HINT_ASPECT_VERTICAL
+#define EVAS_ASPECT_CONTROL_BOTH EFL_GFX_HINT_ASPECT_BOTH
typedef Efl_Text_Bidirectional_Type Evas_BiDi_Direction;
evas_object_size_hint_combined_min_get(const Eo *obj, int *w, int *h)
{
Eina_Size2D sz;
- sz = efl_gfx_size_hint_combined_min_get(obj);
+ sz = efl_gfx_hint_size_combined_min_get(obj);
if (w) *w = sz.w;
if (h) *h = sz.h;
}
/** Display mode size hint. */
typedef enum
{
- EFL_GFX_SIZE_HINT_MODE_NONE = 0, /**< Default mode */
+ EFL_GFX_HINT_MODE_NONE = 0, /**< Default mode */
//TIZEN_ONLY(20151014): add deprecated enum to keep backward compatibility.
- EFL_GFX_SIZE_HINT_MODE_INHERIT = 1, /**< Deprecated enum, but add for backkward compatibility. */
+ EFL_GFX_HINT_MODE_INHERIT = 1, /**< Deprecated enum, but add for backkward compatibility. */
//
- EFL_GFX_SIZE_HINT_MODE_COMPRESS = 2, /**< Use this mode when you want to give
+ EFL_GFX_HINT_MODE_COMPRESS = 2, /**< Use this mode when you want to give
* compress display mode hint to an object */
- EFL_GFX_SIZE_HINT_MODE_EXPAND = 3, /**< Use this mode when you want to give
+ EFL_GFX_HINT_MODE_EXPAND = 3, /**< Use this mode when you want to give
* expand display mode hint to an object */
- EFL_GFX_SIZE_HINT_MODE_DONT_CHANGE = 4 /**< Use this mode when an object
+ EFL_GFX_HINT_MODE_DONT_CHANGE = 4 /**< Use this mode when an object
* should not change its display mode */
-} Efl_Gfx_Size_Hint_Mode;
+} Efl_Gfx_Hint_Mode;
-typedef Efl_Gfx_Size_Hint_Mode Evas_Display_Mode;
+typedef Efl_Gfx_Hint_Mode Evas_Display_Mode;
-#define EVAS_DISPLAY_MODE_NONE EFL_GFX_SIZE_HINT_MODE_NONE
+#define EVAS_DISPLAY_MODE_NONE EFL_GFX_HINT_MODE_NONE
//TIZEN_ONLY(20151014): add deprecated enum to keep backward compatibility.
-#define EVAS_DISPLAY_MODE_INHERIT EFL_GFX_SIZE_HINT_MODE_INHERIT
+#define EVAS_DISPLAY_MODE_INHERIT EFL_GFX_HINT_MODE_INHERIT
//
-#define EVAS_DISPLAY_MODE_COMPRESS EFL_GFX_SIZE_HINT_MODE_COMPRESS
-#define EVAS_DISPLAY_MODE_EXPAND EFL_GFX_SIZE_HINT_MODE_EXPAND
-#define EVAS_DISPLAY_MODE_DONT_CHANGE EFL_GFX_SIZE_HINT_MODE_DONT_CHANGE
+#define EVAS_DISPLAY_MODE_COMPRESS EFL_GFX_HINT_MODE_COMPRESS
+#define EVAS_DISPLAY_MODE_EXPAND EFL_GFX_HINT_MODE_EXPAND
+#define EVAS_DISPLAY_MODE_DONT_CHANGE EFL_GFX_HINT_MODE_DONT_CHANGE
/**
* @brief Sets the hints for an object's disply mode,
//TIZEN_ONLY(20171215): add heder define
#endif
-//
\ No newline at end of file
+//
struct Efl.Canvas.Object_Animation_Event; [[Information of animation events]]
abstract @beta Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Animator,
- Efl.Input.Interface, Efl.Gfx.Size_Hint,
+ Efl.Input.Interface, Efl.Gfx.Hint,
Efl.Gfx.Map, Efl.Ui.I18n, Efl.Canvas.Pointer
{
[[Efl canvas object abstract class]]
Efl.Gfx.Stack.stack_above;
Efl.Gfx.Stack.raise_to_top;
Efl.Gfx.Stack.lower_to_bottom;
- Efl.Gfx.Size_Hint.hint_aspect { get; set; }
- Efl.Gfx.Size_Hint.hint_align { get; set; }
- Efl.Gfx.Size_Hint.hint_combined_min { get; }
- Efl.Gfx.Size_Hint.hint_restricted_min { get; set; }
- Efl.Gfx.Size_Hint.hint_min { get; set; }
- Efl.Gfx.Size_Hint.hint_max { get; set; }
- Efl.Gfx.Size_Hint.hint_margin { get; set; }
- Efl.Gfx.Size_Hint.hint_weight { get; set; }
- Efl.Gfx.Size_Hint.hint_fill { get; set; }
+ Efl.Gfx.Hint.hint_aspect { get; set; }
+ Efl.Gfx.Hint.hint_align { get; set; }
+ Efl.Gfx.Hint.hint_size_combined_min { get; }
+ Efl.Gfx.Hint.hint_size_restricted_min { get; set; }
+ Efl.Gfx.Hint.hint_size_min { get; set; }
+ Efl.Gfx.Hint.hint_size_max { get; set; }
+ Efl.Gfx.Hint.hint_margin { get; set; }
+ Efl.Gfx.Hint.hint_weight { get; set; }
+ Efl.Gfx.Hint.hint_fill { get; set; }
Efl.Gfx.Entity.scale { set; get; }
Efl.Input.Interface.seat_event_filter { get; set; }
Efl.Loop_Consumer.loop { get; }
#define EFL_CANVAS_OBJECT_PROTECTED
-#define EFL_GFX_SIZE_HINT_PROTECTED
+#define EFL_GFX_HINT_PROTECTED
#include "evas_common_private.h"
#include "evas_private.h"
if (obj->legacy.ctor) goto end;
if (!obj->legacy.weight_set)
- efl_gfx_size_hint_weight_set(eo_obj, 1.0, 1.0);
+ efl_gfx_hint_weight_set(eo_obj, 1.0, 1.0);
if (obj->legacy.visible_set /* && ... */)
{
}
EOLIAN static Eina_Size2D
-_efl_canvas_object_efl_gfx_size_hint_hint_restricted_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_hint_hint_size_restricted_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if ((!obj->size_hints) || obj->delete_me)
return EINA_SIZE2D(0, 0);
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_restricted_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
+_efl_canvas_object_efl_gfx_hint_hint_size_restricted_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
{
if (obj->delete_me)
return;
}
EOLIAN static Eina_Size2D
-_efl_canvas_object_efl_gfx_size_hint_hint_combined_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_hint_hint_size_combined_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
Eina_Size2D sz = { 0, 0 };
}
EOLIAN static Eina_Size2D
-_efl_canvas_object_efl_gfx_size_hint_hint_max_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_hint_hint_size_max_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if ((!obj->size_hints) || obj->delete_me)
return EINA_SIZE2D(-1, -1);
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_max_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
+_efl_canvas_object_efl_gfx_hint_hint_size_max_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
{
if (obj->delete_me)
return;
}
EOLIAN static Eina_Size2D
-_efl_canvas_object_efl_gfx_size_hint_hint_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_hint_hint_size_min_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if ((!obj->size_hints) || obj->delete_me)
return EINA_SIZE2D(0, 0);
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
+_efl_canvas_object_efl_gfx_hint_hint_size_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Size2D sz)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_aspect_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect *aspect, Eina_Size2D *sz)
+_efl_canvas_object_efl_gfx_hint_hint_aspect_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Hint_Aspect *aspect, Eina_Size2D *sz)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect aspect, Eina_Size2D sz)
+_efl_canvas_object_efl_gfx_hint_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Hint_Aspect aspect, Eina_Size2D sz)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_align_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
+_efl_canvas_object_efl_gfx_hint_hint_align_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_align_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
+_efl_canvas_object_efl_gfx_hint_hint_align_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_weight_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
+_efl_canvas_object_efl_gfx_hint_hint_weight_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_weight_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
+_efl_canvas_object_efl_gfx_hint_hint_weight_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_margin_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
+_efl_canvas_object_efl_gfx_hint_hint_margin_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_margin_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
+_efl_canvas_object_efl_gfx_hint_hint_margin_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_fill_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool *x, Eina_Bool *y)
+_efl_canvas_object_efl_gfx_hint_hint_fill_get(const Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool *x, Eina_Bool *y)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_fill_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool x, Eina_Bool y)
+_efl_canvas_object_efl_gfx_hint_hint_fill_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool x, Eina_Bool y)
{
if (obj->delete_me)
return;
name = efl_name_get(eo_obj); // evas_object_name_get(eo_obj);
geom = efl_gfx_entity_geometry_get(eo_obj);
scale = efl_gfx_entity_scale_get(eo_obj);
- min = efl_gfx_size_hint_restricted_min_get(eo_obj);
- max = efl_gfx_size_hint_max_get(eo_obj);
- //efl_gfx_size_hint_request_get(eo_obj, &requestw, &requesth);
- efl_gfx_size_hint_align_get(eo_obj, &dblx, &dbly);
- efl_gfx_size_hint_weight_get(eo_obj, &dblw, &dblh);
- efl_gfx_size_hint_fill_get(eo_obj, &fillx, &filly);
+ min = efl_gfx_hint_size_restricted_min_get(eo_obj);
+ max = efl_gfx_hint_size_max_get(eo_obj);
+ //efl_gfx_hint_request_get(eo_obj, &requestw, &requesth);
+ efl_gfx_hint_align_get(eo_obj, &dblx, &dbly);
+ efl_gfx_hint_weight_get(eo_obj, &dblw, &dblh);
+ efl_gfx_hint_fill_get(eo_obj, &fillx, &filly);
efl_gfx_color_get(eo_obj, &r, &g, &b, &a);
focus = evas_object_focus_get(eo_obj);
m = efl_canvas_object_pointer_mode_get(eo_obj);
EAPI void
evas_object_size_hint_aspect_set(Evas_Object *obj, Evas_Aspect_Control aspect, Evas_Coord w, Evas_Coord h)
{
- efl_gfx_size_hint_aspect_set(obj, aspect, EINA_SIZE2D(w, h));
+ efl_gfx_hint_aspect_set(obj, aspect, EINA_SIZE2D(w, h));
}
EAPI void
evas_object_size_hint_aspect_get(const Evas_Object *obj, Evas_Aspect_Control *aspect, Evas_Coord *w, Evas_Coord *h)
{
Eina_Size2D sz = { 0, 0 };
- efl_gfx_size_hint_aspect_get(obj, aspect, &sz);
+ efl_gfx_hint_aspect_get(obj, aspect, &sz);
if (w) *w = sz.w;
if (h) *h = sz.h;
}
EAPI void
evas_object_size_hint_max_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
{
- efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(w, h));
+ efl_gfx_hint_size_max_set(obj, EINA_SIZE2D(w, h));
}
EAPI void
evas_object_size_hint_max_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
Eina_Size2D sz;
- sz = efl_gfx_size_hint_max_get(obj);
+ sz = efl_gfx_hint_size_max_get(obj);
if (w) *w = sz.w;
if (h) *h = sz.h;
}
EAPI void
evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
{
- efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(w, h));
+ efl_gfx_hint_size_restricted_min_set(obj, EINA_SIZE2D(w, h));
}
EAPI void
evas_object_size_hint_min_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
Eina_Size2D sz;
- sz = efl_gfx_size_hint_restricted_min_get(obj);
+ sz = efl_gfx_hint_size_restricted_min_get(obj);
if (w) *w = sz.w;
if (h) *h = sz.h;
}
EAPI void
evas_object_size_hint_padding_set(Evas_Object *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
{
- efl_gfx_size_hint_margin_set(obj, l, r, t, b);
+ efl_gfx_hint_margin_set(obj, l, r, t, b);
}
EAPI void
evas_object_size_hint_padding_get(const Evas_Object *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
{
- efl_gfx_size_hint_margin_get(obj, l, r, t, b);
+ efl_gfx_hint_margin_get(obj, l, r, t, b);
}
EAPI void
evas_object_size_hint_weight_set(Evas_Object *obj, double x, double y)
{
- efl_gfx_size_hint_weight_set(obj, x, y);
+ efl_gfx_hint_weight_set(obj, x, y);
}
EAPI void
evas_object_size_hint_weight_get(const Evas_Object *obj, double *x, double *y)
{
- efl_gfx_size_hint_weight_get(obj, x, y);
+ efl_gfx_hint_weight_get(obj, x, y);
}
EAPI void
evas_object_size_hint_align_set(Evas_Object *obj, double x, double y)
{
- efl_gfx_size_hint_align_set(obj, x, y);
+ efl_gfx_hint_align_set(obj, x, y);
}
EAPI void
evas_object_size_hint_align_get(const Evas_Object *obj, double *x, double *y)
{
- efl_gfx_size_hint_align_get(obj, x, y);
+ efl_gfx_hint_align_get(obj, x, y);
}
EAPI Evas *
evas_object_size_hint_align_get(child, &opt->align.h, &opt->align.v);
evas_object_size_hint_weight_get(child, &weightw, &weighth);
//only for Efl.Ui.Table
- efl_gfx_size_hint_fill_get(child, &fill_h, &fill_v);
+ efl_gfx_hint_fill_get(child, &fill_h, &fill_v);
child_minw = opt->min.w + opt->pad.l + opt->pad.r;
child_minh = opt->min.h + opt->pad.t + opt->pad.b;
// weight should be set during finalize()
if (EINA_UNLIKELY(!obj->legacy.weight_set))
- efl_gfx_size_hint_weight_set(eo_obj, 1.0, 1.0);
+ efl_gfx_hint_weight_set(eo_obj, 1.0, 1.0);
}
eina_evlog("-render_pre_objects_finalize", eo_e, 0.0, NULL);
self.assertIsNone(var.value) # TODO is None correct here? no value?
def test_variable_constant(self):
- var = eolian_db.constant_by_name_get('Efl.Gfx.Size_Hint_Fill')
+ var = eolian_db.constant_by_name_get('Efl.Gfx.Hint_Fill')
self.assertIsInstance(var, eolian.Variable)
- self.assertEqual(var.name, 'Efl.Gfx.Size_Hint_Fill')
+ self.assertEqual(var.name, 'Efl.Gfx.Hint_Fill')
self.assertEqual(var.short_name, 'Size_Hint_Fill')
self.assertEqual(var.type, eolian.Eolian_Variable_Type.CONSTANT)
- self.assertEqual(var.file, 'efl_gfx_size_hint.eo')
+ self.assertEqual(var.file, 'efl_gfx_hint.eo')
self.assertFalse(var.is_extern)
self.assertEqual(list(var.namespaces), ['Efl','Gfx'])
self.assertIsInstance(var.documentation, eolian.Documentation)
self.assertEqual(exp.serialize, '100')
def test_expression_unary(self):
- var = eolian_db.constant_by_name_get('Efl.Gfx.Size_Hint_Fill')
+ var = eolian_db.constant_by_name_get('Efl.Gfx.Hint_Fill')
exp = var.value
self.assertIsInstance(exp, eolian.Expression)
self.assertEqual(exp.type, eolian.Eolian_Expression_Type.UNARY)
evas = _setup_evas();
layout = efl_add(EFL_CANVAS_LAYOUT_CLASS, evas,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 40)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 40)));
efl_file_set(layout, test_layout_get("test_text.edj"), "test");
fail_if(efl_file_load_error_get(layout));
evas = _setup_evas();
layout = efl_add(EFL_CANVAS_LAYOUT_CLASS, evas,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 40)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 40)));
efl_file_set(layout, test_layout_get("test_text.edj"), "test");
fail_if(efl_file_load_error_get(layout));
evas = _setup_evas();
layout = efl_add(EFL_CANVAS_LAYOUT_CLASS, evas,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 40)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 40)));
efl_file_set(layout, test_layout_get("test_text.edj"), "test");
fail_if(efl_file_load_error_get(layout));
evas = _setup_evas();
layout = efl_add(EFL_CANVAS_LAYOUT_CLASS, evas,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 40)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 40)));
efl_file_set(layout, test_layout_get("test_text.edj"), "test");
fail_if(efl_file_load_error_get(layout));
evas = _setup_evas();
layout = efl_add(EFL_CANVAS_LAYOUT_CLASS, evas,
- efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 40)));
+ efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(160, 40)));
efl_file_set(layout, test_layout_get("test_text.edj"), "test");
fail_if(efl_file_load_error_get(layout));
int marginr;
int margint;
int marginb;
- Efl_Gfx_Size_Hint_Aspect mode;
+ Efl_Gfx_Hint_Aspect mode;
Eina_Size2D aspect;
Eina_Bool fillx;
Eina_Bool filly;
static Hint hints[] = {
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(0, 0), 1, 1, 0.5, 0.5, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT(0, 0, 200, 200), "[0]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.5, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT(0, 0, 200, 200), "[1]" },
{ EINA_SIZE2D(50, 150), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT((200 - 70) * 0.3, (200 - 150) * 0.7, 70, 150), "[2]" },
{ EINA_SIZE2D(150, -1), EINA_SIZE2D(70, 70), 0, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT((200 - 70) * 0.3, (200 - 70) * 0.2, 70, 70), "[3]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_TRUE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT((200 - 70) * 0.3, (200 - 70) * 0.2, 70, 70), "[4]" },
{ EINA_SIZE2D(150, 150), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_TRUE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 200),
EINA_RECT((200 - 70) * 0.3, (200 - 70) * 0.2, 70, 70), "[5]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 0, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 210),
EINA_RECT((200 - 70) * 0.3, 0, 70, 70 * 3), "[6]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 0, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(300, 300), EINA_SIZE2D(300, 300),
EINA_RECT((300 - 70) * 0.3, (300 - 70 * 3) * 0.7, 70, 70 * 3), "[7]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 210),
EINA_RECT((200 - 70) * 0.3, 0, 70, 70 * 3), "[8]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(300, 300), EINA_SIZE2D(300, 300),
EINA_RECT((300 - 70) * 0.3, (300 - 70 * 3) * 0.2, 70, 70 * 3), "[9]" },
{ EINA_SIZE2D(-1, 150), EINA_SIZE2D(70, 70), 0, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 210),
EINA_RECT((200 - 70) * 0.3, 0, 70, 70 * 3), "[10]" },
{ EINA_SIZE2D(-1, 150), EINA_SIZE2D(70, 70), 0, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(300, 300), EINA_SIZE2D(300, 300),
EINA_RECT((300 - 70) * 0.3, (300 - 70 * 3) * 0.7, 70, 70 * 3), "[11]" },
{ EINA_SIZE2D(-1, 150), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(200, 200), EINA_SIZE2D(200, 210),
EINA_RECT((200 - 70) * 0.3, 0, 70, 70 * 3), "[12]" },
{ EINA_SIZE2D(-1, 150), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(300, 300), EINA_SIZE2D(300, 300),
EINA_RECT((300 - 70) * 0.3, (300 - 70 * 3) * 0.2, 70, 70 * 3), "[13]" },
};
static Hint hints2[][2] = {
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - 70) * 0.3, (150 - 70) * 0.7, 70, 70), "[1/1 weight btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - 70) * 0.8, (150 - 70) * 0.2 + 150, 70, 70), "[1/1 weight btn2]" }
},
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - 70) * 0.3, 0, 70, 70), "[0/1 weight btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_VERTICAL, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_VERTICAL, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - ((300 - 70) / 3)) * 0.8, 70, (300 - 70) / 3, (300 - 70)), "[0/1 weight btn2]" }
},
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_FALSE, EINA_FALSE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - 70) * 0.3, (300 - 280) * 0.2, 70, 70), "[0/0 weight btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 0, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_HORIZONTAL, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
+ EFL_GFX_HINT_ASPECT_HORIZONTAL, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_FALSE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT((150 - 70) * 0.8, (300 - 280) * 0.2 + 70, 70, 70 * 3), "[0/0 weight btn2]" }
},
static Hint hints3[][3] = {
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT(0, 0, 150, 100), "[1/1/1 weight_l btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 100), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT(0, 100, 150, 100), "[1/1/1 weight_l btn2]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 300), EINA_SIZE2D(150, 300),
EINA_RECT(0, 100 + 100, 150, 100), "[1/1/1 weight_l btn3]" }
},
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 270), EINA_SIZE2D(150, 270),
EINA_RECT(0, 0, 150, 85), "[1/1/1 weight_m btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 100), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 270), EINA_SIZE2D(150, 270),
EINA_RECT(0, 85, 150, 100), "[1/1/1 weight_m btn2]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 270), EINA_SIZE2D(150, 270),
EINA_RECT(0, 100 + 85, 150, 85), "[1/1/1 weight_m btn3]" }
},
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.3, 0.7, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 200), EINA_SIZE2D(150, 240),
EINA_RECT(0, 0, 150, 70), "[1/1/1 weight_s btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 100), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 200), EINA_SIZE2D(150, 240),
EINA_RECT(0, 70, 150, 100), "[1/1/1 weight_s btn2]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(70, 70), 1, 1, 0.8, 0.2, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_NONE, EINA_SIZE2D(0, 0), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(150, 200), EINA_SIZE2D(150, 240),
EINA_RECT(0, 170, 150, 70), "[1/1/1 weight_s btn3]" }
},
{
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(0, 0), 1, 1, 0.5, 0.5, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(300, 900), EINA_SIZE2D(300, 900),
EINA_RECT(100, 0, 100, 300), "[aspect resize btn]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(0, 0), 1, 1, 0.5, 0.5, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(300, 900), EINA_SIZE2D(300, 900),
EINA_RECT(100, 300, 100, 300), "[aspect resize btn2]" },
{ EINA_SIZE2D(-1, -1), EINA_SIZE2D(0, 0), 1, 1, 0.5, 0.5, 0, 0, 0, 0,
- EFL_GFX_SIZE_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
+ EFL_GFX_HINT_ASPECT_BOTH, EINA_SIZE2D(1, 3), EINA_TRUE, EINA_TRUE,
EINA_SIZE2D(300, 900), EINA_SIZE2D(300, 900),
EINA_RECT(100, 300 + 300, 100, 300), "[aspect resize btn3]" }
},
btn_hint_set(Eo *btn, Hint *hint)
{
efl_gfx_entity_size_set(layout, hint->layout_size);
- efl_gfx_size_hint_max_set(btn, hint->max);
- efl_gfx_size_hint_min_set(btn, hint->min);
- efl_gfx_size_hint_weight_set(btn, hint->weightx, hint->weighty);
- efl_gfx_size_hint_align_set(btn, hint->alignx, hint->aligny);
- efl_gfx_size_hint_fill_set(btn, hint->fillx, hint->filly);
- efl_gfx_size_hint_aspect_set(btn, hint->mode, hint->aspect);
+ efl_gfx_hint_size_max_set(btn, hint->max);
+ efl_gfx_hint_size_min_set(btn, hint->min);
+ efl_gfx_hint_weight_set(btn, hint->weightx, hint->weighty);
+ efl_gfx_hint_align_set(btn, hint->alignx, hint->aligny);
+ efl_gfx_hint_fill_set(btn, hint->fillx, hint->filly);
+ efl_gfx_hint_aspect_set(btn, hint->mode, hint->aspect);
efl_canvas_group_calculate(layout);
}
Eina_Size2D layout_size, layout_min;
layout_size = efl_gfx_entity_size_get(layout);
- layout_min = efl_gfx_size_hint_min_get(layout);
+ layout_min = efl_gfx_hint_size_min_get(layout);
layout_size.w = layout_size.w > layout_min.w ? layout_size.w : layout_min.w;
layout_size.h = layout_size.h > layout_min.h ? layout_size.h : layout_min.h;