| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 * the notification_surface role and associated it with a | 268 * the notification_surface role and associated it with a |
| 269 * notification id. | 269 * notification id. |
| 270 */ | 270 */ |
| 271 void (*get_notification_surface)(struct wl_client *client, | 271 void (*get_notification_surface)(struct wl_client *client, |
| 272 struct wl_resource *resource, | 272 struct wl_resource *resource, |
| 273 uint32_t id, | 273 uint32_t id, |
| 274 struct wl_resource *surface, | 274 struct wl_resource *surface, |
| 275 const char *notification_id); | 275 const char *notification_id); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED» 0 | 278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0 |
| 279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED» 1 | 279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1 |
| 280 | 280 |
| 281 /** | 281 /** |
| 282 * @ingroup iface_zcr_remote_shell_v1 | 282 * @ingroup iface_zcr_remote_shell_v1 |
| 283 */ | 283 */ |
| 284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION» 1 | 284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
| 285 /** | 285 /** |
| 286 * @ingroup iface_zcr_remote_shell_v1 | 286 * @ingroup iface_zcr_remote_shell_v1 |
| 287 */ | 287 */ |
| 288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION»1 | 288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 |
| 289 | 289 |
| 290 /** | 290 /** |
| 291 * @ingroup iface_zcr_remote_shell_v1 | 291 * @ingroup iface_zcr_remote_shell_v1 |
| 292 */ |
| 293 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
| 294 /** |
| 295 * @ingroup iface_zcr_remote_shell_v1 |
| 296 */ |
| 297 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
| 298 /** |
| 299 * @ingroup iface_zcr_remote_shell_v1 |
| 300 */ |
| 301 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1 |
| 302 |
| 303 /** |
| 304 * @ingroup iface_zcr_remote_shell_v1 |
| 292 * Sends an activated event to the client owning the resource. | 305 * Sends an activated event to the client owning the resource. |
| 293 * @param resource_ The client's resource | 306 * @param resource_ The client's resource |
| 294 */ | 307 */ |
| 295 static inline void | 308 static inline void |
| 296 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) | 309 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) |
| 297 { | 310 { |
| 298 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); | 311 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); |
| 299 } | 312 } |
| 300 | 313 |
| 301 /** | 314 /** |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 void (*set_system_modal)(struct wl_client *client, | 545 void (*set_system_modal)(struct wl_client *client, |
| 533 struct wl_resource *resource); | 546 struct wl_resource *resource); |
| 534 /** | 547 /** |
| 535 * suggests a re-layout of remote shell input area | 548 * suggests a re-layout of remote shell input area |
| 536 * | 549 * |
| 537 * Suggests a surface should become non system modal. | 550 * Suggests a surface should become non system modal. |
| 538 */ | 551 */ |
| 539 void (*unset_system_modal)(struct wl_client *client, | 552 void (*unset_system_modal)(struct wl_client *client, |
| 540 struct wl_resource *resource); | 553 struct wl_resource *resource); |
| 541 /** | 554 /** |
| 555 * ack a configure event |
| 556 * |
| 557 * When a configure event is received, if a client commits the |
| 558 * surface in response to the configure event, then the client must |
| 559 * make an ack_configure request sometime before the commit |
| 560 * request, passing along the serial of the configure event. |
| 561 * |
| 562 * For instance, the compositor might use this information during |
| 563 * display configuration to change its coordinate space for |
| 564 * set_window_geometry requests only when the client has switched |
| 565 * to the new coordinate space. |
| 566 * |
| 567 * If the client receives multiple configure events before it can |
| 568 * respond to one, it only has to ack the last configure event. |
| 569 * |
| 570 * A client is not required to commit immediately after sending an |
| 571 * ack_configure request - it may even ack_configure several times |
| 572 * before its next surface commit. |
| 573 * |
| 574 * A client may send multiple ack_configure requests before |
| 575 * committing, but only the last request sent before a commit |
| 576 * indicates which configure event the client really is responding |
| 577 * to. |
| 578 * @param serial the serial from the configure event |
| 579 * @since 2 |
| 580 */ |
| 581 void (*ack_configure)(struct wl_client *client, |
| 582 struct wl_resource *resource, |
| 583 uint32_t serial); |
| 584 /** |
| 542 * interactive move started | 585 * interactive move started |
| 543 * | 586 * |
| 544 * Notifies the compositor when an interactive, user-driven move | 587 * Notifies the compositor when an interactive, user-driven move |
| 545 * of the surface starts. The compositor may assume that subsequent | 588 * of the surface starts. The compositor may assume that subsequent |
| 546 * set_window_geometry requests are position updates until it | 589 * set_window_geometry requests are position updates until it |
| 547 * receives a unset_moving request. | 590 * receives a unset_moving request. |
| 548 * @since 2 | 591 * @since 2 |
| 549 */ | 592 */ |
| 550 void (*set_moving)(struct wl_client *client, | 593 void (*set_moving)(struct wl_client *client, |
| 551 struct wl_resource *resource); | 594 struct wl_resource *resource); |
| 552 /** | 595 /** |
| 553 * interactive move stopped | 596 * interactive move stopped |
| 554 * | 597 * |
| 555 * Notifies the compositor when an interactive, user-driven move | 598 * Notifies the compositor when an interactive, user-driven move |
| 556 * of the surface stops. The compositor may choose to stop the move | 599 * of the surface stops. The compositor may choose to stop the move |
| 557 * regardless of this request. | 600 * regardless of this request. |
| 558 * @since 2 | 601 * @since 2 |
| 559 */ | 602 */ |
| 560 void (*unset_moving)(struct wl_client *client, | 603 void (*unset_moving)(struct wl_client *client, |
| 561 struct wl_resource *resource); | 604 struct wl_resource *resource); |
| 562 }; | 605 }; |
| 563 | 606 |
| 564 #define ZCR_REMOTE_SURFACE_V1_CLOSE» 0 | 607 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 |
| 565 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED» 1 | 608 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 |
| 609 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 |
| 566 | 610 |
| 567 /** | 611 /** |
| 568 * @ingroup iface_zcr_remote_surface_v1 | 612 * @ingroup iface_zcr_remote_surface_v1 |
| 569 */ | 613 */ |
| 570 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION» 1 | 614 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| 571 /** | 615 /** |
| 572 * @ingroup iface_zcr_remote_surface_v1 | 616 * @ingroup iface_zcr_remote_surface_v1 |
| 573 */ | 617 */ |
| 574 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION» 1 | 618 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
| 619 /** |
| 620 * @ingroup iface_zcr_remote_surface_v1 |
| 621 */ |
| 622 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 2 |
| 575 | 623 |
| 576 /** | 624 /** |
| 577 * @ingroup iface_zcr_remote_surface_v1 | 625 * @ingroup iface_zcr_remote_surface_v1 |
| 626 */ |
| 627 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 628 /** |
| 629 * @ingroup iface_zcr_remote_surface_v1 |
| 630 */ |
| 631 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 632 /** |
| 633 * @ingroup iface_zcr_remote_surface_v1 |
| 634 */ |
| 635 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1 |
| 636 /** |
| 637 * @ingroup iface_zcr_remote_surface_v1 |
| 638 */ |
| 639 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1 |
| 640 /** |
| 641 * @ingroup iface_zcr_remote_surface_v1 |
| 642 */ |
| 643 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1 |
| 644 /** |
| 645 * @ingroup iface_zcr_remote_surface_v1 |
| 646 */ |
| 647 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE
RSION 1 |
| 648 /** |
| 649 * @ingroup iface_zcr_remote_surface_v1 |
| 650 */ |
| 651 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1 |
| 652 /** |
| 653 * @ingroup iface_zcr_remote_surface_v1 |
| 654 */ |
| 655 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1 |
| 656 /** |
| 657 * @ingroup iface_zcr_remote_surface_v1 |
| 658 */ |
| 659 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1 |
| 660 /** |
| 661 * @ingroup iface_zcr_remote_surface_v1 |
| 662 */ |
| 663 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1 |
| 664 /** |
| 665 * @ingroup iface_zcr_remote_surface_v1 |
| 666 */ |
| 667 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1 |
| 668 /** |
| 669 * @ingroup iface_zcr_remote_surface_v1 |
| 670 */ |
| 671 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1 |
| 672 /** |
| 673 * @ingroup iface_zcr_remote_surface_v1 |
| 674 */ |
| 675 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1 |
| 676 /** |
| 677 * @ingroup iface_zcr_remote_surface_v1 |
| 678 */ |
| 679 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1 |
| 680 /** |
| 681 * @ingroup iface_zcr_remote_surface_v1 |
| 682 */ |
| 683 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1 |
| 684 /** |
| 685 * @ingroup iface_zcr_remote_surface_v1 |
| 686 */ |
| 687 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1 |
| 688 /** |
| 689 * @ingroup iface_zcr_remote_surface_v1 |
| 690 */ |
| 691 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 692 /** |
| 693 * @ingroup iface_zcr_remote_surface_v1 |
| 694 */ |
| 695 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 696 /** |
| 697 * @ingroup iface_zcr_remote_surface_v1 |
| 698 */ |
| 699 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 2 |
| 700 /** |
| 701 * @ingroup iface_zcr_remote_surface_v1 |
| 702 */ |
| 703 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION 2 |
| 704 /** |
| 705 * @ingroup iface_zcr_remote_surface_v1 |
| 706 */ |
| 707 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2 |
| 708 |
| 709 /** |
| 710 * @ingroup iface_zcr_remote_surface_v1 |
| 578 * Sends an close event to the client owning the resource. | 711 * Sends an close event to the client owning the resource. |
| 579 * @param resource_ The client's resource | 712 * @param resource_ The client's resource |
| 580 */ | 713 */ |
| 581 static inline void | 714 static inline void |
| 582 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) | 715 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) |
| 583 { | 716 { |
| 584 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); | 717 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); |
| 585 } | 718 } |
| 586 | 719 |
| 587 /** | 720 /** |
| 588 * @ingroup iface_zcr_remote_surface_v1 | 721 * @ingroup iface_zcr_remote_surface_v1 |
| 589 * Sends an state_type_changed event to the client owning the resource. | 722 * Sends an state_type_changed event to the client owning the resource. |
| 590 * @param resource_ The client's resource | 723 * @param resource_ The client's resource |
| 591 */ | 724 */ |
| 592 static inline void | 725 static inline void |
| 593 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin
t32_t state_type) | 726 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin
t32_t state_type) |
| 594 { | 727 { |
| 595 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG
ED, state_type); | 728 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG
ED, state_type); |
| 596 } | 729 } |
| 597 | 730 |
| 598 /** | 731 /** |
| 732 * @ingroup iface_zcr_remote_surface_v1 |
| 733 * Sends an configure event to the client owning the resource. |
| 734 * @param resource_ The client's resource |
| 735 */ |
| 736 static inline void |
| 737 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig
in_x, int32_t origin_y, uint32_t serial) |
| 738 { |
| 739 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi
n_x, origin_y, serial); |
| 740 } |
| 741 |
| 742 /** |
| 599 * @ingroup iface_zcr_notification_surface_v1 | 743 * @ingroup iface_zcr_notification_surface_v1 |
| 600 * @struct zcr_notification_surface_v1_interface | 744 * @struct zcr_notification_surface_v1_interface |
| 601 */ | 745 */ |
| 602 struct zcr_notification_surface_v1_interface { | 746 struct zcr_notification_surface_v1_interface { |
| 603 /** | 747 /** |
| 604 * Destroy the notification_surface | 748 * Destroy the notification_surface |
| 605 * | 749 * |
| 606 * Unmap and destroy the notification surface. | 750 * Unmap and destroy the notification surface. |
| 607 */ | 751 */ |
| 608 void (*destroy)(struct wl_client *client, | 752 void (*destroy)(struct wl_client *client, |
| 609 struct wl_resource *resource); | 753 struct wl_resource *resource); |
| 610 }; | 754 }; |
| 611 | 755 |
| 612 | 756 |
| 757 /** |
| 758 * @ingroup iface_zcr_notification_surface_v1 |
| 759 */ |
| 760 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 761 |
| 613 #ifdef __cplusplus | 762 #ifdef __cplusplus |
| 614 } | 763 } |
| 615 #endif | 764 #endif |
| 616 | 765 |
| 617 #endif | 766 #endif |
| OLD | NEW |