efl_ui_bg: add Efl.Ui.Bg interface
Summary: - Previous class efl_ui_bg moved to efl_ui_bg_widget. - Scale_type moved to efl_image from efl_ui_image. - Previous enum Efl_Ui_Image_Scale_Type moved to Efl_Image_Scale_Type. Test Plan: Run elementary_test 1.Image Scale Type 2.Efl.Ui.Bg 3.Efl.Ui.Win 4.Part Background Reviewers: jpeg, woohyun, cedric Differential Revision: https://phab.enlightenment.org/D5616
This commit is contained in:
parent
04fbce0659
commit
00745cda1d
|
@ -30,7 +30,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
|
|||
path = "performance/background.png";
|
||||
|
||||
efl::ui::Bg bg(instantiate, win);
|
||||
bg.scale_type_set(EFL_UI_IMAGE_SCALE_TYPE_FILL);
|
||||
bg.scale_type_set(EFL_IMAGE_SCALE_TYPE_FILL);
|
||||
bg.file_set(path, nullptr);
|
||||
win.content_set(bg);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
|
||||
std::cout << ", name = " << icon.icon_get() << std::endl;
|
||||
|
||||
icon.scale_type_set(EFL_UI_IMAGE_SCALE_TYPE_NONE);
|
||||
icon.scale_type_set(EFL_IMAGE_SCALE_TYPE_NONE);
|
||||
//icon.resizable_set(false, true);
|
||||
//icon.smooth_set(false);
|
||||
//icon.fill_outside_set(true);
|
||||
|
|
Loading…
Reference in New Issue