Lines Matching refs:shell
61 struct ivishell *shell; member
70 struct ivishell *shell; member
81 struct ivishell *shell; member
186 const struct ivi_layout_interface *lyt = ctrl->shell->interface; in send_surface_configure_event()
238 const struct ivi_layout_interface *lyt = ivisurf->shell->interface; in send_surface_prop()
289 const struct ivi_layout_interface *lyt = ivilayer->shell->interface; in send_layer_prop()
319 const struct ivi_layout_interface *lyt = ctrl->shell->interface; in controller_set_surface_opacity()
349 const struct ivi_layout_interface *lyt = ctrl->shell->interface; in controller_set_surface_source_rectangle()
392 const struct ivi_layout_interface *lyt = ctrl->shell->interface; in controller_set_surface_destination_rectangle()
438 const struct ivi_layout_interface *lyt = ctrl->shell->interface; in controller_set_surface_visibility()
503 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
506 struct weston_compositor *compositor = ctrl->shell->compositor;
596 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
604 ivisurf = get_surface(&ctrl->shell->list_surface, layout_surface);
628 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
642 ivisurf = get_surface(&ctrl->shell->list_surface, layout_surface);
685 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
698 ivisurf = get_surface(&ctrl->shell->list_surface, layout_surface);
732 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
764 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
802 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
837 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
859 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
880 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
926 set_bkgnd_surface_prop(struct ivishell *shell) argument
942 view = shell->bkgnd_view;
943 compositor = shell->compositor;
945 wl_list_remove(&shell->bkgnd_transform.link);
946 weston_matrix_init(&shell->bkgnd_transform.matrix);
973 &shell->bkgnd_transform.matrix);
974 weston_matrix_translate(&shell->bkgnd_transform.matrix, x, y, 0.0f);
980 &shell->bkgnd_transform.link);
992 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1023 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1054 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1068 ivilayer = get_layer(&ctrl->shell->list_layer, layout_layer);
1084 ivilayer = get_layer(&ctrl->shell->list_layer, layout_layer);
1110 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1123 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1143 const struct ivi_layout_interface *lyt = ctrl->shell->interface;
1197 lyt = iviscrn->shell->interface;
1217 lyt = iviscrn->shell->interface;
1245 lyt = iviscrn->shell->interface;
1433 lyt = iviscrn->shell->interface;
1471 ans = controller->shell->interface->commit_changes();
1490 wl_list_for_each(iviscrn, &ctrl->shell->list_screen, link) {
1524 wl_list_for_each(iviscrn, &ctrl->shell->list_screen, link) {
1577 struct ivishell *shell = data; local
1602 controller->shell = shell;
1606 wl_list_insert(&shell->list_controller, &controller->link);
1610 wl_list_for_each_reverse(ivisurf, &shell->list_surface, link) {
1611 surface_id = shell->interface->get_id_of_surface(ivisurf->layout_surface);
1615 wl_list_for_each_reverse(ivilayer, &shell->list_layer, link) {
1616 layer_id = shell->interface->get_id_of_layer(ivilayer->layout_layer);
1622 create_screen(struct ivishell *shell, struct weston_output *output) argument
1634 id = output->id + shell->screen_id_offset;
1636 wl_array_for_each(screen_info, &shell->screen_ids) {
1644 iviscrn->shell = shell;
1649 wl_list_insert(&shell->list_screen, &iviscrn->link);
1672 struct ivishell *shell = wl_container_of(listener, shell, output_destroyed); local
1677 wl_list_for_each_safe(iviscrn, next, &shell->list_screen, link) {
1682 if (shell->bkgnd_view && shell->client)
1683 set_bkgnd_surface_prop(shell);
1685 weston_compositor_schedule_repaint(shell->compositor);
1691 struct ivishell *shell = wl_container_of(listener, shell, output_destroyed); local
1693 if (shell->bkgnd_view && shell->client)
1694 set_bkgnd_surface_prop(shell);
1700 struct ivishell *shell = wl_container_of(listener, shell, output_created); local
1703 create_screen(shell, created_output);
1705 if (shell->bkgnd_view && shell->client)
1706 set_bkgnd_surface_prop(shell);
1708 weston_compositor_schedule_repaint(shell->compositor);
1712 create_layer(struct ivishell *shell, argument
1716 const struct ivi_layout_interface *lyt = shell->interface;
1726 ivilayer->shell = shell;
1727 wl_list_insert(&shell->list_layer, &ivilayer->link);
1735 wl_list_for_each(controller, &shell->list_controller, link) {
1753 create_surface(struct ivishell *shell, argument
1757 const struct ivi_layout_interface *lyt = shell->interface;
1768 ivisurf->shell = shell;
1777 if (shell->bkgnd_surface_id != (int32_t)id_surface) {
1778 wl_list_insert(&shell->list_surface, &ivisurf->link);
1780 wl_list_for_each(controller, &shell->list_controller, link) {
1789 shell->bkgnd_surface = ivisurf;
1798 struct ivishell *shell = wl_container_of(listener, shell, layer_created); local
1799 const struct ivi_layout_interface *lyt = shell->interface;
1807 ivilayer = create_layer(shell, layout_layer, id_layer);
1817 struct ivishell *shell = wl_container_of(listener, shell, layer_removed); local
1825 ivilayer = get_layer(&shell->list_layer, layout_layer);
1842 id_layer = shell->interface->get_id_of_layer(layout_layer);
1844 wl_list_for_each(controller, &shell->list_controller, link) {
1854 struct ivishell *shell = wl_container_of(listener, shell, surface_created); local
1855 const struct ivi_layout_interface *lyt = shell->interface;
1863 ivisurf = create_surface(shell, layout_surface, id_surface);
1869 if (shell->bkgnd_surface_id != (int32_t)id_surface)
1870 wl_signal_emit(&shell->ivisurface_created_signal, ivisurf);
1876 struct ivishell *shell = wl_container_of(listener, shell, surface_removed); local
1884 ivisurf = get_surface(&shell->list_surface, layout_surface);
1890 wl_signal_emit(&shell->ivisurface_removed_signal, ivisurf);
1903 id_surface = shell->interface->get_id_of_surface(layout_surface);
1905 if ((shell->bkgnd_surface_id == (int32_t)id_surface) &&
1906 shell->bkgnd_view) {
1907 weston_layer_entry_remove(&shell->bkgnd_view->layer_link);
1908 weston_view_destroy(shell->bkgnd_view);
1911 wl_list_for_each(controller, &shell->list_controller, link) {
1920 struct ivishell *shell = wl_container_of(listener, shell, surface_configured); local
1921 const struct ivi_layout_interface *lyt = shell->interface;
1931 if (shell->bkgnd_surface_id == (int32_t)surface_id) {
1934 if (!shell->bkgnd_view) {
1937 alpha = ((shell->bkgnd_color >> 24) & 0xFF) / 255.0F;
1938 red = ((shell->bkgnd_color >> 16) & 0xFF) / 255.0F;
1939 green = ((shell->bkgnd_color >> 8) & 0xFF) / 255.0F;
1940 blue = (shell->bkgnd_color & 0xFF) / 255.0F;
1944 wl_list_init(&shell->bkgnd_transform.link);
1945 shell->bkgnd_view = weston_view_create(w_surface);
1946 weston_layer_entry_insert(&shell->bkgnd_layer.view_list,
1947 &shell->bkgnd_view->layer_link);
1950 set_bkgnd_surface_prop(shell);
1954 ivisurf = get_surface(&shell->list_surface, layout_surface);
1983 check_layout_layers(struct ivishell *shell) argument
1987 const struct ivi_layout_interface *lyt = shell->interface;
2006 ivilayer = create_layer(shell, pArray[i], id_layer);
2019 check_layout_surfaces(struct ivishell *shell) argument
2023 const struct ivi_layout_interface *lyt = shell->interface;
2042 ivisurf = create_surface(shell, pArray[i], id_surface);
2055 destroy_screen_ids(struct ivishell *shell) argument
2059 wl_array_for_each(screen_info, &shell->screen_ids) {
2063 wl_array_release(&shell->screen_ids);
2067 get_config(struct weston_compositor *compositor, struct ivishell *shell) argument
2084 &shell->screen_id_offset, 0);
2088 &shell->ivi_client_name, NULL);
2092 &shell->bkgnd_surface_id, -1);
2096 &shell->debug_scopes, NULL);
2100 &shell->bkgnd_color, 0xFF000000);
2104 &shell->enable_cursor, 0);
2106 wl_array_init(&shell->screen_ids);
2127 screen_info = wl_array_add(&shell->screen_ids,
2146 struct ivishell *shell = local
2147 wl_container_of(listener, shell, destroy_listener);
2149 if (shell->client) {
2150 wl_list_remove(&shell->client_destroy_listener.link);
2151 wl_client_destroy(shell->client);
2154 wl_list_remove(&shell->destroy_listener.link);
2156 wl_list_remove(&shell->output_created.link);
2157 wl_list_remove(&shell->output_destroyed.link);
2158 wl_list_remove(&shell->output_resized.link);
2160 wl_list_remove(&shell->surface_configured.link);
2161 wl_list_remove(&shell->surface_removed.link);
2162 wl_list_remove(&shell->surface_created.link);
2164 wl_list_remove(&shell->layer_removed.link);
2165 wl_list_remove(&shell->layer_created.link);
2168 &shell->list_surface, link) {
2174 &shell->list_layer, link) {
2180 &shell->list_screen, link) {
2184 destroy_screen_ids(shell);
2185 free(shell);
2189 init_ivi_shell(struct weston_compositor *ec, struct ivishell *shell) argument
2191 const struct ivi_layout_interface *lyt = shell->interface;
2195 shell->compositor = ec;
2197 wl_list_init(&shell->list_surface);
2198 wl_list_init(&shell->list_layer);
2199 wl_list_init(&shell->list_screen);
2200 wl_list_init(&shell->list_controller);
2203 create_screen(shell, output);
2206 create_screen(shell, output);
2209 ret = check_layout_layers(shell);
2214 ret = check_layout_surfaces(shell);
2219 shell->layer_created.notify = layer_event_create;
2220 shell->layer_removed.notify = layer_event_remove;
2222 lyt->add_listener_create_layer(&shell->layer_created);
2223 lyt->add_listener_remove_layer(&shell->layer_removed);
2225 shell->surface_created.notify = surface_event_create;
2226 shell->surface_removed.notify = surface_event_remove;
2227 shell->surface_configured.notify = surface_event_configure;
2229 lyt->add_listener_create_surface(&shell->surface_created);
2230 lyt->add_listener_remove_surface(&shell->surface_removed);
2231 lyt->add_listener_configure_surface(&shell->surface_configured);
2233 shell->output_created.notify = output_created_event;
2234 shell->output_destroyed.notify = output_destroyed_event;
2235 shell->output_resized.notify = output_resized_event;
2237 wl_signal_add(&ec->output_created_signal, &shell->output_created);
2238 wl_signal_add(&ec->output_destroyed_signal, &shell->output_destroyed);
2239 wl_signal_add(&ec->output_resized_signal, &shell->output_resized);
2241 wl_signal_init(&shell->ivisurface_created_signal);
2242 wl_signal_init(&shell->ivisurface_removed_signal);
2247 struct ivishell *shell) argument
2250 shell, bind_ivi_controller) == NULL) {
2258 load_input_module(struct ivishell *shell) argument
2260 struct weston_config *config = wet_get_config(shell->compositor);
2264 int (*input_module_init)(struct ivishell *shell);
2279 if (input_module_init(shell) != 0) {
2290 load_screen_info_module(struct ivishell *shell) argument
2292 struct weston_config *config = wet_get_config(shell->compositor);
2296 int (*screen_info_module_init)(struct ivishell *shell);
2311 if (screen_info_module_init(shell) != 0) {
2324 struct ivishell *shell = wl_container_of(listener, shell, local
2327 weston_log("ivi shell client %p destroyed \n", shell->client);
2329 wl_list_remove(&shell->client_destroy_listener.link);
2330 shell->client = NULL;
2336 struct ivishell *shell = local
2340 sprintf(option, "%d", shell->bkgnd_surface_id);
2342 if (shell->debug_scopes) {
2343 setenv(IVI_CLIENT_DEBUG_SCOPES_ENV_NAME, shell->debug_scopes, 0x1);
2344 free(shell->debug_scopes);
2346 if(shell->enable_cursor) {
2347 sprintf(option, "%d", shell->enable_cursor);
2351 shell->client = weston_client_start(shell->compositor,
2352 shell->ivi_client_name);
2354 shell->client_destroy_listener.notify = ivi_shell_client_destroy;
2355 wl_client_add_destroy_listener(shell->client,
2356 &shell->client_destroy_listener);
2358 free(shell->ivi_client_name);
2361 static int load_id_agent_module(struct ivishell *shell) argument
2363 struct weston_config *config = wet_get_config(shell->compositor);
2383 if (id_agent_module_init(shell->compositor, shell->interface) != 0) {
2403 struct ivishell *shell; local
2408 shell = malloc(sizeof *shell);
2409 if (shell == NULL)
2412 memset(shell, 0, sizeof *shell);
2414 shell->interface = ivi_layout_get_api(compositor);
2415 if (!shell->interface) {
2416 free(shell);
2421 get_config(compositor, shell);
2424 if (shell->bkgnd_surface_id && shell->ivi_client_name) {
2425 weston_layer_init(&shell->bkgnd_layer, compositor);
2426 weston_layer_set_position(&shell->bkgnd_layer,
2430 init_ivi_shell(compositor, shell);
2432 if (setup_ivi_controller_server(compositor, shell)) {
2433 destroy_screen_ids(shell);
2434 free(shell);
2438 if (load_input_module(shell) < 0) {
2439 destroy_screen_ids(shell);
2440 free(shell);
2444 if (load_screen_info_module(shell) < 0) {
2445 destroy_screen_ids(shell);
2446 free(shell);
2454 shell->destroy_listener.notify = ivi_shell_destroy;
2455 wl_signal_add(&compositor->destroy_signal, &shell->destroy_listener);
2457 if (shell->bkgnd_surface_id && shell->ivi_client_name) {
2459 wl_event_loop_add_idle(loop, launch_client_process, shell);
2462 if (load_id_agent_module(shell) < 0) {