| OLD | NEW |
| 1 /* Generated by wayland-scanner 1.12.90 */ | 1 /* Generated by wayland-scanner 1.12.90 */ |
| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 { | 335 { |
| 336 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN
GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins
et_top, work_area_inset_right, work_area_inset_bottom, layout_mode); | 336 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN
GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins
et_top, work_area_inset_right, work_area_inset_bottom, layout_mode); |
| 337 } | 337 } |
| 338 | 338 |
| 339 /** | 339 /** |
| 340 * @ingroup iface_zcr_remote_shell_v1 | 340 * @ingroup iface_zcr_remote_shell_v1 |
| 341 * Sends an workspace event to the client owning the resource. | 341 * Sends an workspace event to the client owning the resource. |
| 342 * @param resource_ The client's resource | 342 * @param resource_ The client's resource |
| 343 */ | 343 */ |
| 344 static inline void | 344 static inline void |
| 345 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id_hi
, uint32_t id_lo, int32_t x, int32_t y, int32_t width, int32_t height, int32_t i
nset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom, int32_t
transform, wl_fixed_t scale_factor) | 345 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id_hi
, uint32_t id_lo, int32_t x, int32_t y, int32_t width, int32_t height, int32_t i
nset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom, int32_t
transform, wl_fixed_t scale_factor, uint32_t is_internal) |
| 346 { | 346 { |
| 347 » wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id_hi,
id_lo, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom, tr
ansform, scale_factor); | 347 » wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id_hi,
id_lo, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom, tr
ansform, scale_factor, is_internal); |
| 348 } | 348 } |
| 349 | 349 |
| 350 /** | 350 /** |
| 351 * @ingroup iface_zcr_remote_shell_v1 | 351 * @ingroup iface_zcr_remote_shell_v1 |
| 352 * Sends an configure event to the client owning the resource. | 352 * Sends an configure event to the client owning the resource. |
| 353 * @param resource_ The client's resource | 353 * @param resource_ The client's resource |
| 354 */ | 354 */ |
| 355 static inline void | 355 static inline void |
| 356 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, uint32_t layou
t_mode) | 356 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, uint32_t layou
t_mode) |
| 357 { | 357 { |
| 358 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, layout_
mode); | 358 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, layout_
mode); |
| 359 } | 359 } |
| 360 | 360 |
| 361 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 361 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
| 362 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 362 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
| 363 /** | 363 /** |
| 364 * @ingroup iface_zcr_remote_surface_v1 | 364 * @ingroup iface_zcr_remote_surface_v1 |
| 365 * systemui visibility behavior | 365 * systemui visibility behavior |
| 366 * | 366 * |
| 367 * Determine the visibility behavior of the system UI. | 367 * Determine the visibility behavior of the system UI. |
| 368 */ | 368 */ |
| 369 enum zcr_remote_surface_v1_systemui_visibility_state { | 369 enum zcr_remote_surface_v1_systemui_visibility_state { |
| 370 /** | 370 » /** |
| 371 * system ui is visible | 371 » * system ui is visible |
| 372 */ | 372 » */ |
| 373 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, | 373 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, |
| 374 /** | 374 » /** |
| 375 * system ui autohides and is not sticky | 375 » * system ui autohides and is not sticky |
| 376 */ | 376 » */ |
| 377 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, | 377 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, |
| 378 /** | 378 » /** |
| 379 * system ui autohides and is sticky | 379 » * system ui autohides and is sticky |
| 380 */ | 380 » */ |
| 381 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, | 381 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, |
| 382 }; | 382 }; |
| 383 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ | 383 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ |
| 384 | 384 |
| 385 /** | 385 /** |
| 386 * @ingroup iface_zcr_remote_surface_v1 | 386 * @ingroup iface_zcr_remote_surface_v1 |
| 387 * @struct zcr_remote_surface_v1_interface | 387 * @struct zcr_remote_surface_v1_interface |
| 388 */ | 388 */ |
| 389 struct zcr_remote_surface_v1_interface { | 389 struct zcr_remote_surface_v1_interface { |
| 390 /** | 390 /** |
| 391 * Destroy the remote_surface | 391 * Destroy the remote_surface |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 * and specifies inner bounds of the shadow. Specifying zero width | 624 * and specifies inner bounds of the shadow. Specifying zero width |
| 625 * and height will disable the shadow. | 625 * and height will disable the shadow. |
| 626 * @since 2 | 626 * @since 2 |
| 627 */ | 627 */ |
| 628 void (*set_rectangular_surface_shadow)(struct wl_client *client, | 628 void (*set_rectangular_surface_shadow)(struct wl_client *client, |
| 629 struct wl_resource *resource, | 629 struct wl_resource *resource, |
| 630 int32_t x, | 630 int32_t x, |
| 631 int32_t y, | 631 int32_t y, |
| 632 int32_t width, | 632 int32_t width, |
| 633 int32_t height); | 633 int32_t height); |
| 634 /** | 634 » /** |
| 635 * requests the system ui visibility behavior for the surface | 635 » * requests the system ui visibility behavior for the surface |
| 636 * | 636 » * |
| 637 * Requests how the surface will change the visibility of the | 637 » * Requests how the surface will change the visibility of the |
| 638 * system UI when it is made active. | 638 » * system UI when it is made active. |
| 639 * @since 3 | 639 » * @since 3 |
| 640 */ | 640 » */ |
| 641 void (*set_systemui_visibility)(struct wl_client* client, | 641 » void (*set_systemui_visibility)(struct wl_client *client, |
| 642 struct wl_resource* resource, | 642 » » » » » struct wl_resource *resource, |
| 643 uint32_t visibility); | 643 » » » » » uint32_t visibility); |
| 644 /** | 644 » /** |
| 645 * set always on top | 645 » * set always on top |
| 646 * | 646 » * |
| 647 * Request that surface is made to be always on top. | 647 » * Request that surface is made to be always on top. |
| 648 * | 648 » * |
| 649 * This is only a request that the window should be always on top. | 649 » * This is only a request that the window should be always on top. |
| 650 * The compositor may choose to ignore this request. | 650 » * The compositor may choose to ignore this request. |
| 651 * @since 4 | 651 » * @since 4 |
| 652 */ | 652 » */ |
| 653 void (*set_always_on_top)(struct wl_client* client, | 653 » void (*set_always_on_top)(struct wl_client *client, |
| 654 struct wl_resource* resource); | 654 » » » » struct wl_resource *resource); |
| 655 /** | 655 » /** |
| 656 * unset always on top | 656 » * unset always on top |
| 657 * | 657 » * |
| 658 * Request that surface is made to be not always on top. | 658 » * Request that surface is made to be not always on top. |
| 659 * | 659 » * |
| 660 * This is only a request that the window should be not always on | 660 » * This is only a request that the window should be not always on |
| 661 * top. The compositor may choose to ignore this request. | 661 » * top. The compositor may choose to ignore this request. |
| 662 * @since 4 | 662 » * @since 4 |
| 663 */ | 663 » */ |
| 664 void (*unset_always_on_top)(struct wl_client* client, | 664 » void (*unset_always_on_top)(struct wl_client *client, |
| 665 struct wl_resource* resource); | 665 » » » » struct wl_resource *resource); |
| 666 /** | 666 » /** |
| 667 * ack a configure event | 667 » * ack a configure event |
| 668 * | 668 » * |
| 669 * When a configure event is received, if a client commits the | 669 » * When a configure event is received, if a client commits the |
| 670 * surface in response to the configure event, then the client must | 670 » * surface in response to the configure event, then the client must |
| 671 * make an ack_configure request sometime before the commit | 671 » * make an ack_configure request sometime before the commit |
| 672 * request, passing along the serial of the configure event. | 672 » * request, passing along the serial of the configure event. |
| 673 * | 673 » * |
| 674 * For instance, the compositor might use this information during | 674 » * For instance, the compositor might use this information during |
| 675 * display configuration to change its coordinate space for | 675 » * display configuration to change its coordinate space for |
| 676 * set_window_geometry requests only when the client has switched | 676 » * set_window_geometry requests only when the client has switched |
| 677 * to the new coordinate space. | 677 » * to the new coordinate space. |
| 678 * | 678 » * |
| 679 * If the client receives multiple configure events before it can | 679 » * If the client receives multiple configure events before it can |
| 680 * respond to one, it only has to ack the last configure event. | 680 » * respond to one, it only has to ack the last configure event. |
| 681 * | 681 » * |
| 682 * A client is not required to commit immediately after sending an | 682 » * A client is not required to commit immediately after sending an |
| 683 * ack_configure request - it may even ack_configure several times | 683 » * ack_configure request - it may even ack_configure several times |
| 684 * before its next surface commit. | 684 » * before its next surface commit. |
| 685 * | 685 » * |
| 686 * A client may send multiple ack_configure requests before | 686 » * A client may send multiple ack_configure requests before |
| 687 * committing, but only the last request sent before a commit | 687 » * committing, but only the last request sent before a commit |
| 688 * indicates which configure event the client really is responding | 688 » * indicates which configure event the client really is responding |
| 689 * to. | 689 » * to. |
| 690 * @param serial the serial from the configure event | 690 » * @param serial the serial from the configure event |
| 691 * @since 5 | 691 » * @since 5 |
| 692 */ | 692 » */ |
| 693 void (*ack_configure)(struct wl_client* client, | 693 » void (*ack_configure)(struct wl_client *client, |
| 694 struct wl_resource* resource, | 694 » » » struct wl_resource *resource, |
| 695 uint32_t serial); | 695 » » » uint32_t serial); |
| 696 /** | 696 » /** |
| 697 * start an interactive move | 697 » * start an interactive move |
| 698 * | 698 » * |
| 699 * Start an interactive, user-driven move of the surface. | 699 » * Start an interactive, user-driven move of the surface. |
| 700 * | 700 » * |
| 701 * The compositor responds to this request with a configure event | 701 » * The compositor responds to this request with a configure event |
| 702 * that transitions to the "moving" state. The client must only | 702 » * that transitions to the "moving" state. The client must only |
| 703 * initiate motion after acknowledging the state change. The | 703 » * initiate motion after acknowledging the state change. The |
| 704 * compositor can assume that subsequent set_window_geometry | 704 » * compositor can assume that subsequent set_window_geometry |
| 705 * requests are position updates until the next state transition is | 705 » * requests are position updates until the next state transition is |
| 706 * acknowledged. | 706 » * acknowledged. |
| 707 * | 707 » * |
| 708 * The compositor may ignore move requests depending on the state | 708 » * The compositor may ignore move requests depending on the state |
| 709 * of the surface, e.g. fullscreen or maximized. | 709 » * of the surface, e.g. fullscreen or maximized. |
| 710 * @since 5 | 710 » * @since 5 |
| 711 */ | 711 » */ |
| 712 void (*move)(struct wl_client* client, struct wl_resource* resource); | 712 » void (*move)(struct wl_client *client, |
| 713 » » struct wl_resource *resource); |
| 713 }; | 714 }; |
| 714 | 715 |
| 715 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 | 716 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 |
| 716 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 | 717 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 |
| 717 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 | 718 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 |
| 718 | 719 |
| 719 /** | 720 /** |
| 720 * @ingroup iface_zcr_remote_surface_v1 | 721 * @ingroup iface_zcr_remote_surface_v1 |
| 721 */ | 722 */ |
| 722 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 723 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 /** | 878 /** |
| 878 * @ingroup iface_zcr_notification_surface_v1 | 879 * @ingroup iface_zcr_notification_surface_v1 |
| 879 */ | 880 */ |
| 880 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 881 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 881 | 882 |
| 882 #ifdef __cplusplus | 883 #ifdef __cplusplus |
| 883 } | 884 } |
| 884 #endif | 885 #endif |
| 885 | 886 |
| 886 #endif | 887 #endif |
| OLD | NEW |