Version 1
tizen-specific surface
The tizen_surface provides tizen-specific functionalities for the given
surface.
Version 1
global resource id
This tizen_resource provides a global resource id. It is a unique id
which is provided by the display server.
tizen_resource
event resource_id(
id: uint,
)- id — the global resource id
a global resource id
The resource_id event is sent immediately upon the tizen_resource object
creation by the display server. The id is a unique id which is generated
by the display server.
Version 13
tizen-specific policy for window management
The tizen_policy provides tizen-specific requests and events for window
management at Tizen Platform.
[TODO] Explain the window layer at the display server. Need to explain the
window layer to understand the requests and the events at tizen_policy
interface.
tizen_policy
request activate(
surface: object<wl_surface>,
)- surface — the surface object
activate the surface
Activate the given surface. A client requests this when a client wants
to raise at the top of the windows stack in the window's layer at the
display server and also wants to get a keyboard focus from the display
server. However the display server does not always set the focus on the
reqested surface. It depends on the focus policy of the display server.
A client just demands a keyboard focus via this request.
tizen_policy
request activate_below_by_res_id(
res_id: uint,
below_res_id: uint,
)- res_id — the global resource id
- below_res_id — the global resource id
activate the res_id and position below res_id
Activate the surface associated with the given res_id and position it
below the surface associated with the below_res_id. A client uses this
reuquest when it want to change the order of the window stack with the
gloal resource ids which are the surfaces belonging to different
processes. However, this requestit does not work when the surface
associated with the below_res_id is a parent of the surface assicated
with the res_id.
tizen_policy
request raise(
surface: object<wl_surface>,
)- surface — the surface object
raise the surface
This request raises the given surface to the top of the window stack
in a window layer. A client can decide the window layer with the
window_type for the given surface through the set_type request of
tizen_policy interface. The surface positions at the top in the window
layer.
tizen_policy
request lower(
surface: object<wl_surface>,
)- surface — the surface object
lower the surface
This request lowers the given surface to the bottom of the window stack
in a window layer. The surface positions at the bottom in the window
layer.
tizen_policy
request lower_by_res_id(
res_id: uint,
)- res_id — the global resource id
lower the res_id
This request lowers the surface associated with the given res_id to the
bottom of the window stack in a window layer. The surface positions at
the bottom in the window layer.
tizen_policy
request set_focus_skip(
surface: object<wl_surface>,
)- surface — the surface object
be unable to be the focused surface
This request makes the given surface unable to be the focused surface.
The display server must not give the focus to the surface.
tizen_policy
request unset_focus_skip(
surface: object<wl_surface>,
)- surface — the surface object
enable to be the focused surface
This request makes the given surface enable to be the focused surface.
tizen_policy
request set_role(
surface: object<wl_surface>,
role: string,
)- surface — the surface object
- role — the name of the role
set the role of the surface
Give the role to the given surface. A client set the tizen-specific role
of the surface except for the role of xdg_surface interface,
xdg_top_level, xdg_popup and so on.
tizen_policy
enum win_type {
none = 0,
toplevel = 1,
fullscreen = 2,
maximized = 3,
transient = 4,
menu = 5,
dnd = 6,
custom = 7,
notification = 8,
utility = 9,
dialog = 10,
dock = 11,
splash = 12,
desktop = 13,
}window type of the surface
A client can set the window type through the set_type request with
win_type values. The value gives the surface the window_state, the
z-order at the window stack in the window layer and other types in the
display server.
The following values are window types with z-order values in descending
order. Those are notification, dnd, dock, splash, fullscreen,
toplevel or maximized and desktop.
The menu, dnd, notification, utility, dialog, dock, splash and desktop
are the window type which is defined in netwm spefification.
https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html#idm46148902270160
tizen_policy
request set_type(
surface: object<wl_surface>,
win_type: uint,
)- surface — the surface object
- win_type — the window type
set the type of the surface
Set the type of the given surface. The display server use the window
type for the policy of the window management which are focus management,
visibility management, stack management and so on.
tizen_policy
request set_conformant(
surface: object<wl_surface>,
)- surface — the surface object
set the conformant(adaptational) surface
Set the conformant surface. The conformant surface can get the event
through which the display server notifies the area covered by the
compormant_part that is the surface in another client.
tizen_policy
request get_conformant(
surface: object<wl_surface>,
)- surface — the surface object
check the conformant surface
Ask if the given surface is the conformant surface or not. The display
server sents the result via the confirmant event.
tizen_policy
event conformant(
surface: object<wl_surface>,
is_conformant: uint,
)- surface — the surface object
- is_conformant — if the surface is conformant or not, 0 or 1
conformant event
Notify the client when a client sends the get_conformant request.
tizen_policy
enum conformant_part {
indicator = 0,
keyboard = 1,
clipboard = 2,
}- indicator — the indicator surface
- keyboard — the keyboard surface
- clipboard — the clipboard surface
the name of conformant part
This value indicates the surface name at Tizen Platform.
tizen_policy
event conformant_area(
surface: object<wl_surface>,
conformant_part: uint,
state: uint,
x: int,
y: int,
w: int,
h: int,
)- surface — the surface object
- conformant_part — the name of the conformant part
- state — visible(1) or not(0)
- x — x position of the hiding area by conformant part
- y — y position of the hiding area by conformant part
- w — width of the hiding area by conformant part
- h — height of the hiding area by conformant part
conformant area event
Notify a client when the conformant area is caclulated by the another
surface as the conformnat_part. This event does NOT guarantee the
perfect composition of the conformant surface and the surface of the
conformant part.
tizen_policy
enum error_state {
none = 0,
permission_denied = 1,
}- none — success
- permission_denied — the permission denied
error state
This describes the state of error.
tizen_policy
enum level {
1 = 0,
2 = 1,
3 = 2,
none = -1,
default = 10,
medium = 20,
high = 30,
top = 40,
}- 1 — the bottom default z-order
- 2 — the bottom midium z-order
- 3 — the bottom high z-order
- none — the bottom lowest z-order
- default — the default z-order
- medium — the medium z-order
- high — the high z-order
- top — the top z-order
notification level
This is the level of the notification type. This level stands for the
z-order in the notification layer at the display server. The none, 1, 2,
3, default, medium, high and top is z-order in ascending order. The
lower number value means the lower z-order.
tizen_policy
request set_notification_level(
surface: object<wl_surface>,
level: int,
)- surface — the surface object
- level — the z-order value
set the level in the notification
This request sets the level in the notification layer. The display
server decides the z-order with the given level in the notification
layer.
tizen_policy
event notification_done(
surface: object<wl_surface>,
level: int,
error_state: uint,
)- surface — the surface object
- level — the z-order value
- error_state — the error type
done event of set_notification request
Notify a client when the surface is located in the z-order which has
been reuqested via the set_notification_level request.
tizen_policy
request set_transient_for(
child_id: uint,
parent_id: uint,
)- child_id — the global resource id for the child surface
- parent_id — the globacl resource is for the parent surface
set the transient parent for parent_id
This request sets the transient parent for the surface associated with
the parent_id. The surface associated with the given child_id becomes
a transient children for the surface associated with the parent_id.
tizen_policy
request unset_transient_for(
child_id: uint,
)- child_id — the global resource id for the child surface
unset the transient parent/child relationship
This reuqest unsets the transient parent on the surface associated with
the child_id.
tizen_policy
event transient_for_done(
child_id: uint,
)- child_id — the global resource id for the child surface
done event of set/unset transient_for
Notify a client when the surface associated with the child_id is to set
the transient parent or when it is to unset the transient parent.
tizen_policy
enum mode {
default = 0,
always_on = 1,
}- default — the default screen mode
- always_on — keep the screen turn on
screen mode
This value means how the screen is to operate.
tizen_policy
request set_window_screen_mode(
surface: object<wl_surface>,
mode: uint,
)- surface — the surface object
- mode — the screen mode
set the screen mode to the surface
A client sets the screen mode which it wants the screen to be as long as
the given surface is shown on the screen.
tizen_policy
event window_screen_mode_done(
surface: object<wl_surface>,
mode: uint,
error_state: uint,
)- surface — the surface object
- mode — the screen mode
- error_state — the error type
done event for set_window_screen_mode request
Notify a client when the screen_mode from the client's request activates
in the display server.
tizen_policy
request set_subsurface_stand_alone(
subsurface: object<wl_subsurface>,
)- subsurface — the subsurface object
make the subsurface be a stand_alone mode
This request makes the surface associated with the given subsurface not
follow the policy of the window managment triggered by the parent
surface. The window policy of the surface associated with the given
subsurface is not affected by its parent surface.
tizen_policy
request get_subsurface(
id: new_id<wl_subsurface>,
surface: object<wl_surface>,
parent_id: uint,
)- id — the new subsurface object
- surface — the surface object
- parent_id — the global reosurce id
get the subsurface of the surface with the parent_id
Get the subsurface of the given surface with the global resource parent_id.
tizen_policy
request set_opaque_state(
surface: object<wl_surface>,
state: int,
)- surface — the surface object
set the opaque state to the surface
Set the opaque state to the given surface. The display server makes this
surface be opaque even if the color depth of the buffer attached to the
surface is 32 depth.
tizen_policy
request iconify(
surface: object<wl_surface>,
)- surface — the surface object
set the iconified state to the surface
Set the iconified state to the given surface. The iconfied state is the
window state in which the surface is not showing on the screen.
tizen_policy
request uniconify(
surface: object<wl_surface>,
)- surface — the surface object
set the uniconified state to the surface
Set the uniconified state to the given surface. The uniconfied state is
the window state in which the iconified surface is showing on the screen.
tizen_policy
event iconify_state_changed(
surface: object<wl_surface>,
iconified: uint,
force: uint,
)- surface — the surface object
- iconified — the iconfied or uniconified state, 1 or 0
- force — the iconfied is forced or not, 1 or 0
change event of the iconfied state
Notify a client when the iconfied state of the surface is changed. The
iconfied state is not only changed when the client requets the iconify
and uniconify but also changed when the iconfied state is decided by
the display server.
tizen_policy
request add_aux_hint(
surface: object<wl_surface>,
id: int,
name: string,
value: string,
)- surface — the surface object
- id — the id of the auxiliary hint
- name — the name of the auxiliary hint
- value — the vaule of the auxiliary hint
add the information of the auxiliary hint to the surface
Add the information of the auxiliary hint to the given surface. The name
and the value are changed when the display server already has the same
id with which the client sends this request.
tizen_policy
request change_aux_hint(
surface: object<wl_surface>,
id: int,
value: string,
)- surface — the surface object
- id — the id of the auxiliary hint
- value — the vaule of the auxiliary hint
change the value of the auxiliary hint to the surface
Change the value of the auxiliary hint id which the surface has.
tizen_policy
request del_aux_hint(
surface: object<wl_surface>,
id: int,
)- surface — the surface object
- id — the id of the auxiliary hint
delete the information of the auxiliry hint
Delete the information of the auxiliary hint associated the hint id
which the given surface has.
tizen_policy
request get_supported_aux_hints(
surface: object<wl_surface>,
)- surface — the surface object
get the aux hints
Get the ids of the aux hints which the given surface supports. The
display server send the supported_aux_hints events as the reply of this
requrest.
tizen_policy
event supported_aux_hints(
surface: object<wl_surface>,
hints: array,
num_hints: uint,
)- surface — the surface object
- hints — the id array of the auxiliary hints
- num_hints — the number of hints
reply event for the get_supported_aux_hints request
Notify a client when the display server get the get_supported_aux_hints
request. The display server send the id array of the suxiliary hints
which the surface supports.
tizen_policy
event allowed_aux_hint(
surface: object<wl_surface>,
id: int,
)- surface — the surface object
- id — the id of the auxiliary hint
event of the allowed auxiliary hint
Notify a client when the auxiliary hint which the given surface has is
added and changed.
tizen_policy
event aux_message(
surface: object<wl_surface>,
key: string,
value: string,
options: array,
)- surface — the surface object
- key — the key string
- value — the vaule of the key
- options — the array of option information
the auxiliary message event
Notify a client when the display server sends the auxiliary message.
The display server can use this event when it notifies an additional
information to the client.
tizen_policy
request set_background_state(
pid: uint,
)set the background state
Set the all surfaces associated with the given pid to be the background
state. The surfaces set to be the hide state and cannot show on a screen
even if the client send the show request and the activate request.
tizen_policy
request unset_background_state(
pid: uint,
)unset the background state
Set the all surfaces associated with the given pid not to be the
background state. The sufaces can allow to be showed and to be activated
by the client's request.
tizen_policy
request set_floating_mode(
surface: object<wl_surface>,
)- surface — the surface object
set the floating mode
Set the floating mode to the given surface. The surface which sets to be
floating mode can be a partial window and can position over other
top-level windows.
tizen_policy
request unset_floating_mode(
surface: object<wl_surface>,
)- surface — the surface object
unset the floating mode
Unset the floating mode to the given surface. The geometry of the
surface does not change and the z-order of it can be the same as the
top-level windows.
tizen_policy
enum stack_mode {
none = 0,
above = 1,
below = 2,
}mode for the relative stack order
The set_stack_mode request uses this mode values.
tizen_policy
request set_stack_mode(
surface: object<wl_surface>,
mode: uint,
)- surface — the surface object
- mode — the stack mode
set the stack mode
Set the stack mode to the given surface. The surface can changes the
z-order in the same layer by the stack mode.
tizen_policy
request activate_above_by_res_id(
res_id: uint,
above_res_id: uint,
)- res_id — the global resource id
- above_res_id — the globacl resource id
activate and position over the above resource id
Activate the surface associated with the given res_id which is the
global resource id and set to position over the surface assoicated with
the above_res_id.
tizen_policy
request get_subsurface_watcher(
id: new_id<tizen_subsurface_watcher>,
surface: object<wl_surface>,
)Available since version 2
- id — new tizen_subsurface_watcher object
- surface — the surface object
get the subsurface watcher
Get the subsurface watcher associated with the given surface. A client
can get the information about the subsurface associated with the surface.
tizen_policy
request set_parent(
child: object<wl_surface>,
parent: object<wl_surface>,
)Available since version 3
- child — the surface object
- parent — the surface object
set the parent
Set the parent/client relationship. The child surface position over the
parent surface.
tizen_policy
event conformant_region(
surface: object<wl_surface>,
conformant_part: uint,
state: uint,
x: int,
y: int,
w: int,
h: int,
serial: uint,
)Available since version 4
- surface — the surface object
- conformant_part — the name of the conformant part
- state — visible(1) or not(0)
- x — x position of the hiding area by conformant part
- y — y position of the hiding area by conformant part
- w — width of the hiding area by conformant part
- h — height of the hiding area by conformant part
- serial — serail number
notify of geometry values of conformant region(area)
The server can notify of conformant region(area) using this event.
If client is received this event, client should ack for it using
tizen_policy@ack_conformant_region request.
tizen_policy
request ack_conformant_region(
surface: object<wl_surface>,
serial: uint,
)Available since version 4
- surface — the surface object
- serial — serial number
ack for tizen_policy@conformant_region
A client can refresh its surface for applying new conformant region
which is from tizen_policy@conformant_region event. The client has to
ack after complete of its updates by this request.
tizen_policy
request has_video(
surface: object<wl_surface>,
has: uint,
)Available since version 7
- surface — the surface object
- has — 1 is the tizen_video_object, or 0
check the tizen_video_object
A cleint sends the information that it has the tizen_video_object to the
display server.
tizen_policy
request set_appid(
pid: int,
appid: string,
)Available since version 7
- pid — process id
- appid — application id
set the application id
Set the application id associated with the given pid.
tizen_policy
request show(
surface: object<wl_surface>,
)Available since version 8
- surface — the surface object
notify showing the surface
Notify showing the given surface. This request means that a client is
going to attach the buffer to the given surface. There is nothing to do
at the display server when a client sends this request.
tizen_policy
request hide(
surface: object<wl_surface>,
)Available since version 8
- surface — the surface object
notify hiding the surface
Notify hiding the given surface. This request means that a client is
going to attach the null buffer to the given surface. There is nothing
to do at the display server when a client sends this request.
tizen_policy
request set_transient_for_below(
child_id: uint,
parent_id: uint,
)Available since version 9
set transient_for and place under the transient_for parent
This makes a relationship between parent and child. A child is always
placed under a parent.
tizen_policy
request set_parent_with_below(
child: object<wl_surface>,
parent: nullable object<wl_surface>,
)Available since version 9
- child — the surface object
set parent and place under the parent
This makes a relationship between parent and child. A child is always
placed under a parent. Setting a null parent for a child window removes
any parent-child relationship for the child.
tizen_policy
event interactive_move_done(
surface: object<wl_surface>,
x: int,
y: int,
w: uint,
h: uint,
angle: int,
)Available since version 10
- surface — the surface object
- x — x-position after move
- y — y-position after move
- w — width after move
- h — height after move
- angle — current angle of surface
interactive move is done
This event is sent when the display server finishes interactive moving
the window. The changed geometry of the window is sent together.
tizen_policy
event interactive_resize_done(
surface: object<wl_surface>,
x: int,
y: int,
w: uint,
h: uint,
angle: int,
)Available since version 10
- surface — the surface object
- x — x-position after resize
- y — y-position after resize
- w — width after resize
- h — height after resize
- angle — current angle of surface
interactive resize is done
This event is sent when the display server finishes interactive
resizing the window. The changed geometry of the window is sent
together.
tizen_policy
enum maximize_direction {
none = 0,
all = 1,
left = 2,
right = 3,
top = 4,
bottom = 5,
}- none — none. same to unmaximize
- all — the full size of the screen
- left — the left side of the screen
- right — the right side of the screen
- top — the top of the screen
- bottom — the bottom of the screen
direction values
These values are used by the set_maximize_direction as the paremater.
tizen_policy
request set_layout(
surface: object<wl_surface>,
num_cols: uint,
num_rows: uint,
column: uint,
row: uint,
cols_span: uint,
rows_span: uint,
)Available since version 12
- surface — the surface object
- num_cols — the total number of columns
- num_rows — the total number of rows
- column — the column number to be positioned
- row — the row number to be positioned
- cols_span — the columns span
- rows_span — the rows span
set layout of the surface
Set the layout of the surface with the coordinates passed.
tizen_policy
request set_modal(
surface: object<wl_surface>,
)Available since version 13
- surface — the surface object
set modal state
Set the modal state of the surface.
tizen_policy
request unset_modal(
surface: object<wl_surface>,
)Available since version 13
- surface — the surface object
unset modal state
Unset the modal state of the surface.
Version 5
tizen-specific visibility
A client wants to know the visiblity information of the surface.
tizen_visibility
enum visibility {
unobscured = 0,
partially_obscured = 1,
fully_obscured = 2,
pre_unobscured = 3,
}visibility type
These are the visibilty types which tells how the surface assoicated
with the tizen_visibility resource is showing on a screen or not.
tizen_visibility
event notify(
visibility: uint,
)- visibility — visiblity type
notify the visiblity state
Notify a client when the visibility of the surface is changed.
tizen_visibility
event changed(
type: uint<visibility>,
option: uint,
)Available since version 5
- type — changed visibility type
- option — extra value
notify the changed visiblity type
Notify a client when the visibility of the surface is changed with the
extra vaule.
Version 1
- destroy — destroy the tizen_position
- set — set the position
- changed — event of position changed
tizen-specific position
A client can set the position information of the surface.
tizen_position
request set(
x: int,
y: int,
)- x — x position
- y — y position
set the position
Set the position.
tizen_position
event changed(
x: int,
y: int,
)- x — x position
- y — y position
event of position changed
Notify a client when the posion is changed.
Version 1
Version 2
tizen_gesture
enum error {
none = 0,
invalid_data = 1,
no_permission = 2,
no_system_resources = 3,
grabbed_already = 4,
not_supported = 5,
}tizen_gesture
enum type {
edge_swipe = 1,
edge_drag = 2,
tap = 4,
palm_cover = 8,
pan = 16,
pinch = 32,
palm_swipe = 64,
}- edge_drag
Available since version 2
- tap
Available since version 2
- palm_cover
Available since version 2
- pan
Available since version 2
- pinch
Available since version 2
- palm_swipe
Available since version 2
tizen_gesture
event edge_swipe(
mode: uint<mode>,
fingers: uint,
sx: int,
sy: int,
edge: uint<edge>,
)- sx — x coordinate of touch down point
- sy — y coordinate of touch down point
tizen_gesture
event edge_drag(
mode: uint<mode>,
fingers: uint,
cx: int,
cy: int,
edge: uint<edge>,
)- cx — x coordinate of center touch point
- cy — y coordinate of center touch point
tizen_gesture
event palm_cover(
surface: nullable object<wl_surface>,
mode: uint<mode>,
duration: uint,
cx: int,
cy: int,
size: uint,
pressure: fixed,
)Available since version 2
- cx — x coordinate of center touch point
- cy — y coordinate of center touch point
Version 2
an interface to set each focus for each key
In tradition, all the keys in a keyboard and a device on which
some keys are attached will be sent to focus surface by default.
Currently it's possible to set up each focus for each key in a keyboard and a device.
Therefore, by setting a key grab for a surface, the owner of the
surface will get the key event when it has the key grab for the key.
tizen_keyrouter
enum error {
none = 0,
invalid_surface = 1,
invalid_key = 2,
invalid_mode = 3,
grabbed_already = 4,
no_permission = 5,
no_system_resources = 6,
invalid_array = 7,
}- none — no error
- invalid_surface — Given surface is invalid.
- invalid_key — Given key is invalid.
- invalid_mode — Given mode is invalid.
- grabbed_already — The key has been grabbed already.
- no_permission — The wl client has no permission to grab the key.
- no_system_resources — System resources are insufficient.
- invalid_array — Given array has invalid pairs or data type.
tizen_keyrouter
enum mode {
none = 0,
shared = 1,
topmost = 2,
overridable_exclusive = 3,
exclusive = 4,
registered = 5,
}- none — none
- shared — mode to get a key grab with the other client surfaces when the focused client surface gets the key
- topmost — mode to get a key grab when the client surface is the top most surface
- overridable_exclusive — mode to get a key grab exclusively, overridably regardless of the order in the surface stack
- exclusive — mode to get a key grab exclusively regardless of the order in surface stack
- registered — mode to get a key grab only when a requesting surface is on top among the registering surfaces for the key
mode for a key grab
This value is used to set a mode for a key grab. With this mode and
the order of the surface between surfaces' stack, the compositor will determine the destination client
surface.
tizen_keyrouter
enum config_mode {
none = 0,
invisible_set = 1,
invisible_get = 2,
num_key_focus = 3,
picture_off = 4,
}- none — none
- invisible_set — mode to set window to enable send event to invisible window below in stack
- invisible_get — mode to set window to get event to invisible state if any top window has set register_set
- num_key_focus — mode to register for num keys for focus window
- picture_off — mode to set picture off for particular key
mode for setting specific property for Key delivery
This value is used to set a mode for a window. With this mode and
the order of the surface between surfaces' stack, the compositor will determine the destination client
surface.
Version 3
interface for tizen-screenshooter
Clients can get a screenmirror object from this interface.
tizen_screenshooter
event format(
format: uint,
)supported format for screenshooter
The tbm format codes match the #defines in tbm_surface.h. The formats actually
supported by the compositor will be reported by the format event.
Version 3
interface for screenmirror
A client can use this interface to get stream images of screen. Before starting,
queue all buffers. Then, start a screenmirror. After starting, a dequeued event
will occur when drawing a captured image on a buffer is finished. You might
need to queue the dequeued buffer again to get a new image from display server.
tizen_screenmirror
request dequeue(
buffer: object<wl_buffer>,
)- buffer — buffer object for screenmirror
dequeue a buffer
A user can dequeue a buffer from display server when he wants to take back it from server.
tizen_screenmirror
event dequeued(
buffer: object<wl_buffer>,
)- buffer — dequeued buffer which contains a captured image
dequeued event
occurs when drawing a captured image on a buffer is finished
tizen_screenmirror
event content(
content: uint,
)content changed event
occurs when the content of a captured image is changed. (normal or video)
Version 1
interface for tizen-video
Clients can get the video information that the compositor can handle from this interface.
tizen_video
event format(
format: uint,
)supported format for video
The tbm format codes match the #defines in tbm_surface.h. The formats actually
supported by the compositor will be reported by the format event.
Version 1
Version 1
Version 1
the viewport for a surface
This is the alternative and convenient solution of wl_viewport to present
a surface on screen.
The below five functions can be replaced with this interface. The below
functions will be ignored after applying this interface to a surface.
wl_viewport.set_source is very complicated especially when the buffer of
wl_surface is transformed by wl_surface.set_buffer_transform. And when the
parent is resized, if we want to change the geometry of a subsurface also,
wl_subsurface.set_position and wl_viewport.set_destination should be called
everytime the parent is resized in client side. This makes difficult to
synchronize a parent surface and a subsurface on screen.
tizen_viewport allows clients to set the relative geometry to a subsurface
in a parent surface. Whenever a parent surface is resized, the geometry of
a subsurface will be calculated, moved and resized automatically by a
compositor. The tizen_viewport is specified in the coordinates of a
subsurface's parent.
If tizen_viewport is applied to a shell surface(toplevel), the all value related
with x, y pos of tizen_viewport and tizen_destination_mode interface will be ignored.
The below 3 functions don't consider the transform of a parent's surface.
Furthermore, tizen_destination_mode.follow_parent_transform is called,
tizen_viewport will consider the transform of a parent surface when applying
the destination mode to a subsurface. If tizen_destination_mode.follow_parent_transform
is applied to a shell surface, it will be ignored.
The destination will be cropped by a parent surface.
The change will be applied when wl_surface.commit is called.
tizen_viewport
request set_source(
x: uint,
y: uint,
width: uint,
height: uint,
)set the source rectalge of a wl_buffer
The source rectangle won't be changed when a parent is resized. If it needs
to be changed, tizen_viewport.set_source should be called with new values.
tizen_viewport
request set_destination(
x: int,
y: int,
width: uint,
height: uint,
)set the destination geometry of a surface
The destination geometry won't be changed when a parent is resized. If it
needs to be changed, tizen_viewport.set_destination should be called with
new values.
If tizen_viewport is applied to a shell surface(toplevel), the x, y value of
tizen_viewport.set_destination will be ignored.
tizen_viewport
request set_destination_ratio(
x: fixed,
y: fixed,
width: fixed,
height: fixed,
)set the ratio destination rectalge in a parent surface
The destination rectangle of a subsurface will be automatically changed
when a parent is resized. This allows the real number between 0.0 and 1.0.
See wl_fixed_from_double and wl_fixed_to_double.
If tizen_viewport is applied to a shell surface(toplevel), the x, y value of
tizen_viewport.set_destination_ratio will be ignored.
tizen_viewport
request query_parent_size()
Available since version 1
set the ratio destination rectalge in a parent surface
A client can asks the display server to send the size of tizen_viewport object's
parent surface. Once a client requests it, the "parent_size" event will be sent
whenever the parent surface's size is changed.
Version 1
tizen_destination_mode
request set_ratio(
horizontal: fixed,
vertical: fixed,
)set the ratio of the destination rectangle of a subsurface
This allows the real number. See wl_fixed_from_double and wl_fixed_to_double.
tizen_destination_mode
request set_scale(
horizontal: fixed,
vertical: fixed,
)set the scale of the destination rectangle of a subsurface
This allows the real number. See wl_fixed_from_double and wl_fixed_to_double.
tizen_destination_mode
request set_align(
horizontal: fixed,
vertical: fixed,
)set the align of the destination rectangle of a subsurface
This allows the real number between 0.0 and 1.0. See wl_fixed_from_double and
wl_fixed_to_double.
Version 1
global embedded compositor object
The global obejct. Wayland has 3 type of compositor, embedded compositor is one of them.
But tizen application is sendboxing by smack, then a application not allow commutication to other application by socket.
So system or session compositor create socket and send to embedded compostior.
Version 7
global input device manager object
Tizen input device manager is a global interface. This object has device add/remove events
to provide tizen input device object to a client. This allows for a client to get the con
Be sure to bind this interface after binding wl_seat interface.
Tizen input device manager interface will only provide device add/remove event for devices
which belongs to the wl_seat object(s) bound by the client. Therefore, the compositor needs to
create/send the device add/remove event only for the current client's seat(s).
tizen_input_device_manager
event device_add(
serial: uint,
identifier: string,
device: new_id<tizen_input_device>,
seat: object<wl_seat>,
)device addition event
The device add/remove notification is going to be sent when a physical/logical device is
added/removed to/from the given seat. Note that a tizen input device object can be assigned to
a wl_seat and can also be assigned to the other wl_seat at any time. Whenever a relationship between
a tizen input device object changes, device remove event from the current wl_seat object will be made
and device add event to the other wl_seat object will also be mode.
tizen_input_device_manager
event device_remove(
serial: uint,
identifier: string,
device: object<tizen_input_device>,
seat: object<wl_seat>,
)device removal event
The device add/remove notification is going to be sent when a physical/logical device is
added/removed to/from the given seat. Note that a tizen input device object can be assigned to
a wl_seat and can also be assigned to the other wl_seat at any time. Whenever a relationship between
a tizen input device object changes, device remove event from the current wl_seat object will be made
and device add event to the other wl_seat object will also be mode.
tizen_input_device_manager
enum clas {
none = 0,
mouse = 1,
keyboard = 2,
touchscreen = 4,
}- none — none of class
- mouse — mouse class
- keyboard — keyboard class
- touchscreen — touchscreen class
tizen_input_device_manager
enum error {
none = 0,
no_permission = 1,
invalid_class = 2,
blocked_already = 3,
no_system_resources = 4,
invalid_parameter = 5,
invalid_surface = 6,
no_pointer_available = 7,
not_allowed = 8,
}- none — no error
- no_permission — no permission
- invalid_class — invalid class
- blocked_already — blocked already by the other client
- no_system_resources — no system resources such as memory lack
- invalid_parameter — argument is invalid
- invalid_surface — the given surface is not visible or pointer is not on the given surface
- no_pointer_available — there is no pointer available to warp
- not_allowed — this request is not allowed in this system
tizen_input_device_manager
event block_expired()
block expiration event
This event will be sent if the duration of existing block is expired.
Note that no block expired event will be sent if there is no block for the client.
tizen_input_device_manager
request block_events(
serial: uint,
clas: uint<clas>,
duration: uint,
)- serial —
- duration — time duration with millisecond granularity
request to block sending event(s)
This request allows a client to request to block one or more events for its purpose.
By specifying class as an argument in the request, the events belongs to the class will be blocked
during the given duration. Note that an error event will be sent if there is any error.
tizen_input_device_manager
request unblock_events(
serial: uint,
)request to unblock sending event(s)
This request allows a client to request to release the existing block for the client.
Note that no error event will be sent if there is no existing block for the client.
tizen_input_device_manager
enum axis_type {
none = 0,
wheel = 1,
hwheel = 2,
radius_x = 3,
radius_y = 4,
pressure = 5,
angle = 6,
palm = 7,
}Available since version 3
- none — no axis type
- wheel — pointer vertical wheel axis
- hwheel — pointer horizental wheel axis
- radius_x — touch radius of x axis of an event area e.g. touching area with a finger or a pen
- radius_y — touch radius of y axis of an event area e.g. touching area with a finger or a pen
- pressure — touch pressure in an event area e.g. touching area with a finger or a pen
- angle — touch angle in an event area e.g. touching area with a finger or a pen
- palm — touch palm in an event area e.g. touching area with a finger or a pen
tizen_input_device_manager
request generate_axis(
type: uint<axis_type>,
value: fixed,
)Available since version 3
generate a pointer/touch axes event using specific or default device
When the server got this request, the server choices generate a event directly or just save values.
Pointer axes (such as wheel/hwheel) are delivered to clients independantly about pointer events,
but touch axes are delivered to normal touch events(begin/update/end).
So the server just save touch axes before generate touch request is came and send a touch event
include saved touch axes value.
tizen_input_device_manager
event max_touch_count(
serial: uint,
max_count: int,
seat: object<wl_seat>,
)Available since version 4
notify max slot of touch device is updated
Each touch devices has their own touch counts can be supported.
So a server controls maximum touches in this system to maintain resources efficiently.
Sometimes a server controls maximum touches using a predefined configuration option.
Sometimes a server ensures maximum touches to be supported by touch device.
If a server do not use configuration option, maximum touches can be updated when new touch devices are connected.
So this events can be sent to client, when a first touch device is added or maximum touches is changed.
tizen_input_device_manager
request set_touch_count(
max_count: int,
)Available since version 4
set a max slot of touch
This request only changes system's touch count.
So this request doesn't change already connected touch devices's max count.
This will influence to user created device using input generator.
Input generator creates touch device only supports default touch count.
But if user set touch count before create a Input generator device,
user can create touch device has touch count user wanted.
But some systems has their own maximum touch count.
In that case this request returns error not_allowed.
tizen_input_device_manager
enum subclas {
none = 1,
remocon = 2,
virtual_keyboard = 4,
}- none — none of subclass
- remocon — remocon subclass
- virtual_keyboard — virtual_keyboard subclass
Version 1
- clas — device class
- subclas — device subclass
- axis_type — axis type enums which can be supported by a device
- device_info — event contains device information
- event_device — event indicates the source device associated with a wl_pointer/keyboard/touch event
- select_axes — request for selecting some of axes among the axes supported by a tizen_input_device object
- axis — axis change event
- release — release the tizen_input_device object
tizen input device object
The tizen_input_device interface represents one or more input devices associated with a physical/logical
input device. This interface provides device specific information/events to allows for client to identify
the source device of an event or to get the additional axes/attributes of a device.
Note that a tizen_input_device object can be used for a physical input device and can also be used for a
group of input devices. e.g. a group of mouse devices
tizen_input_device
enum clas {
none = 0,
keyboard = 2,
mouse = 3,
touchscreen = 4,
}- none — none of class
- keyboard — keyboard class
- mouse — mouse class
- touchscreen — touchscreen class
tizen_input_device
enum axis_type {
none = 0,
radius_x = 1,
radius_y = 2,
pressure = 3,
angle = 4,
detent = 5,
}- none — radius of x axis of an event area e.g. touching area with a finger or a pen
- radius_x — radius of x axis of an event area e.g. touching area with a finger or a pen
- radius_y — radius of y axis of an event area e.g. touching area with a finger or a pen
- pressure — pressure in an event area e.g. touching area with a finger or a pen
- angle — angle in an event area e.g. touching area with a finger or a pen
- detent — detent value e.g. moved distance with a rotary device
axis type enums which can be supported by a device
tizen_input_device
event event_device(
serial: uint,
name: string,
time: uint,
)- time — timestamp with millisecond granularity
event indicates the source device associated with a wl_pointer/keyboard/touch event
Version 1
Version 1
tizen_launch_image
enum rotation {
0 = 0,
90 = 90,
180 = 180,
270 = 270,
}- 0 — rotation angle 0 degree
- 90 — rotation angle 90 degree
- 180 — rotation angle 180 degree
- 270 — rotation angle 270 degree
tizen_launch_image
request launch(
file: string,
file_type: uint,
color_depth: uint,
rotation: uint,
indicator: uint,
options: array,
)Version 1
tizen_effect
enum type {
none = 0,
show = 1,
hide = 2,
restack = 3,
}- none — none
- show — show effect of window
- hide — hide effect of window
- restack — restack effect of window
Version 1
Version 1
tizen_indicator
enum state {
unknown = 0,
off = 1,
on = 2,
}- unknown — unknown
- off — can not show indicator
- on — can show indicator
tizen_indicator
enum opacity_mode {
unknown = 0,
opaque = 1,
translucent = 2,
transparent = 3,
bg_transparent = 4,
}- unknown — unknown
- opaque — opaque mode
- translucent — translucent mode
- transparent — transparent all mode
- bg_transparent — transparent only background mode
Version 2
an interface for requests and event about clipboard
This interface provides some requests and events about clipboard for other clients.
tizen_clipboard
request set_data_only(
set: uint,
)Available since version 2
request for setting data only mode for this wl_client
A wayland client can notify of that the client is data only mode.
The data only mode means that this wayland client doesn't have any
wl_surfaces at all but it wants to use wl_data_device for some data
operations.
Version 1
Version 1
Version 1