| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 * multiple windows | 225 * multiple windows |
| 226 */ | 226 */ |
| 227 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, | 227 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, |
| 228 /** | 228 /** |
| 229 * restricted mode for tablet | 229 * restricted mode for tablet |
| 230 */ | 230 */ |
| 231 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, | 231 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, |
| 232 }; | 232 }; |
| 233 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ | 233 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ |
| 234 | 234 |
| 235 #ifndef ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM |
| 236 #define ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM |
| 237 /** |
| 238 * @ingroup iface_zcr_remote_surface_v1 |
| 239 * shelf autohide behavior |
| 240 * |
| 241 * Determine the autohide behavior of the shelf. |
| 242 */ |
| 243 enum zcr_remote_shell_v1_shelf_autohide_state { |
| 244 /** |
| 245 * shelf is visible |
| 246 */ |
| 247 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_VISIBLE = 1, |
| 248 /** |
| 249 * shelf autohides and is not sticky |
| 250 */ |
| 251 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_AUTOHIDE_NON_STICKY = 2, |
| 252 /** |
| 253 * shelf autohides and is sticky |
| 254 */ |
| 255 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_AUTOHIDE_STICKY = 3, |
| 256 }; |
| 257 #endif /* ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM */ |
| 258 |
| 235 /** | 259 /** |
| 236 * @ingroup iface_zcr_remote_shell_v1 | 260 * @ingroup iface_zcr_remote_shell_v1 |
| 237 * @struct zcr_remote_shell_v1_interface | 261 * @struct zcr_remote_shell_v1_interface |
| 238 */ | 262 */ |
| 239 struct zcr_remote_shell_v1_interface { | 263 struct zcr_remote_shell_v1_interface { |
| 240 /** | 264 /** |
| 241 * destroy remote_shell | 265 * destroy remote_shell |
| 242 * | 266 * |
| 243 * Destroy this remote_shell object. | 267 * Destroy this remote_shell object. |
| 244 * | 268 * |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 * and specifies inner bounds of the shadow. Specifying zero width | 624 * and specifies inner bounds of the shadow. Specifying zero width |
| 601 * and height will disable the shadow. | 625 * and height will disable the shadow. |
| 602 * @since 2 | 626 * @since 2 |
| 603 */ | 627 */ |
| 604 void (*set_rectangular_surface_shadow)(struct wl_client *client, | 628 void (*set_rectangular_surface_shadow)(struct wl_client *client, |
| 605 struct wl_resource *resource, | 629 struct wl_resource *resource, |
| 606 int32_t x, | 630 int32_t x, |
| 607 int32_t y, | 631 int32_t y, |
| 608 int32_t width, | 632 int32_t width, |
| 609 int32_t height); | 633 int32_t height); |
| 610 » /** | 634 |
| 611 » * ack a configure event | 635 /** |
| 612 » * | 636 * requests the system ui autohide behavior for the surface |
| 613 » * When a configure event is received, if a client commits the | 637 * |
| 614 » * surface in response to the configure event, then the client must | 638 * Requests how the surface will autohide the system UI when it is made |
| 615 » * make an ack_configure request sometime before the commit | 639 * active. |
| 616 » * request, passing along the serial of the configure event. | 640 * |
| 617 » * | 641 * @since 3 |
| 618 » * For instance, the compositor might use this information during | 642 */ |
| 619 » * display configuration to change its coordinate space for | 643 void (*set_autohide_systemui)(struct wl_client* client, |
| 620 » * set_window_geometry requests only when the client has switched | 644 struct wl_resource* resource, |
| 621 » * to the new coordinate space. | 645 uint32_t autohide); |
| 622 » * | 646 |
| 623 » * If the client receives multiple configure events before it can | 647 /** |
| 624 » * respond to one, it only has to ack the last configure event. | 648 * ack a configure event |
| 625 » * | 649 * |
| 626 » * A client is not required to commit immediately after sending an | 650 * When a configure event is received, if a client commits the |
| 627 » * ack_configure request - it may even ack_configure several times | 651 * surface in response to the configure event, then the client must |
| 628 » * before its next surface commit. | 652 * make an ack_configure request sometime before the commit |
| 629 » * | 653 * request, passing along the serial of the configure event. |
| 630 » * A client may send multiple ack_configure requests before | 654 * |
| 631 » * committing, but only the last request sent before a commit | 655 * For instance, the compositor might use this information during |
| 632 » * indicates which configure event the client really is responding | 656 * display configuration to change its coordinate space for |
| 633 » * to. | 657 * set_window_geometry requests only when the client has switched |
| 634 » * @param serial the serial from the configure event | 658 * to the new coordinate space. |
| 635 » * @since 3 | 659 * |
| 636 » */ | 660 * If the client receives multiple configure events before it can |
| 637 » void (*ack_configure)(struct wl_client *client, | 661 * respond to one, it only has to ack the last configure event. |
| 638 » » » struct wl_resource *resource, | 662 * |
| 639 » » » uint32_t serial); | 663 * A client is not required to commit immediately after sending an |
| 640 » /** | 664 * ack_configure request - it may even ack_configure several times |
| 641 » * start an interactive move | 665 * before its next surface commit. |
| 642 » * | 666 * |
| 643 » * Start an interactive, user-driven move of the surface. | 667 * A client may send multiple ack_configure requests before |
| 644 » * | 668 * committing, but only the last request sent before a commit |
| 645 » * The compositor responds to this request with a configure event | 669 * indicates which configure event the client really is responding |
| 646 » * that transitions to the "moving" state. The client must only | 670 * to. |
| 647 » * initiate motion after acknowledging the state change. The | 671 * @param serial the serial from the configure event |
| 648 » * compositor can assume that subsequent set_window_geometry | 672 * @since 4 |
| 649 » * requests are position updates until the next state transition is | 673 */ |
| 650 » * acknowledged. | 674 void (*ack_configure)(struct wl_client* client, |
| 651 » * | 675 struct wl_resource* resource, |
| 652 » * The compositor may ignore move requests depending on the state | 676 uint32_t serial); |
| 653 » * of the surface, e.g. fullscreen or maximized. | 677 /** |
| 654 » * @since 3 | 678 * start an interactive move |
| 655 » */ | 679 * |
| 656 » void (*move)(struct wl_client *client, | 680 * Start an interactive, user-driven move of the surface. |
| 657 » » struct wl_resource *resource); | 681 * |
| 682 * The compositor responds to this request with a configure event |
| 683 * that transitions to the "moving" state. The client must only |
| 684 * initiate motion after acknowledging the state change. The |
| 685 * compositor can assume that subsequent set_window_geometry |
| 686 * requests are position updates until the next state transition is |
| 687 * acknowledged. |
| 688 * |
| 689 * The compositor may ignore move requests depending on the state |
| 690 * of the surface, e.g. fullscreen or maximized. |
| 691 * @since 4 |
| 692 */ |
| 693 void (*move)(struct wl_client* client, struct wl_resource* resource); |
| 658 }; | 694 }; |
| 659 | 695 |
| 660 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 | 696 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 |
| 661 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 | 697 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 |
| 662 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 | 698 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 |
| 663 | 699 |
| 664 /** | 700 /** |
| 665 * @ingroup iface_zcr_remote_surface_v1 | 701 * @ingroup iface_zcr_remote_surface_v1 |
| 666 */ | 702 */ |
| 667 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 703 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 * @ingroup iface_zcr_remote_surface_v1 | 782 * @ingroup iface_zcr_remote_surface_v1 |
| 747 */ | 783 */ |
| 748 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 | 784 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 749 /** | 785 /** |
| 750 * @ingroup iface_zcr_remote_surface_v1 | 786 * @ingroup iface_zcr_remote_surface_v1 |
| 751 */ | 787 */ |
| 752 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 | 788 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 |
| 753 /** | 789 /** |
| 754 * @ingroup iface_zcr_remote_surface_v1 | 790 * @ingroup iface_zcr_remote_surface_v1 |
| 755 */ | 791 */ |
| 756 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 | 792 #define ZCR_REMOTE_SURFACE_V1_SET_AUTOHIDE_SYSTEMUI_SINCE_VERSION 3 |
| 757 /** | 793 /** |
| 758 * @ingroup iface_zcr_remote_surface_v1 | 794 * @ingroup iface_zcr_remote_surface_v1 |
| 759 */ | 795 */ |
| 760 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 | 796 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4 |
| 797 /** |
| 798 * @ingroup iface_zcr_remote_surface_v1 |
| 799 */ |
| 800 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4 |
| 761 | 801 |
| 762 /** | 802 /** |
| 763 * @ingroup iface_zcr_remote_surface_v1 | 803 * @ingroup iface_zcr_remote_surface_v1 |
| 764 * Sends an close event to the client owning the resource. | 804 * Sends an close event to the client owning the resource. |
| 765 * @param resource_ The client's resource | 805 * @param resource_ The client's resource |
| 766 */ | 806 */ |
| 767 static inline void | 807 static inline void |
| 768 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) | 808 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) |
| 769 { | 809 { |
| 770 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); | 810 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 /** | 850 /** |
| 811 * @ingroup iface_zcr_notification_surface_v1 | 851 * @ingroup iface_zcr_notification_surface_v1 |
| 812 */ | 852 */ |
| 813 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 853 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 814 | 854 |
| 815 #ifdef __cplusplus | 855 #ifdef __cplusplus |
| 816 } | 856 } |
| 817 #endif | 857 #endif |
| 818 | 858 |
| 819 #endif | 859 #endif |
| OLD | NEW |