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 |
207 /** | 227 /** |
208 * @ingroup iface_zwp_remote_shell_v1 | 228 * @ingroup iface_zwp_remote_shell_v1 |
209 * @struct zwp_remote_shell_v1_interface | 229 * @struct zwp_remote_shell_v1_interface |
210 */ | 230 */ |
211 struct zwp_remote_shell_v1_interface { | 231 struct zwp_remote_shell_v1_interface { |
212 /** | 232 /** |
213 * destroy remote_shell | 233 * destroy remote_shell |
214 * | 234 * |
215 * Destroy this remote_shell object. | 235 * Destroy this remote_shell object. |
216 * | 236 * |
(...skipping 30 matching lines...) Expand all Loading... |
247 */ | 267 */ |
248 void (*get_notification_surface)(struct wl_client *client, | 268 void (*get_notification_surface)(struct wl_client *client, |
249 struct wl_resource *resource, | 269 struct wl_resource *resource, |
250 uint32_t id, | 270 uint32_t id, |
251 struct wl_resource *surface, | 271 struct wl_resource *surface, |
252 const char *notification_id); | 272 const char *notification_id); |
253 }; | 273 }; |
254 | 274 |
255 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 | 275 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 |
256 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 | 276 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 |
| 277 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED 2 |
257 | 278 |
258 /** | 279 /** |
259 * @ingroup iface_zwp_remote_shell_v1 | 280 * @ingroup iface_zwp_remote_shell_v1 |
260 */ | 281 */ |
261 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 | 282 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 |
262 /** | 283 /** |
263 * @ingroup iface_zwp_remote_shell_v1 | 284 * @ingroup iface_zwp_remote_shell_v1 |
264 */ | 285 */ |
265 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 | 286 #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 |
266 | 291 |
267 /** | 292 /** |
268 * @ingroup iface_zwp_remote_shell_v1 | 293 * @ingroup iface_zwp_remote_shell_v1 |
269 * Sends an configure event to the client owning the resource. | 294 * Sends an configure event to the client owning the resource. |
270 * @param resource_ The client's resource | 295 * @param resource_ The client's resource |
271 */ | 296 */ |
272 static inline void | 297 static inline void |
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) | 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) |
274 { | 299 { |
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); | 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); |
276 } | 301 } |
277 | 302 |
278 /** | 303 /** |
279 * @ingroup iface_zwp_remote_shell_v1 | 304 * @ingroup iface_zwp_remote_shell_v1 |
280 * Sends an activated event to the client owning the resource. | 305 * Sends an activated event to the client owning the resource. |
281 * @param resource_ The client's resource | 306 * @param resource_ The client's resource |
282 */ | 307 */ |
283 static inline void | 308 static inline void |
284 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) | 309 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) |
285 { | 310 { |
286 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); | 311 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); |
287 } | 312 } |
288 | 313 |
289 /** | 314 /** |
| 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 /** |
290 * @ingroup iface_zwp_remote_surface_v1 | 326 * @ingroup iface_zwp_remote_surface_v1 |
291 * @struct zwp_remote_surface_v1_interface | 327 * @struct zwp_remote_surface_v1_interface |
292 */ | 328 */ |
293 struct zwp_remote_surface_v1_interface { | 329 struct zwp_remote_surface_v1_interface { |
294 /** | 330 /** |
295 * Destroy the remote_surface | 331 * Destroy the remote_surface |
296 * | 332 * |
297 * Unmap and destroy the window. The window will be effectively | 333 * Unmap and destroy the window. The window will be effectively |
298 * hidden from the user's point of view, and all state will be | 334 * hidden from the user's point of view, and all state will be |
299 * lost. | 335 * lost. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 * | 520 * |
485 * Set distance from the top of the surface to the contents. | 521 * Set distance from the top of the surface to the contents. |
486 * | 522 * |
487 * This distance typically represents the size of the window | 523 * This distance typically represents the size of the window |
488 * caption. | 524 * caption. |
489 * @since 5 | 525 * @since 5 |
490 */ | 526 */ |
491 void (*set_top_inset)(struct wl_client *client, | 527 void (*set_top_inset)(struct wl_client *client, |
492 struct wl_resource *resource, | 528 struct wl_resource *resource, |
493 int32_t height); | 529 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); |
494 }; | 546 }; |
495 | 547 |
496 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 | 548 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 |
497 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 | 549 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 |
498 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 | 550 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 |
499 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 | 551 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 |
500 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 | 552 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 |
501 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 | 553 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 |
502 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 | 554 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 |
503 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 | 555 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 void (*destroy)(struct wl_client *client, | 720 void (*destroy)(struct wl_client *client, |
669 struct wl_resource *resource); | 721 struct wl_resource *resource); |
670 }; | 722 }; |
671 | 723 |
672 | 724 |
673 #ifdef __cplusplus | 725 #ifdef __cplusplus |
674 } | 726 } |
675 #endif | 727 #endif |
676 | 728 |
677 #endif | 729 #endif |
OLD | NEW |