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_SERVER_PROTOCOL_H | 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H |
4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H | 4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H |
5 | 5 |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include "wayland-server.h" | 8 #include "wayland-server.h" |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 * given wl_surface has another role | 197 * given wl_surface has another role |
198 */ | 198 */ |
199 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 199 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
200 /** | 200 /** |
201 * invalid notification id | 201 * invalid notification id |
202 */ | 202 */ |
203 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, | 203 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, |
204 }; | 204 }; |
205 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ | 205 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ |
206 | 206 |
207 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM | |
208 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM | |
209 /** | |
210 * @ingroup iface_zwp_remote_shell_v1 | |
211 * the layout mode | |
212 * | |
213 * Determine how a client should layout surfaces. | |
214 */ | |
215 enum zwp_remote_shell_v1_layout_mode { | |
216 /** | |
217 * mulitple windows | |
218 */ | |
219 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, | |
220 /** | |
221 * restricted mode for table | |
222 */ | |
223 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, | |
224 }; | |
225 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ | |
226 | |
227 /** | 207 /** |
228 * @ingroup iface_zwp_remote_shell_v1 | 208 * @ingroup iface_zwp_remote_shell_v1 |
229 * @struct zwp_remote_shell_v1_interface | 209 * @struct zwp_remote_shell_v1_interface |
230 */ | 210 */ |
231 struct zwp_remote_shell_v1_interface { | 211 struct zwp_remote_shell_v1_interface { |
232 /** | 212 /** |
233 * destroy remote_shell | 213 * destroy remote_shell |
234 * | 214 * |
235 * Destroy this remote_shell object. | 215 * Destroy this remote_shell object. |
236 * | 216 * |
(...skipping 30 matching lines...) Expand all Loading... |
267 */ | 247 */ |
268 void (*get_notification_surface)(struct wl_client *client, | 248 void (*get_notification_surface)(struct wl_client *client, |
269 struct wl_resource *resource, | 249 struct wl_resource *resource, |
270 uint32_t id, | 250 uint32_t id, |
271 struct wl_resource *surface, | 251 struct wl_resource *surface, |
272 const char *notification_id); | 252 const char *notification_id); |
273 }; | 253 }; |
274 | 254 |
275 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 | 255 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 |
276 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 | 256 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 |
277 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED 2 | |
278 | 257 |
279 /** | 258 /** |
280 * @ingroup iface_zwp_remote_shell_v1 | 259 * @ingroup iface_zwp_remote_shell_v1 |
281 */ | 260 */ |
282 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 | 261 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 |
283 /** | 262 /** |
284 * @ingroup iface_zwp_remote_shell_v1 | 263 * @ingroup iface_zwp_remote_shell_v1 |
285 */ | 264 */ |
286 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 | 265 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
287 /** | |
288 * @ingroup iface_zwp_remote_shell_v1 | |
289 */ | |
290 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED_SINCE_VERSION 8 | |
291 | 266 |
292 /** | 267 /** |
293 * @ingroup iface_zwp_remote_shell_v1 | 268 * @ingroup iface_zwp_remote_shell_v1 |
294 * Sends an configure event to the client owning the resource. | 269 * Sends an configure event to the client owning the resource. |
295 * @param resource_ The client's resource | 270 * @param resource_ The client's resource |
296 */ | 271 */ |
297 static inline void | 272 static inline void |
298 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width,
int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3
2_t work_area_inset_right, int32_t work_area_inset_bottom) | 273 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width,
int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3
2_t work_area_inset_right, int32_t work_area_inset_bottom) |
299 { | 274 { |
300 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width,
height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a
rea_inset_bottom); | 275 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width,
height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a
rea_inset_bottom); |
301 } | 276 } |
302 | 277 |
303 /** | 278 /** |
304 * @ingroup iface_zwp_remote_shell_v1 | 279 * @ingroup iface_zwp_remote_shell_v1 |
305 * Sends an activated event to the client owning the resource. | 280 * Sends an activated event to the client owning the resource. |
306 * @param resource_ The client's resource | 281 * @param resource_ The client's resource |
307 */ | 282 */ |
308 static inline void | 283 static inline void |
309 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) | 284 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) |
310 { | 285 { |
311 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); | 286 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); |
312 } | 287 } |
313 | 288 |
314 /** | 289 /** |
315 * @ingroup iface_zwp_remote_shell_v1 | |
316 * Sends an layout_mode_changed event to the client owning the resource. | |
317 * @param resource_ The client's resource | |
318 */ | |
319 static inline void | |
320 zwp_remote_shell_v1_send_layout_mode_changed(struct wl_resource *resource_, uint
32_t layout_mode) | |
321 { | |
322 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGE
D, layout_mode); | |
323 } | |
324 | |
325 /** | |
326 * @ingroup iface_zwp_remote_surface_v1 | 290 * @ingroup iface_zwp_remote_surface_v1 |
327 * @struct zwp_remote_surface_v1_interface | 291 * @struct zwp_remote_surface_v1_interface |
328 */ | 292 */ |
329 struct zwp_remote_surface_v1_interface { | 293 struct zwp_remote_surface_v1_interface { |
330 /** | 294 /** |
331 * Destroy the remote_surface | 295 * Destroy the remote_surface |
332 * | 296 * |
333 * Unmap and destroy the window. The window will be effectively | 297 * Unmap and destroy the window. The window will be effectively |
334 * hidden from the user's point of view, and all state will be | 298 * hidden from the user's point of view, and all state will be |
335 * lost. | 299 * lost. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 * | 484 * |
521 * Set distance from the top of the surface to the contents. | 485 * Set distance from the top of the surface to the contents. |
522 * | 486 * |
523 * This distance typically represents the size of the window | 487 * This distance typically represents the size of the window |
524 * caption. | 488 * caption. |
525 * @since 5 | 489 * @since 5 |
526 */ | 490 */ |
527 void (*set_top_inset)(struct wl_client *client, | 491 void (*set_top_inset)(struct wl_client *client, |
528 struct wl_resource *resource, | 492 struct wl_resource *resource, |
529 int32_t height); | 493 int32_t height); |
530 /** | |
531 * suggests a re-layout of remote shell input area | |
532 * | |
533 * Suggests a surface should become system modal. | |
534 * @since 8 | |
535 */ | |
536 void (*set_system_modal)(struct wl_client *client, | |
537 struct wl_resource *resource); | |
538 /** | |
539 * suggests a re-layout of remote shell input area | |
540 * | |
541 * Suggests a surface should become non system modal. | |
542 * @since 8 | |
543 */ | |
544 void (*unset_system_modal)(struct wl_client *client, | |
545 struct wl_resource *resource); | |
546 }; | 494 }; |
547 | 495 |
548 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 | 496 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 |
549 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 | 497 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 |
550 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 | 498 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 |
551 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 | 499 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 |
552 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 | 500 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 |
553 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 | 501 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 |
554 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 | 502 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 |
555 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 | 503 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 void (*destroy)(struct wl_client *client, | 668 void (*destroy)(struct wl_client *client, |
721 struct wl_resource *resource); | 669 struct wl_resource *resource); |
722 }; | 670 }; |
723 | 671 |
724 | 672 |
725 #ifdef __cplusplus | 673 #ifdef __cplusplus |
726 } | 674 } |
727 #endif | 675 #endif |
728 | 676 |
729 #endif | 677 #endif |
OLD | NEW |