🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
9.3 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="xdg_output_unstable_v1">
  3. <copyright>
  4. Copyright © 2017 Red Hat Inc.
  5. Permission is hereby granted, free of charge, to any person obtaining a
  6. copy of this software and associated documentation files (the "Software"),
  7. to deal in the Software without restriction, including without limitation
  8. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. and/or sell copies of the Software, and to permit persons to whom the
  10. Software is furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice (including the next
  12. paragraph) shall be included in all copies or substantial portions of the
  13. Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. DEALINGS IN THE SOFTWARE.
  21. </copyright>
  22. <description summary="Protocol to describe output regions">
  23. This protocol aims at describing outputs in a way which is more in line
  24. with the concept of an output on desktop oriented systems.
  25. Some information are more specific to the concept of an output for
  26. a desktop oriented system and may not make sense in other applications,
  27. such as IVI systems for example.
  28. Typically, the global compositor space on a desktop system is made of
  29. a contiguous or overlapping set of rectangular regions.
  30. Some of the information provided in this protocol might be identical
  31. to their counterparts already available from wl_output, in which case
  32. the information provided by this protocol should be preferred to their
  33. equivalent in wl_output. The goal is to move the desktop specific
  34. concepts (such as output location within the global compositor space,
  35. the connector name and types, etc.) out of the core wl_output protocol.
  36. Warning! The protocol described in this file is experimental and
  37. backward incompatible changes may be made. Backward compatible
  38. changes may be added together with the corresponding interface
  39. version bump.
  40. Backward incompatible changes are done by bumping the version
  41. number in the protocol and interface names and resetting the
  42. interface version. Once the protocol is to be declared stable,
  43. the 'z' prefix and the version number in the protocol and
  44. interface names are removed and the interface version number is
  45. reset.
  46. </description>
  47. <interface name="zxdg_output_manager_v1" version="3">
  48. <description summary="manage xdg_output objects">
  49. A global factory interface for xdg_output objects.
  50. </description>
  51. <request name="destroy" type="destructor">
  52. <description summary="destroy the xdg_output_manager object">
  53. Using this request a client can tell the server that it is not
  54. going to use the xdg_output_manager object anymore.
  55. Any objects already created through this instance are not affected.
  56. </description>
  57. </request>
  58. <request name="get_xdg_output">
  59. <description summary="create an xdg output from a wl_output">
  60. This creates a new xdg_output object for the given wl_output.
  61. </description>
  62. <arg name="id" type="new_id" interface="zxdg_output_v1"/>
  63. <arg name="output" type="object" interface="wl_output"/>
  64. </request>
  65. </interface>
  66. <interface name="zxdg_output_v1" version="3">
  67. <description summary="compositor logical output region">
  68. An xdg_output describes part of the compositor geometry.
  69. This typically corresponds to a monitor that displays part of the
  70. compositor space.
  71. For objects version 3 onwards, after all xdg_output properties have been
  72. sent (when the object is created and when properties are updated), a
  73. wl_output.done event is sent. This allows changes to the output
  74. properties to be seen as atomic, even if they happen via multiple events.
  75. </description>
  76. <request name="destroy" type="destructor">
  77. <description summary="destroy the xdg_output object">
  78. Using this request a client can tell the server that it is not
  79. going to use the xdg_output object anymore.
  80. </description>
  81. </request>
  82. <event name="logical_position">
  83. <description summary="position of the output within the global compositor space">
  84. The position event describes the location of the wl_output within
  85. the global compositor space.
  86. The logical_position event is sent after creating an xdg_output
  87. (see xdg_output_manager.get_xdg_output) and whenever the location
  88. of the output changes within the global compositor space.
  89. </description>
  90. <arg name="x" type="int"
  91. summary="x position within the global compositor space"/>
  92. <arg name="y" type="int"
  93. summary="y position within the global compositor space"/>
  94. </event>
  95. <event name="logical_size">
  96. <description summary="size of the output in the global compositor space">
  97. The logical_size event describes the size of the output in the
  98. global compositor space.
  99. For example, a surface without any buffer scale, transformation
  100. nor rotation set, with the size matching the logical_size will
  101. have the same size as the corresponding output when displayed.
  102. Most regular Wayland clients should not pay attention to the
  103. logical size and would rather rely on xdg_shell interfaces.
  104. Some clients such as Xwayland, however, need this to configure
  105. their surfaces in the global compositor space as the compositor
  106. may apply a different scale from what is advertised by the output
  107. scaling property (to achieve fractional scaling, for example).
  108. For example, for a wl_output mode 3840×2160 and a scale factor 2:
  109. - A compositor not scaling the surface buffers will advertise a
  110. logical size of 3840×2160,
  111. - A compositor automatically scaling the surface buffers will
  112. advertise a logical size of 1920×1080,
  113. - A compositor using a fractional scale of 1.5 will advertise a
  114. logical size of 2560×1440.
  115. For example, for a wl_output mode 1920×1080 and a 90 degree rotation,
  116. the compositor will advertise a logical size of 1080x1920.
  117. The logical_size event is sent after creating an xdg_output
  118. (see xdg_output_manager.get_xdg_output) and whenever the logical
  119. size of the output changes, either as a result of a change in the
  120. applied scale or because of a change in the corresponding output
  121. mode(see wl_output.mode) or transform (see wl_output.transform).
  122. </description>
  123. <arg name="width" type="int"
  124. summary="width in global compositor space"/>
  125. <arg name="height" type="int"
  126. summary="height in global compositor space"/>
  127. </event>
  128. <event name="done">
  129. <description summary="all information about the output have been sent">
  130. This event is sent after all other properties of an xdg_output
  131. have been sent.
  132. This allows changes to the xdg_output properties to be seen as
  133. atomic, even if they happen via multiple events.
  134. For objects version 3 onwards, this event is deprecated. Compositors
  135. are not required to send it anymore and must send wl_output.done
  136. instead.
  137. </description>
  138. </event>
  139. <!-- Version 2 additions -->
  140. <event name="name" since="2">
  141. <description summary="name of this output">
  142. Many compositors will assign names to their outputs, show them to the
  143. user, allow them to be configured by name, etc. The client may wish to
  144. know this name as well to offer the user similar behaviors.
  145. The naming convention is compositor defined, but limited to
  146. alphanumeric characters and dashes (-). Each name is unique among all
  147. wl_output globals, but if a wl_output global is destroyed the same name
  148. may be reused later. The names will also remain consistent across
  149. sessions with the same hardware and software configuration.
  150. Examples of names include 'HDMI-A-1', 'WL-1', 'X11-1', etc. However, do
  151. not assume that the name is a reflection of an underlying DRM
  152. connector, X11 connection, etc.
  153. The name event is sent after creating an xdg_output (see
  154. xdg_output_manager.get_xdg_output). This event is only sent once per
  155. xdg_output, and the name does not change over the lifetime of the
  156. wl_output global.
  157. </description>
  158. <arg name="name" type="string" summary="output name"/>
  159. </event>
  160. <event name="description" since="2">
  161. <description summary="human-readable description of this output">
  162. Many compositors can produce human-readable descriptions of their
  163. outputs. The client may wish to know this description as well, to
  164. communicate the user for various purposes.
  165. The description is a UTF-8 string with no convention defined for its
  166. contents. Examples might include 'Foocorp 11" Display' or 'Virtual X11
  167. output via :1'.
  168. The description event is sent after creating an xdg_output (see
  169. xdg_output_manager.get_xdg_output) and whenever the description
  170. changes. The description is optional, and may not be sent at all.
  171. For objects of version 2 and lower, this event is only sent once per
  172. xdg_output, and the description does not change over the lifetime of
  173. the wl_output global.
  174. </description>
  175. <arg name="description" type="string" summary="output description"/>
  176. </event>
  177. </interface>
  178. </protocol>