| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 * | 366 * |
| 367 * Set a scale factor that will be applied to surface and all | 367 * Set a scale factor that will be applied to surface and all |
| 368 * descendants. | 368 * descendants. |
| 369 */ | 369 */ |
| 370 void (*set_scale)(struct wl_client *client, | 370 void (*set_scale)(struct wl_client *client, |
| 371 struct wl_resource *resource, | 371 struct wl_resource *resource, |
| 372 wl_fixed_t scale); | 372 wl_fixed_t scale); |
| 373 /** | 373 /** |
| 374 * set a rectangular shadow | 374 * set a rectangular shadow |
| 375 * | 375 * |
| 376 » * Request that surface needs a rectangular shadow. | 376 » * [Deprecated] Request that surface needs a rectangular shadow. |
| 377 * | 377 * |
| 378 * This is only a request that the surface should have a | 378 * This is only a request that the surface should have a |
| 379 * rectangular shadow. The compositor may choose to ignore this | 379 * rectangular shadow. The compositor may choose to ignore this |
| 380 * request. | 380 * request. |
| 381 * | 381 * |
| 382 * The arguments are given in the output coordinate space and | 382 * The arguments are given in the output coordinate space and |
| 383 * specifies the inner bounds of the shadow. | 383 * specifies the inner bounds of the shadow. |
| 384 * | 384 * |
| 385 * The arguments are given in the output coordinate space. | 385 * The arguments are given in the output coordinate space. |
| 386 * Specifying zero width and height will disable the shadow. | 386 * Specifying zero width and height will disable the shadow. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 void (*set_system_modal)(struct wl_client *client, | 532 void (*set_system_modal)(struct wl_client *client, |
| 533 struct wl_resource *resource); | 533 struct wl_resource *resource); |
| 534 /** | 534 /** |
| 535 * suggests a re-layout of remote shell input area | 535 * suggests a re-layout of remote shell input area |
| 536 * | 536 * |
| 537 * Suggests a surface should become non system modal. | 537 * Suggests a surface should become non system modal. |
| 538 */ | 538 */ |
| 539 void (*unset_system_modal)(struct wl_client *client, | 539 void (*unset_system_modal)(struct wl_client *client, |
| 540 struct wl_resource *resource); | 540 struct wl_resource *resource); |
| 541 /** | 541 /** |
| 542 * set a rectangular shadow |
| 543 * |
| 544 * Request that surface needs a rectangular shadow. |
| 545 * |
| 546 * This is only a request that the surface should have a |
| 547 * rectangular shadow. The compositor may choose to ignore this |
| 548 * request. |
| 549 * |
| 550 * The arguments are given in the remote surface coordinate space |
| 551 * and specifies inner bounds of the shadow. Specifying zero width |
| 552 * and height will disable the shadow. |
| 553 * @since 2 |
| 554 */ |
| 555 void (*set_rectangular_surface_shadow)(struct wl_client *client, |
| 556 struct wl_resource *resource, |
| 557 int32_t x, |
| 558 int32_t y, |
| 559 int32_t width, |
| 560 int32_t height); |
| 561 /** |
| 562 * ack a configure event |
| 563 * |
| 564 * When a configure event is received, if a client commits the |
| 565 * surface in response to the configure event, then the client must |
| 566 * make an ack_configure request sometime before the commit |
| 567 * request, passing along the serial of the configure event. |
| 568 * |
| 569 * For instance, the compositor might use this information during |
| 570 * display configuration to change its coordinate space for |
| 571 * set_window_geometry requests only when the client has switched |
| 572 * to the new coordinate space. |
| 573 * |
| 574 * If the client receives multiple configure events before it can |
| 575 * respond to one, it only has to ack the last configure event. |
| 576 * |
| 577 * A client is not required to commit immediately after sending an |
| 578 * ack_configure request - it may even ack_configure several times |
| 579 * before its next surface commit. |
| 580 * |
| 581 * A client may send multiple ack_configure requests before |
| 582 * committing, but only the last request sent before a commit |
| 583 * indicates which configure event the client really is responding |
| 584 * to. |
| 585 * @param serial the serial from the configure event |
| 586 * @since 3 |
| 587 */ |
| 588 void (*ack_configure)(struct wl_client *client, |
| 589 struct wl_resource *resource, |
| 590 uint32_t serial); |
| 591 /** |
| 542 * interactive move started | 592 * interactive move started |
| 543 * | 593 * |
| 544 * Notifies the compositor when an interactive, user-driven move | 594 * Notifies the compositor when an interactive, user-driven move |
| 545 * of the surface starts. The compositor may assume that subsequent | 595 * of the surface starts. The compositor may assume that subsequent |
| 546 * set_window_geometry requests are position updates until it | 596 * set_window_geometry requests are position updates until it |
| 547 * receives a unset_moving request. | 597 * receives a unset_moving request. |
| 548 » * @since 2 | 598 » * @since 3 |
| 549 */ | 599 */ |
| 550 void (*set_moving)(struct wl_client *client, | 600 void (*set_moving)(struct wl_client *client, |
| 551 struct wl_resource *resource); | 601 struct wl_resource *resource); |
| 552 /** | 602 /** |
| 553 * interactive move stopped | 603 * interactive move stopped |
| 554 * | 604 * |
| 555 * Notifies the compositor when an interactive, user-driven move | 605 * Notifies the compositor when an interactive, user-driven move |
| 556 * of the surface stops. The compositor may choose to stop the move | 606 * of the surface stops. The compositor may choose to stop the move |
| 557 * regardless of this request. | 607 * regardless of this request. |
| 558 » * @since 2 | 608 » * @since 3 |
| 559 */ | 609 */ |
| 560 void (*unset_moving)(struct wl_client *client, | 610 void (*unset_moving)(struct wl_client *client, |
| 561 struct wl_resource *resource); | 611 struct wl_resource *resource); |
| 562 }; | 612 }; |
| 563 | 613 |
| 564 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 | 614 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 |
| 565 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 | 615 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 |
| 616 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 |
| 566 | 617 |
| 567 /** | 618 /** |
| 568 * @ingroup iface_zcr_remote_surface_v1 | 619 * @ingroup iface_zcr_remote_surface_v1 |
| 569 */ | 620 */ |
| 570 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 621 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| 571 /** | 622 /** |
| 572 * @ingroup iface_zcr_remote_surface_v1 | 623 * @ingroup iface_zcr_remote_surface_v1 |
| 573 */ | 624 */ |
| 574 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 | 625 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
| 626 /** |
| 627 * @ingroup iface_zcr_remote_surface_v1 |
| 628 */ |
| 629 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 |
| 575 | 630 |
| 576 /** | 631 /** |
| 577 * @ingroup iface_zcr_remote_surface_v1 | 632 * @ingroup iface_zcr_remote_surface_v1 |
| 578 * Sends an close event to the client owning the resource. | 633 * Sends an close event to the client owning the resource. |
| 579 * @param resource_ The client's resource | 634 * @param resource_ The client's resource |
| 580 */ | 635 */ |
| 581 static inline void | 636 static inline void |
| 582 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) | 637 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) |
| 583 { | 638 { |
| 584 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); | 639 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); |
| 585 } | 640 } |
| 586 | 641 |
| 587 /** | 642 /** |
| 588 * @ingroup iface_zcr_remote_surface_v1 | 643 * @ingroup iface_zcr_remote_surface_v1 |
| 589 * Sends an state_type_changed event to the client owning the resource. | 644 * Sends an state_type_changed event to the client owning the resource. |
| 590 * @param resource_ The client's resource | 645 * @param resource_ The client's resource |
| 591 */ | 646 */ |
| 592 static inline void | 647 static inline void |
| 593 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin
t32_t state_type) | 648 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin
t32_t state_type) |
| 594 { | 649 { |
| 595 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG
ED, state_type); | 650 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG
ED, state_type); |
| 596 } | 651 } |
| 597 | 652 |
| 598 /** | 653 /** |
| 654 * @ingroup iface_zcr_remote_surface_v1 |
| 655 * Sends an configure event to the client owning the resource. |
| 656 * @param resource_ The client's resource |
| 657 */ |
| 658 static inline void |
| 659 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig
in_x, int32_t origin_y, uint32_t serial) |
| 660 { |
| 661 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi
n_x, origin_y, serial); |
| 662 } |
| 663 |
| 664 /** |
| 599 * @ingroup iface_zcr_notification_surface_v1 | 665 * @ingroup iface_zcr_notification_surface_v1 |
| 600 * @struct zcr_notification_surface_v1_interface | 666 * @struct zcr_notification_surface_v1_interface |
| 601 */ | 667 */ |
| 602 struct zcr_notification_surface_v1_interface { | 668 struct zcr_notification_surface_v1_interface { |
| 603 /** | 669 /** |
| 604 * Destroy the notification_surface | 670 * Destroy the notification_surface |
| 605 * | 671 * |
| 606 * Unmap and destroy the notification surface. | 672 * Unmap and destroy the notification surface. |
| 607 */ | 673 */ |
| 608 void (*destroy)(struct wl_client *client, | 674 void (*destroy)(struct wl_client *client, |
| 609 struct wl_resource *resource); | 675 struct wl_resource *resource); |
| 610 }; | 676 }; |
| 611 | 677 |
| 612 | 678 |
| 613 #ifdef __cplusplus | 679 #ifdef __cplusplus |
| 614 } | 680 } |
| 615 #endif | 681 #endif |
| 616 | 682 |
| 617 #endif | 683 #endif |
| OLD | NEW |