Skip to content

Conversation

@bwikbs
Copy link
Member

@bwikbs bwikbs commented Jun 14, 2021

Preparation work for flutter-tizen/embedder#94

  • Now it is possible to create a partial app instead of a full screen as follows:
  Ecore_Wl2_Display* ecore_wl2_display_ = nullptr;
  ecore_wl2_init();
  ecore_wl2_display_ = ecore_wl2_display_connect(nullptr);
  ecore_wl2_sync();
  Ecore_Wl2_Window* ecore_wl2_window_ =
      ecore_wl2_window_new(ecore_wl2_display_, nullptr, 100, 100, 500, 600);
  ecore_wl2_window_type_set(ecore_wl2_window_,
                            ECORE_WL2_WINDOW_TYPE_TOPLEVEL);
  ecore_wl2_window_alpha_set(ecore_wl2_window_, false);
  ecore_wl2_window_position_set(ecore_wl2_window_, 0, 0);
  ecore_wl2_window_aux_hint_add(ecore_wl2_window_, 0,
                                "wm.policy.win.user.geometry", "1");
  
  FlutterDesktopEngineProperties engine_prop = {};
  engine_prop.assets_path = assets_path.c_str();
  engine_prop.icu_data_path = icu_data_path.c_str();
  engine_prop.aot_library_path = aot_lib_path.c_str();
  engine_prop.switches = switches.data();
  engine_prop.switches_count = switches.size();
  engine_prop.custom_win = ecore_wl2_window_;

* This is a necessary feature for partial window.

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
@bwikbs bwikbs mentioned this pull request Jun 14, 2021
@bwikbs bwikbs requested a review from bbrto21 June 17, 2021 04:59
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
@bbrto21 bbrto21 merged commit 638c395 into flutter-tizen:experimental_FlutterEngineGroup Jun 18, 2021
bwikbs added a commit to bwikbs/engine that referenced this pull request Jun 22, 2021
* Support user made window

* This is a necessary feature for partial window.

Signed-off-by: MuHong Byun <mh.byun@samsung.com>

* Apply Review's commit

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants