| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 * default container | 151 * default container |
| 152 */ | 152 */ |
| 153 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, | 153 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, |
| 154 /** | 154 /** |
| 155 * system modal container | 155 * system modal container |
| 156 */ | 156 */ |
| 157 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, | 157 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, |
| 158 }; | 158 }; |
| 159 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ | 159 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ |
| 160 | 160 |
| 161 #ifndef ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM |
| 162 #define ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM |
| 163 /** |
| 164 * @ingroup iface_zwp_remote_shell_v1 |
| 165 * state types for remote surfaces |
| 166 * |
| 167 * Defines common show states for shell surfaces. |
| 168 */ |
| 169 enum zwp_remote_shell_v1_state_type { |
| 170 /** |
| 171 * normal window state |
| 172 */ |
| 173 ZWP_REMOTE_SHELL_V1_STATE_TYPE_NORMAL = 1, |
| 174 /** |
| 175 * minimized window state |
| 176 */ |
| 177 ZWP_REMOTE_SHELL_V1_STATE_TYPE_MINIMIZED = 2, |
| 178 /** |
| 179 * maximized window state |
| 180 */ |
| 181 ZWP_REMOTE_SHELL_V1_STATE_TYPE_MAXIMIZED = 3, |
| 182 /** |
| 183 * fullscreen window state |
| 184 */ |
| 185 ZWP_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4, |
| 186 /** |
| 187 * pinned window state |
| 188 */ |
| 189 ZWP_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5, |
| 190 }; |
| 191 #endif /* ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM */ |
| 192 |
| 161 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 193 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
| 162 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 194 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
| 163 enum zwp_remote_shell_v1_error { | 195 enum zwp_remote_shell_v1_error { |
| 164 /** | 196 /** |
| 165 * given wl_surface has another role | 197 * given wl_surface has another role |
| 166 */ | 198 */ |
| 167 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 199 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
| 168 /** | 200 /** |
| 169 * invalid notification id | 201 * invalid notification id |
| 170 */ | 202 */ |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 495 |
| 464 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 | 496 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 |
| 465 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 | 497 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 |
| 466 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 | 498 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 |
| 467 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 | 499 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 |
| 468 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 | 500 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 |
| 469 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 | 501 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 |
| 470 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 | 502 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 |
| 471 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 | 503 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 |
| 472 #define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED 8 | 504 #define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED 8 |
| 505 #define ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 9 |
| 473 | 506 |
| 474 /** | 507 /** |
| 475 * @ingroup iface_zwp_remote_surface_v1 | 508 * @ingroup iface_zwp_remote_surface_v1 |
| 476 */ | 509 */ |
| 477 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN_SINCE_VERSION 1 | 510 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN_SINCE_VERSION 1 |
| 478 /** | 511 /** |
| 479 * @ingroup iface_zwp_remote_surface_v1 | 512 * @ingroup iface_zwp_remote_surface_v1 |
| 480 */ | 513 */ |
| 481 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN_SINCE_VERSION 1 | 514 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN_SINCE_VERSION 1 |
| 482 /** | 515 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 500 */ | 533 */ |
| 501 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED_SINCE_VERSION 2 | 534 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED_SINCE_VERSION 2 |
| 502 /** | 535 /** |
| 503 * @ingroup iface_zwp_remote_surface_v1 | 536 * @ingroup iface_zwp_remote_surface_v1 |
| 504 */ | 537 */ |
| 505 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED_SINCE_VERSION 3 | 538 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED_SINCE_VERSION 3 |
| 506 /** | 539 /** |
| 507 * @ingroup iface_zwp_remote_surface_v1 | 540 * @ingroup iface_zwp_remote_surface_v1 |
| 508 */ | 541 */ |
| 509 #define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED_SINCE_VERSION 3 | 542 #define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED_SINCE_VERSION 3 |
| 543 /** |
| 544 * @ingroup iface_zwp_remote_surface_v1 |
| 545 */ |
| 546 #define ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 7 |
| 510 | 547 |
| 511 /** | 548 /** |
| 512 * @ingroup iface_zwp_remote_surface_v1 | 549 * @ingroup iface_zwp_remote_surface_v1 |
| 513 * Sends an set_fullscreen event to the client owning the resource. | 550 * Sends an set_fullscreen event to the client owning the resource. |
| 514 * @param resource_ The client's resource | 551 * @param resource_ The client's resource |
| 515 */ | 552 */ |
| 516 static inline void | 553 static inline void |
| 517 zwp_remote_surface_v1_send_set_fullscreen(struct wl_resource *resource_) | 554 zwp_remote_surface_v1_send_set_fullscreen(struct wl_resource *resource_) |
| 518 { | 555 { |
| 519 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN); | 556 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 * Sends an unset_pinned event to the client owning the resource. | 638 * Sends an unset_pinned event to the client owning the resource. |
| 602 * @param resource_ The client's resource | 639 * @param resource_ The client's resource |
| 603 */ | 640 */ |
| 604 static inline void | 641 static inline void |
| 605 zwp_remote_surface_v1_send_unset_pinned(struct wl_resource *resource_) | 642 zwp_remote_surface_v1_send_unset_pinned(struct wl_resource *resource_) |
| 606 { | 643 { |
| 607 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_PINNED); | 644 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_PINNED); |
| 608 } | 645 } |
| 609 | 646 |
| 610 /** | 647 /** |
| 648 * @ingroup iface_zwp_remote_surface_v1 |
| 649 * Sends an state_type_changed event to the client owning the resource. |
| 650 * @param resource_ The client's resource |
| 651 */ |
| 652 static inline void |
| 653 zwp_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin
t32_t state_type) |
| 654 { |
| 655 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANG
ED, state_type); |
| 656 } |
| 657 |
| 658 /** |
| 611 * @ingroup iface_zwp_notification_surface_v1 | 659 * @ingroup iface_zwp_notification_surface_v1 |
| 612 * @struct zwp_notification_surface_v1_interface | 660 * @struct zwp_notification_surface_v1_interface |
| 613 */ | 661 */ |
| 614 struct zwp_notification_surface_v1_interface { | 662 struct zwp_notification_surface_v1_interface { |
| 615 /** | 663 /** |
| 616 * Destroy the notification_surface | 664 * Destroy the notification_surface |
| 617 * | 665 * |
| 618 * Unmap and destroy the notification surface. | 666 * Unmap and destroy the notification surface. |
| 619 */ | 667 */ |
| 620 void (*destroy)(struct wl_client *client, | 668 void (*destroy)(struct wl_client *client, |
| 621 struct wl_resource *resource); | 669 struct wl_resource *resource); |
| 622 }; | 670 }; |
| 623 | 671 |
| 624 | 672 |
| 625 #ifdef __cplusplus | 673 #ifdef __cplusplus |
| 626 } | 674 } |
| 627 #endif | 675 #endif |
| 628 | 676 |
| 629 #endif | 677 #endif |
| OLD | NEW |