Tizen extension
- external
tizen_surface
tizen_surface 为给定的 surface 提供 Tizen 平台特有的功能。
get_tizen_resource(id: new_id<tizen_resource>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_resource> | the new tizen_resource object |
| surface | object<wl_surface> | the surface object |
为给定的 surface 创建一个 tizen_resource 接口。
tizen_resource
此 tizen_resource 提供一个全局资源 ID。它是由 display server 提供的唯一标识符。
tizen_policy
tizen_policy 为 Tizen 平台上的窗口管理提供 Tizen 平台特有的请求和事件。
[TODO] 解释 display server 中的窗口层。需要解释窗口层以理解 tizen_policy 接口中的请求和事件。
get_visibility(id: new_id<tizen_visibility>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_visibility> | the new visibility object |
| surface | object<wl_surface> | the surface object |
为给定的 surface 创建一个可见性接口。
get_position(id: new_id<tizen_position>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_position> | the new position object |
| surface | object<wl_surface> | the surface object |
为给定的 surface 创建一个位置接口。 [TODO]: 需要解释与 zxdg_positioner_v6 的关系
activate(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
激活给定的 surface。当客户端希望将窗口提升到窗口层中窗口栈的顶部,并希望从 display server 获取键盘焦点时,会发送此请求。但 display server 并不总是在请求的 surface 上设置焦点,这取决于 display server 的焦点策略。客户端仅通过此请求表达获取键盘焦点的意愿。
activate_below_by_res_id(res_id: uint, below_res_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| res_id | uint | the global resource id |
| below_res_id | uint | the global resource id |
激活与给定 res_id 关联的 surface,并将其定位在与 below_res_id 关联的 surface 下方。当客户端希望使用属于不同进程的全局资源 ID 来更改窗口栈顺序时,可以使用此请求。但当与 below_res_id 关联的 surface 是与 res_id 关联的 surface 的父级时,此请求不起作用。
raise(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
此请求将给定的 surface 提升到窗口层中窗口栈的顶部。客户端可以通过 tizen_policy 接口的 set_type 请求为给定的 surface 设置 window_type 来决定窗口层。该 surface 将位于窗口层的顶部。
lower(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
此请求将给定的 surface 降低到窗口层中窗口栈的底部。该 surface 将位于窗口层的底部。
lower_by_res_id(res_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| res_id | uint | the global resource id |
此请求将与给定 res_id 关联的 surface 降低到窗口层中窗口栈的底部。该 surface 将位于窗口层的底部。
set_focus_skip(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
此请求使给定的 surface 无法成为焦点 surface。display server 不得将焦点授予该 surface。
unset_focus_skip(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
此请求使给定的 surface 能够成为焦点 surface。
set_role(surface: object<wl_surface>, role: string)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| role | string | the name of the role |
为给定的 surface 设置角色。客户端可以设置 Tizen 平台特有的 surface 角色,但不包括 xdg_surface 接口的角色,如 xdg_toplevel、xdg_popup 等。
set_type(surface: object<wl_surface>, win_type: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| win_type | uint | the window type |
设置给定 surface 的类型。display server 使用窗口类型来决定窗口管理策略,包括焦点管理、可见性管理、栈管理等。
set_conformant(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
设置 conformant surface。conformant surface 可以接收事件,通过该事件 display server 通知由 conformant_part(即另一个客户端中的 surface)覆盖的区域。
unset_conformant(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
取消设置 conformant surface。
get_conformant(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
查询给定的 surface 是否为 conformant surface。display server 通过 conformant 事件发送结果。
set_notification_level(surface: object<wl_surface>, level: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| level | int | the z-order value |
此请求设置通知层中的级别。display server 根据给定的级别决定通知层中的 z 轴顺序。
参数 | 类型 | 描述 |
|---|---|---|
| child_id | uint | the global resource id for the child surface |
| parent_id | uint | the globacl resource is for the parent surface |
此请求为与 parent_id 关联的 surface 设置 transient 父级。与给定 child_id 关联的 surface 成为与 parent_id 关联的 surface 的 transient 子级。
unset_transient_for(child_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| child_id | uint | the global resource id for the child surface |
此请求取消与 child_id 关联的 surface 上的 transient 父级关系。
set_window_screen_mode(surface: object<wl_surface>, mode: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| mode | uint | the screen mode |
客户端设置屏幕模式,只要给定的 surface 显示在屏幕上,屏幕就会保持该模式。
place_subsurface_below_parent(subsurface: object<wl_subsurface>)
参数 | 类型 | 描述 |
|---|---|---|
| subsurface | object<wl_subsurface> | the subsurface object |
此请求将子 surface 的 surface 放置在其父 surface 的下方。
set_subsurface_stand_alone(subsurface: object<wl_subsurface>)
参数 | 类型 | 描述 |
|---|---|---|
| subsurface | object<wl_subsurface> | the subsurface object |
此请求使与给定子 surface 关联的 surface 不再遵循由父 surface 触发的窗口管理策略。与给定子 surface 关联的 surface 的窗口策略不受其父 surface 的影响。
get_subsurface(id: new_id<wl_subsurface>, surface: object<wl_surface>, parent_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<wl_subsurface> | the new subsurface object |
| surface | object<wl_surface> | the surface object |
| parent_id | uint | the global reosurce id |
通过全局资源 parent_id 获取给定 surface 的子 surface。
set_opaque_state(surface: object<wl_surface>, state: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| state | int |
为给定 surface 设置不透明状态。display server 使此 surface 不透明,即使附加到该 surface 的缓冲区颜色深度为 32 位。
iconify(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
为给定 surface 设置最小化状态。最小化状态是一种窗口状态,此时 surface 不显示在屏幕上。
uniconify(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
为给定 surface 设置取消最小化状态。取消最小化状态是一种窗口状态,此时最小化的 surface 重新显示在屏幕上。
add_aux_hint(surface: object<wl_surface>, id: int, name: string, value: string)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| id | int | the id of the auxiliary hint |
| name | string | the name of the auxiliary hint |
| value | string | the vaule of the auxiliary hint |
为给定的 surface 添加辅助提示信息。当 display server 已经拥有客户端发送此请求时使用的相同 ID 时,名称和值会被更改。
change_aux_hint(surface: object<wl_surface>, id: int, value: string)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| id | int | the id of the auxiliary hint |
| value | string | the vaule of the auxiliary hint |
更改 surface 拥有的辅助提示 ID 的值。
del_aux_hint(surface: object<wl_surface>, id: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| id | int | the id of the auxiliary hint |
删除与给定 surface 拥有的提示 ID 关联的辅助提示信息。
get_supported_aux_hints(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
获取给定 surface 支持的辅助提示 ID。display server 发送 supported_aux_hints 事件作为此请求的回复。
set_background_state(pid: uint)
参数 | 类型 | 描述 |
|---|---|---|
| pid | uint | the process id |
将与给定 PID 关联的所有 surface 设置为后台状态。这些 surface 被设置为隐藏状态,即使客户端发送显示请求和激活请求,也无法在屏幕上显示。
unset_background_state(pid: uint)
参数 | 类型 | 描述 |
|---|---|---|
| pid | uint | the process id |
将与给定 PID 关联的所有 surface 取消后台状态。这些 surface 可以根据客户端的请求进行显示和激活。
set_floating_mode(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
为给定的 surface 设置浮动模式。设置为浮动模式的 surface 可以作为浮动窗口,并可以定位在其他顶层窗口之上。
unset_floating_mode(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
取消给定 surface 的浮动模式。surface 的几何形状不会改变,其 z 轴顺序与顶层窗口相同。
set_stack_mode(surface: object<wl_surface>, mode: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| mode | uint | the stack mode |
为给定的 surface 设置栈模式。surface 可以通过栈模式在同一层中更改 z 轴顺序。
activate_above_by_res_id(res_id: uint, above_res_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| res_id | uint | the global resource id |
| above_res_id | uint | the globacl resource id |
激活与给定 res_id(全局资源 ID)关联的 surface,并将其定位在与 above_res_id 关联的 surface 之上。
get_subsurface_watcher(id: new_id<tizen_subsurface_watcher>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_subsurface_watcher> | new tizen_subsurface_watcher object |
| surface | object<wl_surface> | the surface object |
获取与给定 surface 关联的子 surface 监视器。客户端可以获取与该 surface 关联的子 surface 的信息。
set_parent(child: object<wl_surface>, parent: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| child | object<wl_surface> | the surface object |
| parent | object<wl_surface> | the surface object |
设置父子关系。子 surface 位于父 surface 之上。
ack_conformant_region(surface: object<wl_surface>, serial: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| serial | uint | serial number |
客户端可以刷新其 surface 以应用来自 tizen_policy@conformant_region 事件的新 conformant 区域。客户端必须在此请求完成更新后进行确认。
has_video(surface: object<wl_surface>, has: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| has | uint | 1 is the tizen_video_object, or 0 |
客户端向 display server 发送信息,表明其拥有 tizen_video_object。
设置与给定 PID 关联的应用程序 ID。
show(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
通知显示给定的 surface。此请求表示客户端将向给定的 surface 附加缓冲区。当客户端发送此请求时,display server 不执行任何操作。
hide(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
通知隐藏给定的 surface。此请求表示客户端将向给定的 surface 附加空缓冲区。当客户端发送此请求时,display server 不执行任何操作。
建立父子关系。子级始终放置在父级下方。
set_parent_with_below(child: object<wl_surface>, parent: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| child | object<wl_surface> | the surface object |
| parent | object<wl_surface>允许为空 |
建立父子关系。子级始终放置在父级下方。为子窗口设置空父级将移除该子级的任何父子关系。
set_maximize_direction(surface: object<wl_surface>, direction: uint<tizen_policy.maximize_direction>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| direction | uint<tizen_policy.maximize_direction> | maximize direction |
设置 surface 的最大化方向。
set_pin_mode(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
设置 surface 的固定模式。
unset_pin_mode(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
取消 surface 的固定模式。
set_layout(surface: object<wl_surface>, num_cols: uint, num_rows: uint, column: uint, row: uint, cols_span: uint, rows_span: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| num_cols | uint | the total number of columns |
| num_rows | uint | the total number of rows |
| column | uint | the column number to be positioned |
| row | uint | the row number to be positioned |
| cols_span | uint | the columns span |
| rows_span | uint | the rows span |
使用传入的坐标设置 surface 的布局。
set_modal(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
设置 surface 的模态状态。
unset_modal(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
取消 surface 的模态状态。
conformant(surface: object<wl_surface>, is_conformant: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| is_conformant | uint | if the surface is conformant or not, 0 or 1 |
当客户端发送 get_conformant 请求时通知客户端。
conformant_area(surface: object<wl_surface>, conformant_part: uint, state: uint, x: int, y: int, w: int, h: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| conformant_part | uint | the name of the conformant part |
| state | uint | visible(1) or not(0) |
| x | int | x position of the hiding area by conformant part |
| y | int | y position of the hiding area by conformant part |
| w | int | width of the hiding area by conformant part |
| h | int | height of the hiding area by conformant part |
当 conformant 区域由另一个 surface 作为 conformant_part 计算时通知客户端。此事件不保证 conformant surface 和 conformant part 的 surface 之间的完美组合。
notification_done(surface: object<wl_surface>, level: int, error_state: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| level | int | the z-order value |
| error_state | uint | the error type |
当 surface 位于通过 set_notification_level 请求请求的 z 轴顺序位置时通知客户端。
transient_for_done(child_id: uint)
参数 | 类型 | 描述 |
|---|---|---|
| child_id | uint | the global resource id for the child surface |
当与 child_id 关联的 surface 设置或取消 transient 父级时通知客户端。
window_screen_mode_done(surface: object<wl_surface>, mode: uint, error_state: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| mode | uint | the screen mode |
| error_state | uint | the error type |
当客户端请求的 screen_mode 在 display server 中激活时通知客户端。
iconify_state_changed(surface: object<wl_surface>, iconified: uint, force: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| iconified | uint | the iconfied or uniconified state, 1 or 0 |
| force | uint | the iconfied is forced or not, 1 or 0 |
当 surface 的最小化状态发生变化时通知客户端。最小化状态不仅在客户端请求最小化和取消最小化时改变,也会在 display server 决定最小化状态时改变。
supported_aux_hints(surface: object<wl_surface>, hints: array, num_hints: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| hints | array | the id array of the auxiliary hints |
| num_hints | uint | the number of hints |
当 display server 收到 get_supported_aux_hints 请求时通知客户端。display server 发送该 surface 支持的辅助提示 ID 数组。
allowed_aux_hint(surface: object<wl_surface>, id: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| id | int | the id of the auxiliary hint |
当给定 surface 的辅助提示被添加和更改时通知客户端。
aux_message(surface: object<wl_surface>, key: string, value: string, options: array)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| key | string | the key string |
| value | string | the vaule of the key |
| options | array | the array of option information |
当 display server 发送辅助消息时通知客户端。当 display server 需要向客户端通知附加信息时,可以使用此事件。
conformant_region(surface: object<wl_surface>, conformant_part: uint, state: uint, x: int, y: int, w: int, h: int, serial: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| conformant_part | uint | the name of the conformant part |
| state | uint | visible(1) or not(0) |
| x | int | x position of the hiding area by conformant part |
| y | int | y position of the hiding area by conformant part |
| w | int | width of the hiding area by conformant part |
| h | int | height of the hiding area by conformant part |
| serial | uint | serail number |
服务器可以使用此事件通知 conformant 区域(面积)。如果客户端收到此事件,应使用 tizen_policy@ack_conformant_region 请求进行确认。
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| x | int | x-position after move |
| y | int | y-position after move |
| w | uint | width after move |
| h | uint | height after move |
| angle | int | current angle of surface |
当 display server 完成交互式移动窗口时发送此事件。窗口更改后的几何信息会一起发送。
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| x | int | x-position after resize |
| y | int | y-position after resize |
| w | uint | width after resize |
| h | uint | height after resize |
| angle | int | current angle of surface |
当 display server 完成交互式调整窗口大小时发送此事件。窗口更改后的几何信息会一起发送。
win_type { none, toplevel, fullscreen, maximized, transient, menu, dnd, custom, notification, utility, dialog, dock, splash, desktop }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无 |
| toplevel | 1 | 顶层 |
| fullscreen | 2 | 全屏状态 |
| maximized | 3 | 最大化状态 |
| transient | 4 | transient 关系状态 |
| menu | 5 | 菜单 |
| dnd | 6 | 拖放 |
| custom | 7 | 自定义 |
| notification | 8 | 通知 |
| utility | 9 | 工具 |
| dialog | 10 | 对话框 |
| dock | 11 | 停靠栏 |
| splash | 12 | 启动画面 |
| desktop起始版本 11 | 13 | 桌面 |
客户端可以通过 set_type 请求使用 win_type 值设置窗口类型。该值赋予 surface 窗口状态、窗口层中窗口栈的 z 轴顺序以及 display server 中的其他类型。
以下是按 z 轴顺序降序排列的窗口类型值。依次为:notification、dnd、dock、splash、fullscreen、toplevel 或 maximized、desktop。 menu、dnd、notification、utility、dialog、dock、splash 和 desktop 是 netwm 规范中定义的窗口类型。 https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html#idm46148902270160
此值表示 Tizen 平台上的 surface 名称。
参数 | 值 | 描述 |
|---|---|---|
| 1 | 0 | 底部默认 z 轴顺序 |
| 2 | 1 | 底部中等 z 轴顺序 |
| 3 | 2 | 底部高 z 轴顺序 |
| none | -1 | 底部最低 z 轴顺序 |
| default | 10 | 默认 z 轴顺序 |
| medium | 20 | 中等 z 轴顺序 |
| high | 30 | 高 z 轴顺序 |
| top | 40 | 顶部 z 轴顺序 |
这是通知类型的级别。此级别代表 display server 中通知层的 z 轴顺序。none、1、2、3、default、medium、high 和 top 按 z 轴顺序升序排列。数值越小表示 z 轴顺序越低。
set_stack_mode 请求使用此模式值。
tizen_visibility
客户端希望了解 surface 的可见性信息。
changed(type: uint<tizen_visibility.visibility>, option: uint)
参数 | 类型 | 描述 |
|---|---|---|
| type | uint<tizen_visibility.visibility> | changed visibility type |
| option | uint | extra value |
当 surface 的可见性发生变化并带有额外值时通知客户端。
visibility { unobscured, partially_obscured, fully_obscured, pre_unobscured }
参数 | 值 | 描述 |
|---|---|---|
| unobscured | 0 | 完全显示在屏幕上 |
| partially_obscured | 1 | 部分显示在屏幕上 |
| fully_obscured | 2 | 不显示在屏幕上 |
| pre_unobscured起始版本 5 | 3 | 准备变为完全可见 |
这些是可见性类型,用于说明与 tizen_visibility 资源关联的 surface 在屏幕上的显示状态。
destroy()
geometry_done(surface: object<wl_surface>, serial: uint, x: int, y: int, w: int, h: int, error_state: uint<tizen_move_resize.error_state>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| serial | uint | |
| x | int | |
| y | int | |
| w | int | |
| h | int | |
| error_state | uint<tizen_move_resize.error_state> |
error_state { none, invalid_buffer, not_supported }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | |
| invalid_buffer | 1 | |
| not_supported | 2 |
tizen_gesture
grab_edge_swipe(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint |
ungrab_edge_swipe(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint |
grab_edge_drag(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint |
ungrab_edge_drag(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint |
grab_palm_cover()
ungrab_palm_cover()
select_palm_cover(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
deselect_palm_cover(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
activate_set(surface: object<wl_surface>, type: uint<tizen_gesture.type>, active: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| type | uint<tizen_gesture.type> | |
| active | uint |
grab_edge_swipe_notify(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint, error: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint | |
| error | uint |
edge_swipe(mode: uint<tizen_gesture.mode>, fingers: uint, sx: int, sy: int, edge: uint<tizen_gesture.edge>)
参数 | 类型 | 描述 |
|---|---|---|
| mode | uint<tizen_gesture.mode> | |
| fingers | uint | |
| sx | int | x coordinate of touch down point |
| sy | int | y coordinate of touch down point |
| edge | uint<tizen_gesture.edge> |
edge_drag_notify(fingers: uint, edge: uint<tizen_gesture.edge>, edge_size: uint<tizen_gesture.edge_size>, start_point: uint, end_point: uint, error: uint)
参数 | 类型 | 描述 |
|---|---|---|
| fingers | uint | |
| edge | uint<tizen_gesture.edge> | |
| edge_size | uint<tizen_gesture.edge_size> | |
| start_point | uint | |
| end_point | uint | |
| error | uint |
edge_drag(mode: uint<tizen_gesture.mode>, fingers: uint, cx: int, cy: int, edge: uint<tizen_gesture.edge>)
参数 | 类型 | 描述 |
|---|---|---|
| mode | uint<tizen_gesture.mode> | |
| fingers | uint | |
| cx | int | x coordinate of center touch point |
| cy | int | y coordinate of center touch point |
| edge | uint<tizen_gesture.edge> |
tap(mode: uint<tizen_gesture.mode>, fingers: uint, repeats: uint)
参数 | 类型 | 描述 |
|---|---|---|
| mode | uint<tizen_gesture.mode> | |
| fingers | uint | |
| repeats | uint |
palm_cover_notify(surface: object<wl_surface>, error: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| error | uint |
palm_cover(surface: object<wl_surface>, mode: uint<tizen_gesture.mode>, duration: uint, cx: int, cy: int, size: uint, pressure: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| mode | uint<tizen_gesture.mode> | |
| duration | uint | |
| cx | int | x coordinate of center touch point |
| cy | int | y coordinate of center touch point |
| size | uint | |
| pressure | fixed |
activate_notify(surface: object<wl_surface>, type: uint<tizen_gesture.type>, active: uint, error: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| type | uint<tizen_gesture.type> | |
| active | uint | |
| error | uint |
error { none, invalid_data, no_permission, no_system_resources, grabbed_already, not_supported }
type { edge_swipe, edge_drag, tap, palm_cover, pan, pinch, palm_swipe }
参数 | 值 | 描述 |
|---|---|---|
| edge_swipe | 1 | |
| edge_drag起始版本 2 | 2 | |
| tap起始版本 2 | 4 | |
| palm_cover起始版本 2 | 8 | |
| pan起始版本 2 | 16 | |
| pinch起始版本 2 | 32 | |
| palm_swipe起始版本 2 | 64 |
tizen_keyrouter
传统上,键盘和附加了某些按键的设备上的所有按键默认发送到焦点 surface。目前可以为键盘和设备上的每个按键设置单独的焦点。因此,通过为 surface 设置按键捕获,当该 surface 拥有某个按键的捕获时,其所有者将收到该按键事件。
set_keygrab(surface: object<wl_surface>, key: uint, mode: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| key | uint | |
| mode | uint |
unset_keygrab(surface: object<wl_surface>, key: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| key | uint |
get_keygrab_status(surface: object<wl_surface>, key: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| key | uint |
set_keygrab_list(surface: object<wl_surface>, grab_list: array)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| grab_list | array | array of two integer variables pairs each pairs consist of keycode and keygrab mode |
unset_keygrab_list(surface: object<wl_surface>, ungrab_list: array)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| ungrab_list | array | array of integer variables meaning keycode wanted to ungrab |
get_keygrab_list(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 |
set_register_none_key(surface: object<wl_surface>, data: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| data | uint |
set_input_config(surface: object<wl_surface>, config_mode: uint, value: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| config_mode | uint | |
| value | uint |
keygrab_notify(surface: object<wl_surface>, key: uint, mode: uint, error: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| key | uint | |
| mode | uint | |
| error | uint |
keygrab_notify_list(surface: object<wl_surface>, grab_result: array)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| grab_result | array | array of three integer variables pairs each pairs consist of keycode, keygrab mode and keygrab result |
getgrab_notify_list(surface: object<wl_surface>, grab_result: array)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| grab_result | array | array of two integer variables pairs each pairs consist of keycode, keygrab mode |
set_register_none_key_notify(surface: object<wl_surface>, mode: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | |
| mode | uint |
event_surface(surface: object<wl_surface>, key: uint, mode: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| key | uint | |
| mode | uint |
error { none, invalid_surface, invalid_key, invalid_mode, grabbed_already, no_permission, no_system_resources, invalid_array }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无错误 |
| invalid_surface | 1 | 给定的 surface 无效 |
| invalid_key | 2 | 给定的按键无效 |
| invalid_mode | 3 | 给定的模式无效 |
| grabbed_already | 4 | 该按键已被捕获 |
| no_permission | 5 | wl 客户端没有捕获按键的权限 |
| no_system_resources | 6 | 系统资源不足 |
| invalid_array | 7 | 给定的数组包含无效的配对或数据类型 |
mode { none, shared, topmost, overridable_exclusive, exclusive, registered }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无 |
| shared | 1 | 当焦点客户端 surface 获取按键时,与其他客户端 surface 共享按键捕获的模式 |
| topmost | 2 | 当客户端 surface 位于最顶层时获取按键捕获的模式 |
| overridable_exclusive | 3 | 无论 surface 栈中的顺序如何,独占且可覆盖地获取按键捕获的模式 |
| exclusive | 4 | 无论 surface 栈中的顺序如何,独占地获取按键捕获的模式 |
| registered | 5 | 仅当请求 surface 位于注册该按键的 surface 顶部时才获取按键捕获的模式 |
此值用于设置按键捕获的模式。合成器将根据此模式和 surface 在 surface 栈中的顺序来确定目标客户端 surface。
config_mode { none, invisible_set, invisible_get, num_key_focus, picture_off }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无 |
| invisible_set | 1 | 设置窗口以将事件发送到栈中下方不可见窗口的模式 |
| invisible_get | 2 | 当任何顶层窗口已设置 register_set 时,设置窗口以获取不可见状态事件的模式 |
| num_key_focus | 3 | 为焦点窗口注册数字键的模式 |
| picture_off | 4 | 为特定按键设置关闭画面的模式 |
此值用于为窗口设置模式。合成器将根据此模式和 surface 在 surface 栈中的顺序来确定目标客户端 surface。
客户端可以从此接口获取 screenmirror 对象。
get_screenmirror(id: new_id<tizen_screenmirror>, output: object<wl_output>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_screenmirror> | new screenmirror object |
| output | object<wl_output> | output object for screenmirror |
在使用 screenmirror 之前,客户端应从 display server 获取 screenmirror 对象。
format(format: uint)
参数 | 类型 | 描述 |
|---|---|---|
| format | uint |
tbm 格式代码与 tbm_surface.h 中的 #define 匹配。合成器实际支持的格式将通过 format 事件报告。
done()
客户端可以使用此接口获取屏幕的流图像。启动前,先排队所有缓冲区。然后启动 screenmirror。启动后,当在缓冲区上绘制捕获的图像完成后,将发生出队事件。您可能需要将出队的缓冲区重新排队以从 display server 获取新图像。
destroy()
当用户希望从服务器取回缓冲区时,可以从 display server 出队缓冲区。
start()
stop()
当在缓冲区上绘制捕获的图像完成时发生。
tizen_video
客户端可以从此接口获取合成器能够处理的视频信息。
get_object(id: new_id<tizen_video_object>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_video_object> | |
| surface | object<wl_surface> | the surface object |
get_viewport(id: new_id<tizen_viewport>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_viewport> | |
| surface | object<wl_surface> | the surface object |
format(format: uint)
参数 | 类型 | 描述 |
|---|---|---|
| format | uint |
tbm 格式代码与 tbm_surface.h 中的 #define 匹配。合成器实际支持的格式将通过 format 事件报告。
error { none, object_exists, viewport_exists }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | |
| object_exists | 1 | |
| viewport_exists | 2 |
destroy()
follow_topmost_visibility()
如果 tizen_video_object.follow_topmost_visibility 应用于 video_object,将基于最顶层可见性进行视频静音控制。
unfollow_topmost_visibility()
如果 tizen_video_object.unfollow_topmost_visibility 应用于 video_object,将不基于最顶层可见性进行视频静音控制。
allowed_attribute()
如果 tizen_video_object.allowed_attribute 应用于 video_object,set_attribute 请求将直接传递到 tdm 后端。
disallowed_attribute()
如果 tizen_video_object.disallowed_attribute 应用于 video_object,当最顶层显示时将调用 tdm_attribute。
size(min_w: int, min_h: int, max_w: int, max_h: int, prefer_align: int)
参数 | 类型 | 描述 |
|---|---|---|
| min_w | int | |
| min_h | int | |
| max_w | int | |
| max_h | int | |
| prefer_align | int |
destroy()
销毁 tizen_subsurface_watcher。
tizen_viewport
这是 wl_viewport 的替代且便捷的解决方案,用于在屏幕上呈现 surface。
以下五个功能可以被此接口替代。将此接口应用于 surface 后,以下功能将被忽略:
- wl_surface.set_buffer_transform
- wl_surface.set_buffer_scale
- wl_subsurface.set_position
- wl_viewport.set_source
- wl_viewport.set_destination
wl_viewport.set_source 非常复杂,特别是当 wl_surface 的缓冲区通过 wl_surface.set_buffer_transform 进行变换时。当父级调整大小时,如果我们也想更改子 surface 的几何形状,需要在客户端每次调整父级大小时调用 wl_subsurface.set_position 和 wl_viewport.set_destination。这使得父 surface 和子 surface 在屏幕上的同步变得困难。
tizen_viewport 允许客户端在父 surface 中为子 surface 设置相对几何形状。每当父 surface 调整大小时,子 surface 的几何形状将由合成器自动计算、移动和调整大小。tizen_viewport 在子 surface 的父级坐标中指定。
如果 tizen_viewport 应用于 shell surface(toplevel),则与 x、y 位置相关的 tizen_viewport 和 tizen_destination_mode 接口的所有值将被忽略。
以下 3 个功能不考虑父 surface 的变换:
- tizen_viewport.set_source
- tizen_viewport.set_destination
- tizen_viewport.set_destination_ratio
此外,如果调用 tizen_destination_mode.follow_parent_transform,tizen_viewport 在将目标模式应用于子 surface 时将考虑父 surface 的变换。如果 tizen_destination_mode.follow_parent_transform 应用于 shell surface,它将被忽略。
目标将被父 surface 裁剪。
更改将在调用 wl_surface.commit 时生效。
destroy()
set_transform(transform: uint)
参数 | 类型 | 描述 |
|---|---|---|
| transform | uint |
transform 参数的可接受值是根据输出变换的 wl_output.transform 值。
tizen_viewport.set_transform 仅应用于自身。基本上它不影响其子 surface 的变换。也就是说,如果设置了 90 度变换,而其子 surface 仍然具有 0 度变换,则其子 surface 不会被旋转。
如果需要根据父 surface 旋转子 surface,tizen_destination_mode.follow_parent_transform 将使其成为可能。
当父级调整大小时,源矩形不会改变。如果需要更改,应使用新值调用 tizen_viewport.set_source。
当父级调整大小时,目标几何形状不会改变。如果需要更改,应使用新值调用 tizen_viewport.set_destination。
如果 tizen_viewport 应用于 shell surface(toplevel),tizen_viewport.set_destination 的 x、y 值将被忽略。
当父级调整大小时,子 surface 的目标矩形将自动更改。这允许使用 0.0 到 1.0 之间的实数。参见 wl_fixed_from_double 和 wl_fixed_to_double。
如果 tizen_viewport 应用于 shell surface(toplevel),tizen_viewport.set_destination_ratio 的 x、y 值将被忽略。
get_destination_mode(id: new_id<tizen_destination_mode>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_destination_mode> |
query_parent_size()
客户端可以请求 display server 发送 tizen_viewport 对象的父 surface 的大小。一旦客户端请求,每当父 surface 的大小发生变化时,"parent_size" 事件将被发送。
follow_parent_transform()
子 surface 的实际变换是(父级的变换 + 子 surface 的变换)。当父级旋转时,子 surface 将自动旋转。
如果 tizen_viewport.follow_parent_transform 应用于 shell surface(toplevel),它将被忽略。
unfollow_parent_transform()
当父级调整大小时,目标矩形将自动更改。当调用 tizen_destination_mode.set 时,tizen_viewport.set_destination 和 tizen_viewport.set_destination_ratio 的值将被忽略。
surface 的目标由模式、比例、缩放、偏移和对齐值决定。比例、缩放、偏移和对齐将按顺序应用。
更改将在调用 wl_surface.commit 时生效。
destroy()
follow_parent_transform()
子 surface 的实际变换是(父级的变换 + 子 surface 的变换)。也就是说,当父级旋转时,子 surface 将自动旋转。
如果 tizen_destination_mode.follow_parent_transform 应用于 shell surface(toplevel),它将被忽略。
unfollow_parent_transform()
set(mode: uint<tizen_destination_mode.type>)
参数 | 类型 | 描述 |
|---|---|---|
| mode | uint<tizen_destination_mode.type> |
set_ratio(horizontal: fixed, vertical: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| horizontal | fixed | |
| vertical | fixed |
这允许使用实数。参见 wl_fixed_from_double 和 wl_fixed_to_double。
set_scale(horizontal: fixed, vertical: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| horizontal | fixed | |
| vertical | fixed |
这允许使用实数。参见 wl_fixed_from_double 和 wl_fixed_to_double。
set_align(horizontal: fixed, vertical: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| horizontal | fixed | |
| vertical | fixed |
这允许使用 0.0 到 1.0 之间的实数。参见 wl_fixed_from_double 和 wl_fixed_to_double。
全局对象。Wayland 有 3 种类型的合成器,嵌入式合成器是其中之一。但 Tizen 应用程序被 smack 沙箱化,因此应用程序不允许通过套接字与其他应用程序通信。所以系统或会话合成器创建套接字并发送给嵌入式合成器。
destroy()
Tizen 输入设备管理器是一个全局接口。此对象具有设备添加/移除事件,用于向客户端提供 Tizen 输入设备对象。这允许客户端获取设备信息。
请确保在绑定 wl_seat 接口之后绑定此接口。 Tizen 输入设备管理器接口仅会为属于客户端绑定的 wl_seat 对象的设备提供设备添加/移除事件。因此,合成器只需要为当前客户端的 seat 创建/发送设备添加/移除事件。
block_events(serial: uint, clas: uint<tizen_input_device_manager.clas>, duration: uint)
参数 | 类型 | 描述 |
|---|---|---|
| serial | uint | |
| clas | uint<tizen_input_device_manager.clas> | |
| duration | uint | time duration with millisecond granularity |
此请求允许客户端请求为其目的阻止一个或多个事件。通过在请求中指定 class 作为参数,属于该 class 的事件将在给定持续时间内被阻止。请注意,如果出现任何错误,将发送错误事件。
unblock_events(serial: uint)
参数 | 类型 | 描述 |
|---|---|---|
| serial | uint |
此请求允许客户端请求释放客户端的现有阻止。请注意,如果客户端没有现有阻止,则不会发送错误事件。
init_generator(clas: uint<tizen_input_device_manager.clas>)
参数 | 类型 | 描述 |
|---|---|---|
| clas | uint<tizen_input_device_manager.clas> |
deinit_generator(clas: uint<tizen_input_device_manager.clas>)
参数 | 类型 | 描述 |
|---|---|---|
| clas | uint<tizen_input_device_manager.clas> |
generate_pointer(type: uint<tizen_input_device_manager.pointer_event_type>, x: uint, y: uint, button: uint)
参数 | 类型 | 描述 |
|---|---|---|
| type | uint<tizen_input_device_manager.pointer_event_type> | |
| x | uint | |
| y | uint | |
| button | uint |
generate_touch(type: uint<tizen_input_device_manager.pointer_event_type>, x: uint, y: uint, finger: uint)
参数 | 类型 | 描述 |
|---|---|---|
| type | uint<tizen_input_device_manager.pointer_event_type> | |
| x | uint | |
| y | uint | |
| finger | uint |
pointer_warp(surface: object<wl_surface>, x: fixed, y: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| x | fixed | |
| y | fixed |
init_generator_with_name(clas: uint<tizen_input_device_manager.clas>, name: string)
参数 | 类型 | 描述 |
|---|---|---|
| clas | uint<tizen_input_device_manager.clas> | |
| name | string |
destroy()
销毁 tizen_input_device_manager。
generate_axis(type: uint<tizen_input_device_manager.axis_type>, value: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| type | uint<tizen_input_device_manager.axis_type> | |
| value | fixed | axis value |
当服务器收到此请求时,服务器选择直接生成事件或仅保存值。指针轴(如滚轮/水平滚轮)独立于指针事件传递给客户端,但触摸轴传递给普通触摸事件(begin/update/end)。因此服务器在生成触摸请求之前仅保存触摸轴,并发送包含已保存触摸轴值的触摸事件。
set_touch_count(max_count: int)
参数 | 类型 | 描述 |
|---|---|---|
| max_count | int |
此请求仅更改系统的触摸数量。因此此请求不会更改已连接触摸设备的最大数量。这将影响用户使用输入生成器创建的设备。输入生成器创建仅支持默认触摸数量的触摸设备。但如果用户在创建输入生成器设备之前设置触摸数量,用户可以创建具有所需触摸数量的触摸设备。但某些系统有自己的最大触摸数量。在这种情况下,此请求返回 not_allowed 错误。
init_generator_with_sync(clas: uint<tizen_input_device_manager.clas>, name: string)
参数 | 类型 | 描述 |
|---|---|---|
| clas | uint<tizen_input_device_manager.clas> | |
| name | string |
keyboard_grab(surface: object<wl_surface>, subclas: uint<tizen_input_device_manager.subclas>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| subclas | uint<tizen_input_device_manager.subclas> |
keyboard_ungrab(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
grab_relative_motion(surface: object<wl_surface>, boundary: uint<tizen_input_device_manager.boundary>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| boundary | uint<tizen_input_device_manager.boundary> |
ungrab_relative_motion(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
device_add(serial: uint, identifier: string, device: new_id<tizen_input_device>, seat: object<wl_seat>)
参数 | 类型 | 描述 |
|---|---|---|
| serial | uint | |
| identifier | string | |
| device | new_id<tizen_input_device> | |
| seat | object<wl_seat> |
当物理/逻辑设备添加到给定 seat 时,将发送设备添加/移除通知。请注意,Tizen 输入设备对象可以分配给一个 wl_seat,也可以随时分配给另一个 wl_seat。每当 Tizen 输入设备对象的关系发生变化时,将从当前 wl_seat 对象生成设备移除事件,并从另一个 wl_seat 对象生成设备添加事件。
device_remove(serial: uint, identifier: string, device: object<tizen_input_device>, seat: object<wl_seat>)
参数 | 类型 | 描述 |
|---|---|---|
| serial | uint | |
| identifier | string | |
| device | object<tizen_input_device> | |
| seat | object<wl_seat> |
当物理/逻辑设备从给定 seat 移除时,将发送设备添加/移除通知。请注意,Tizen 输入设备对象可以分配给一个 wl_seat,也可以随时分配给另一个 wl_seat。每当 Tizen 输入设备对象的关系发生变化时,将从当前 wl_seat 对象生成设备移除事件,并从另一个 wl_seat 对象生成设备添加事件。
error(errorcode: uint<tizen_input_device_manager.error>)
参数 | 类型 | 描述 |
|---|---|---|
| errorcode | uint<tizen_input_device_manager.error> |
block_expired()
如果现有阻止的持续时间到期,将发送此事件。请注意,如果客户端没有阻止,则不会发送阻止到期事件。
每个触摸设备都有其支持的触摸数量。因此服务器控制系统中的最大触摸数量以有效维护资源。有时服务器使用预定义的配置选项控制最大触摸数量。有时服务器确保触摸设备支持的最大触摸数量。如果服务器不使用配置选项,当新的触摸设备连接时,最大触摸数量可能会更新。因此,当第一个触摸设备被添加或最大触摸数量发生变化时,此事件可以发送给客户端。
event_boundary(serial: uint, boundary: uint<tizen_input_device_manager.boundary>)
参数 | 类型 | 描述 |
|---|---|---|
| serial | uint | |
| boundary | uint<tizen_input_device_manager.boundary> |
clas { none, mouse, keyboard, touchscreen }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无类别 |
| mouse | 1 | 鼠标类别 |
| keyboard | 2 | 键盘类别 |
| touchscreen | 4 | 触摸屏类别 |
error { none, no_permission, invalid_class, blocked_already, no_system_resources, invalid_parameter, invalid_surface, no_pointer_available, not_allowed }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无错误 |
| no_permission | 1 | 无权限 |
| invalid_class | 2 | 无效类别 |
| blocked_already | 3 | 已被其他客户端阻止 |
| no_system_resources | 4 | 系统资源不足(如内存不足) |
| invalid_parameter | 5 | 参数无效 |
| invalid_surface | 6 | 给定的 surface 不可见或指针不在给定的 surface 上 |
| no_pointer_available | 7 | 没有可用的指针进行移动 |
| not_allowed | 8 | 此系统不允许此请求 |
tizen_input_device 接口表示与物理/逻辑输入设备关联的一个或多个输入设备。此接口提供设备特定的信息/事件,允许客户端识别事件的源设备或获取设备的额外轴/属性。请注意,tizen_input_device 对象可以用于物理输入设备,也可以用于一组输入设备,例如一组鼠标设备。
device_info(name: string, clas: uint<tizen_input_device.clas>, subclas: uint<tizen_input_device.subclas>, axes: array)
参数 | 类型 | 描述 |
|---|---|---|
| name | string | |
| clas | uint<tizen_input_device.clas> | |
| subclas | uint<tizen_input_device.subclas> | |
| axes | array | array of axis enum |
axis(axis_type: uint<tizen_input_device.axis_type>, value: fixed)
参数 | 类型 | 描述 |
|---|---|---|
| axis_type | uint<tizen_input_device.axis_type> | |
| value | fixed | axis value |
clas { none, keyboard, mouse, touchscreen }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 无类别 |
| keyboard | 2 | 键盘类别 |
| mouse | 3 | 鼠标类别 |
| touchscreen | 4 | 触摸屏类别 |
create_img(id: new_id<tizen_launch_image>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_launch_image> | new tizen_launch_image object |
destroy()
show()
hide()
tizen_effect
destroy()
start(surface: object<wl_surface>, type: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| type | uint |
end(surface: object<wl_surface>, type: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| type | uint |
set_window_brightness(surface: object<wl_surface>, brightness: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| brightness | int |
window_brightness_done(surface: object<wl_surface>, brightness: int, error_state: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| brightness | int | |
| error_state | uint |
error_state { none, permission_denied }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | |
| permission_denied | 1 |
tizen_indicator
destroy()
set_state(surface: object<wl_surface>, state: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| state | int |
set_opacity_mode(surface: object<wl_surface>, mode: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| mode | int |
set_visible_type(surface: object<wl_surface>, type: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| type | int |
flick(surface: object<wl_surface>, type: int)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | occur the flick event |
| type | int |
opacity_mode { unknown, opaque, translucent, transparent, bg_transparent }
参数 | 值 | 描述 |
|---|---|---|
| unknown | 0 | 未知 |
| opaque | 1 | 不透明模式 |
| translucent | 2 | 半透明模式 |
| transparent | 3 | 完全透明模式 |
| bg_transparent | 4 | 仅背景透明模式 |
tizen_clipboard
此接口为其他客户端提供有关剪贴板的一些请求和事件。
destroy()
set_data_only(set: uint)
参数 | 类型 | 描述 |
|---|---|---|
| set | uint |
Wayland 客户端可以通知该客户端处于仅数据模式。仅数据模式意味着此 Wayland 客户端没有任何 wl_surface,但希望使用 wl_data_device 进行某些数据操作。
data_selected(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
get_ignore_output_transform(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
destroy()
销毁 tizen_screen_rotation。
ignore_output_transform(surface: object<wl_surface>, ignore: uint)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface> | the surface object |
| ignore | uint |
tizen_renderer
get_renderer_surface(id: new_id<tizen_renderer_surface>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<tizen_renderer_surface> | |
| surface | object<wl_surface> | the surface object |
destroy()
销毁 tizen_renderer_surface。
redraw_request()