Go to index / Go to protocols

ivi_hmi_controller ↗

ivi_hmi_controller
ivi_hmi_controller

Version 1

set up and control IVI style UI

ivi_hmi_controller
request UI_ready()

    inform the ready for drawing desktop.

    ivi_hmi_controller
    request workspace_control(
        seat: object<wl_seat>,
        serial: uint,
    )

      start controlling a surface by server

      Reference protocol to control a surface by server. To control a surface by server, it gives seat to the server to e.g. control Home screen. Home screen has several workspaces to group launchers of wayland application. These workspaces are drawn on a horizontally long surface to be controlled by motion of input device. E.g. A motion from right to left happens, the viewport of surface is controlled in the ivi-shell by using ivi-layout. client can recognizes the end of controlling by event "workspace_end_control".

      ivi_hmi_controller
      enum layout_mode {
          tiling = 0,
          side_by_side = 1,
          full_screen = 2,
          random = 3,
      }
        ivi_hmi_controller
        request switch_mode(
            layout_mode: uint,
        )

          request mode switch of application layout

          hmi-controller loaded to ivi-shall implements 4 types of layout as a reference; tiling, side by side, full_screen, and random.

          ivi_hmi_controller
          enum home {
              off = 0,
              on = 1,
          }
            ivi_hmi_controller
            request home(
                home: uint,
            )

              request displaying/undisplaying home screen

              home screen is a reference implementation of launcher to launch wayland applications. The home screen has several workspaces to group wayland applications. By defining the following keys in weston.ini, user can add launcher icon to launch a wayland application to a workspace. [ivi-launcher] workspace-id=0 : id of workspace to add a launcher icon-id=4001 : ivi id of ivi_surface to draw an icon icon=/home/user/review/build-ivi-shell/data/icon_ivi_flower.png : path to icon image path=/home/user/review/build-ivi-shell/weston-dnd : path to wayland application

              ivi_hmi_controller
              event workspace_end_control(
                  is_controlled: int,
              )

                notify controlling workspace end