OLD | NEW |
1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.11.0 */ |
2 | 2 |
3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
5 | 5 |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include "wayland-client.h" | 8 #include "wayland-client.h" |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 14 matching lines...) Expand all Loading... |
25 * together with the corresponding interface version bump. Backward | 25 * together with the corresponding interface version bump. Backward |
26 * incompatible changes are done by bumping the version number in the protocol | 26 * incompatible changes are done by bumping the version number in the protocol |
27 * and interface names and resetting the interface version. Once the protocol | 27 * and interface names and resetting the interface version. Once the protocol |
28 * is to be declared stable, the 'z' prefix and the version number in the | 28 * is to be declared stable, the 'z' prefix and the version number in the |
29 * protocol and interface names are removed and the interface version number is | 29 * protocol and interface names are removed and the interface version number is |
30 * reset. | 30 * reset. |
31 * | 31 * |
32 * @section page_ifaces_remote_shell_unstable_v1 Interfaces | 32 * @section page_ifaces_remote_shell_unstable_v1 Interfaces |
33 * - @subpage page_iface_zwp_remote_shell_v1 - remote_shell | 33 * - @subpage page_iface_zwp_remote_shell_v1 - remote_shell |
34 * - @subpage page_iface_zwp_remote_surface_v1 - A desktop window | 34 * - @subpage page_iface_zwp_remote_surface_v1 - A desktop window |
| 35 * - @subpage page_iface_zwp_notification_surface_v1 - A notification window |
35 * @section page_copyright_remote_shell_unstable_v1 Copyright | 36 * @section page_copyright_remote_shell_unstable_v1 Copyright |
36 * <pre> | 37 * <pre> |
37 * | 38 * |
38 * Copyright 2016 The Chromium Authors. | 39 * Copyright 2016 The Chromium Authors. |
39 * | 40 * |
40 * Permission is hereby granted, free of charge, to any person obtaining a | 41 * Permission is hereby granted, free of charge, to any person obtaining a |
41 * copy of this software and associated documentation files (the "Software"), | 42 * copy of this software and associated documentation files (the "Software"), |
42 * to deal in the Software without restriction, including without limitation | 43 * to deal in the Software without restriction, including without limitation |
43 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 44 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
44 * and/or sell copies of the Software, and to permit persons to whom the | 45 * and/or sell copies of the Software, and to permit persons to whom the |
45 * Software is furnished to do so, subject to the following conditions: | 46 * Software is furnished to do so, subject to the following conditions: |
46 * | 47 * |
47 * The above copyright notice and this permission notice (including the next | 48 * The above copyright notice and this permission notice (including the next |
48 * paragraph) shall be included in all copies or substantial portions of the | 49 * paragraph) shall be included in all copies or substantial portions of the |
49 * Software. | 50 * Software. |
50 * | 51 * |
51 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 52 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
52 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 53 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
53 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 54 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
54 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 55 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
55 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 56 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
56 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 57 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
57 * DEALINGS IN THE SOFTWARE. | 58 * DEALINGS IN THE SOFTWARE. |
58 * </pre> | 59 * </pre> |
59 */ | 60 */ |
60 struct wl_surface; | 61 struct wl_surface; |
| 62 struct zwp_notification_surface_v1; |
61 struct zwp_remote_shell_v1; | 63 struct zwp_remote_shell_v1; |
62 struct zwp_remote_surface_v1; | 64 struct zwp_remote_surface_v1; |
63 | 65 |
64 /** | 66 /** |
65 * @page page_iface_zwp_remote_shell_v1 zwp_remote_shell_v1 | 67 * @page page_iface_zwp_remote_shell_v1 zwp_remote_shell_v1 |
66 * @section page_iface_zwp_remote_shell_v1_desc Description | 68 * @section page_iface_zwp_remote_shell_v1_desc Description |
67 * | 69 * |
68 * The global interface that allows clients to turn a wl_surface into a | 70 * The global interface that allows clients to turn a wl_surface into a |
69 * "real window" which is remotely managed but can be stacked, activated | 71 * "real window" which is remotely managed but can be stacked, activated |
70 * and made fullscreen by the user. | 72 * and made fullscreen by the user. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * It provides requests to treat surfaces like windows, allowing to set | 110 * It provides requests to treat surfaces like windows, allowing to set |
109 * properties like app id and geometry. | 111 * properties like app id and geometry. |
110 * | 112 * |
111 * The client must call wl_surface.commit on the corresponding wl_surface | 113 * The client must call wl_surface.commit on the corresponding wl_surface |
112 * for the remote_surface state to take effect. | 114 * for the remote_surface state to take effect. |
113 * | 115 * |
114 * For a surface to be mapped by the compositor the client must have | 116 * For a surface to be mapped by the compositor the client must have |
115 * committed both an remote_surface state and a buffer. | 117 * committed both an remote_surface state and a buffer. |
116 */ | 118 */ |
117 extern const struct wl_interface zwp_remote_surface_v1_interface; | 119 extern const struct wl_interface zwp_remote_surface_v1_interface; |
| 120 /** |
| 121 * @page page_iface_zwp_notification_surface_v1 zwp_notification_surface_v1 |
| 122 * @section page_iface_zwp_notification_surface_v1_desc Description |
| 123 * |
| 124 * An interface that may be implemented by a wl_surface to host |
| 125 * notification contents. |
| 126 * @section page_iface_zwp_notification_surface_v1_api API |
| 127 * See @ref iface_zwp_notification_surface_v1. |
| 128 */ |
| 129 /** |
| 130 * @defgroup iface_zwp_notification_surface_v1 The zwp_notification_surface_v1 i
nterface |
| 131 * |
| 132 * An interface that may be implemented by a wl_surface to host |
| 133 * notification contents. |
| 134 */ |
| 135 extern const struct wl_interface zwp_notification_surface_v1_interface; |
118 | 136 |
119 #ifndef ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM | 137 #ifndef ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM |
120 #define ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM | 138 #define ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM |
121 /** | 139 /** |
122 * @ingroup iface_zwp_remote_shell_v1 | 140 * @ingroup iface_zwp_remote_shell_v1 |
123 * containers for remote surfaces | 141 * containers for remote surfaces |
124 * | 142 * |
125 * Determine how a remote surface should be stacked relative to other | 143 * Determine how a remote surface should be stacked relative to other |
126 * shell surfaces. | 144 * shell surfaces. |
127 */ | 145 */ |
128 enum zwp_remote_shell_v1_container { | 146 enum zwp_remote_shell_v1_container { |
129 /** | 147 /** |
130 * default container | 148 * default container |
131 */ | 149 */ |
132 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, | 150 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, |
133 /** | 151 /** |
134 * system modal container | 152 * system modal container |
135 */ | 153 */ |
136 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, | 154 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, |
137 }; | 155 }; |
138 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ | 156 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ |
139 | 157 |
140 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 158 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
141 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 159 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
142 enum zwp_remote_shell_v1_error { | 160 enum zwp_remote_shell_v1_error { |
143 /** | 161 /** |
144 * given wl_surface has another role | 162 * given wl_surface has another role |
145 */ | 163 */ |
146 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 164 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
| 165 /** |
| 166 * invalid notification id |
| 167 */ |
| 168 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, |
147 }; | 169 }; |
148 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ | 170 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ |
149 | 171 |
150 /** | 172 /** |
151 * @ingroup iface_zwp_remote_shell_v1 | 173 * @ingroup iface_zwp_remote_shell_v1 |
152 * @struct zwp_remote_shell_v1_listener | 174 * @struct zwp_remote_shell_v1_listener |
153 */ | 175 */ |
154 struct zwp_remote_shell_v1_listener { | 176 struct zwp_remote_shell_v1_listener { |
155 /** | 177 /** |
156 * suggests a re-layout of remote shell | 178 * suggests a re-layout of remote shell |
(...skipping 25 matching lines...) Expand all Loading... |
182 static inline int | 204 static inline int |
183 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, | 205 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, |
184 const struct zwp_remote_shell_v1_listener *list
ener, void *data) | 206 const struct zwp_remote_shell_v1_listener *list
ener, void *data) |
185 { | 207 { |
186 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, | 208 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, |
187 (void (**)(void)) listener, data); | 209 (void (**)(void)) listener, data); |
188 } | 210 } |
189 | 211 |
190 #define ZWP_REMOTE_SHELL_V1_DESTROY 0 | 212 #define ZWP_REMOTE_SHELL_V1_DESTROY 0 |
191 #define ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 | 213 #define ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 |
| 214 #define ZWP_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 |
192 | 215 |
193 /** | 216 /** |
194 * @ingroup iface_zwp_remote_shell_v1 | 217 * @ingroup iface_zwp_remote_shell_v1 |
195 */ | 218 */ |
196 #define ZWP_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 | 219 #define ZWP_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
197 /** | 220 /** |
198 * @ingroup iface_zwp_remote_shell_v1 | 221 * @ingroup iface_zwp_remote_shell_v1 |
199 */ | 222 */ |
200 #define ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 | 223 #define ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
| 224 /** |
| 225 * @ingroup iface_zwp_remote_shell_v1 |
| 226 */ |
| 227 #define ZWP_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 6 |
201 | 228 |
202 /** @ingroup iface_zwp_remote_shell_v1 */ | 229 /** @ingroup iface_zwp_remote_shell_v1 */ |
203 static inline void | 230 static inline void |
204 zwp_remote_shell_v1_set_user_data(struct zwp_remote_shell_v1 *zwp_remote_shell_v
1, void *user_data) | 231 zwp_remote_shell_v1_set_user_data(struct zwp_remote_shell_v1 *zwp_remote_shell_v
1, void *user_data) |
205 { | 232 { |
206 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_shell_v1, user_dat
a); | 233 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_shell_v1, user_dat
a); |
207 } | 234 } |
208 | 235 |
209 /** @ingroup iface_zwp_remote_shell_v1 */ | 236 /** @ingroup iface_zwp_remote_shell_v1 */ |
210 static inline void * | 237 static inline void * |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 { | 281 { |
255 struct wl_proxy *id; | 282 struct wl_proxy *id; |
256 | 283 |
257 id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_remote_shell_v
1, | 284 id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_remote_shell_v
1, |
258 ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE, &zwp_remote_sur
face_v1_interface, NULL, surface, container); | 285 ZWP_REMOTE_SHELL_V1_GET_REMOTE_SURFACE, &zwp_remote_sur
face_v1_interface, NULL, surface, container); |
259 | 286 |
260 return (struct zwp_remote_surface_v1 *) id; | 287 return (struct zwp_remote_surface_v1 *) id; |
261 } | 288 } |
262 | 289 |
263 /** | 290 /** |
| 291 * @ingroup iface_zwp_remote_shell_v1 |
| 292 * |
| 293 * Creates a notification_surface for the given surface, gives it the |
| 294 * notification_surface role and associated it with a notification id. |
| 295 */ |
| 296 static inline struct zwp_notification_surface_v1 * |
| 297 zwp_remote_shell_v1_get_notification_surface(struct zwp_remote_shell_v1 *zwp_rem
ote_shell_v1, struct wl_surface *surface, const char *notification_id) |
| 298 { |
| 299 struct wl_proxy *id; |
| 300 |
| 301 id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_remote_shell_v
1, |
| 302 ZWP_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE, &zwp_noti
fication_surface_v1_interface, NULL, surface, notification_id); |
| 303 |
| 304 return (struct zwp_notification_surface_v1 *) id; |
| 305 } |
| 306 |
| 307 /** |
264 * @ingroup iface_zwp_remote_surface_v1 | 308 * @ingroup iface_zwp_remote_surface_v1 |
265 * @struct zwp_remote_surface_v1_listener | 309 * @struct zwp_remote_surface_v1_listener |
266 */ | 310 */ |
267 struct zwp_remote_surface_v1_listener { | 311 struct zwp_remote_surface_v1_listener { |
268 /** | 312 /** |
269 * surface wants to be fullscreen | 313 * surface wants to be fullscreen |
270 * | 314 * |
271 * The set_fullscreen event is sent by the compositor when the | 315 * The set_fullscreen event is sent by the compositor when the |
272 * user wants the surface to be made fullscreen. | 316 * user wants the surface to be made fullscreen. |
273 * | 317 * |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 * | 763 * |
720 * This distance typically represents the size of the window caption. | 764 * This distance typically represents the size of the window caption. |
721 */ | 765 */ |
722 static inline void | 766 static inline void |
723 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) | 767 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) |
724 { | 768 { |
725 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | 769 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
726 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); | 770 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); |
727 } | 771 } |
728 | 772 |
| 773 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 |
| 774 |
| 775 /** |
| 776 * @ingroup iface_zwp_notification_surface_v1 |
| 777 */ |
| 778 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 779 |
| 780 /** @ingroup iface_zwp_notification_surface_v1 */ |
| 781 static inline void |
| 782 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1, void *user_data) |
| 783 { |
| 784 wl_proxy_set_user_data((struct wl_proxy *) zwp_notification_surface_v1,
user_data); |
| 785 } |
| 786 |
| 787 /** @ingroup iface_zwp_notification_surface_v1 */ |
| 788 static inline void * |
| 789 zwp_notification_surface_v1_get_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1) |
| 790 { |
| 791 return wl_proxy_get_user_data((struct wl_proxy *) zwp_notification_surfa
ce_v1); |
| 792 } |
| 793 |
| 794 static inline uint32_t |
| 795 zwp_notification_surface_v1_get_version(struct zwp_notification_surface_v1 *zwp_
notification_surface_v1) |
| 796 { |
| 797 return wl_proxy_get_version((struct wl_proxy *) zwp_notification_surface
_v1); |
| 798 } |
| 799 |
| 800 /** |
| 801 * @ingroup iface_zwp_notification_surface_v1 |
| 802 * |
| 803 * Unmap and destroy the notification surface. |
| 804 */ |
| 805 static inline void |
| 806 zwp_notification_surface_v1_destroy(struct zwp_notification_surface_v1 *zwp_noti
fication_surface_v1) |
| 807 { |
| 808 wl_proxy_marshal((struct wl_proxy *) zwp_notification_surface_v1, |
| 809 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); |
| 810 |
| 811 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); |
| 812 } |
| 813 |
729 #ifdef __cplusplus | 814 #ifdef __cplusplus |
730 } | 815 } |
731 #endif | 816 #endif |
732 | 817 |
733 #endif | 818 #endif |
OLD | NEW |