| OLD | NEW |
| 1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.12.90 */ |
| 2 | 2 |
| 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
| 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
| 5 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include "wayland-client.h" | 8 #include "wayland-client.h" |
| 9 | 9 |
| 10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
| 11 extern "C" { | 11 extern "C" { |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 zcr_remote_shell_v1_get_notification_surface(struct zcr_remote_shell_v1 *zcr_rem
ote_shell_v1, struct wl_surface *surface, const char *notification_id) | 369 zcr_remote_shell_v1_get_notification_surface(struct zcr_remote_shell_v1 *zcr_rem
ote_shell_v1, struct wl_surface *surface, const char *notification_id) |
| 370 { | 370 { |
| 371 struct wl_proxy *id; | 371 struct wl_proxy *id; |
| 372 | 372 |
| 373 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_remote_shell_v
1, | 373 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_remote_shell_v
1, |
| 374 ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE, &zcr_noti
fication_surface_v1_interface, NULL, surface, notification_id); | 374 ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE, &zcr_noti
fication_surface_v1_interface, NULL, surface, notification_id); |
| 375 | 375 |
| 376 return (struct zcr_notification_surface_v1 *) id; | 376 return (struct zcr_notification_surface_v1 *) id; |
| 377 } | 377 } |
| 378 | 378 |
| 379 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
| 380 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
| 381 /** |
| 382 * @ingroup iface_zcr_remote_surface_v1 |
| 383 * systemui visibility behavior |
| 384 * |
| 385 * Determine the visibility behavior of the system UI. |
| 386 */ |
| 387 enum zcr_remote_surface_v1_systemui_visibility_state { |
| 388 /** |
| 389 * system ui is visible |
| 390 */ |
| 391 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, |
| 392 /** |
| 393 * system ui autohides and is not sticky |
| 394 */ |
| 395 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, |
| 396 /** |
| 397 * system ui autohides and is sticky |
| 398 */ |
| 399 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, |
| 400 }; |
| 401 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ |
| 402 |
| 379 /** | 403 /** |
| 380 * @ingroup iface_zcr_remote_surface_v1 | 404 * @ingroup iface_zcr_remote_surface_v1 |
| 381 * @struct zcr_remote_surface_v1_listener | 405 * @struct zcr_remote_surface_v1_listener |
| 382 */ | 406 */ |
| 383 struct zcr_remote_surface_v1_listener { | 407 struct zcr_remote_surface_v1_listener { |
| 384 /** | 408 /** |
| 385 * surface wants to be closed | 409 * surface wants to be closed |
| 386 * | 410 * |
| 387 * The close event is sent by the compositor when the user wants | 411 * The close event is sent by the compositor when the user wants |
| 388 * the surface to be closed. This should be equivalent to the user | 412 * the surface to be closed. This should be equivalent to the user |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 * change due to a client request or an event directly handled by | 448 * change due to a client request or an event directly handled by |
| 425 * the compositor. | 449 * the compositor. |
| 426 * | 450 * |
| 427 * Clients should arrange their surface for the new state, and then | 451 * Clients should arrange their surface for the new state, and then |
| 428 * send an ack_configure request with the serial sent in this | 452 * send an ack_configure request with the serial sent in this |
| 429 * configure event at some point before committing the new surface. | 453 * configure event at some point before committing the new surface. |
| 430 * | 454 * |
| 431 * If the client receives multiple configure events before it can | 455 * If the client receives multiple configure events before it can |
| 432 * respond to one, it is free to discard all but the last event it | 456 * respond to one, it is free to discard all but the last event it |
| 433 * received. | 457 * received. |
| 434 » * @since 3 | 458 » * @since 4 |
| 435 */ | 459 */ |
| 436 void (*configure)(void *data, | 460 void (*configure)(void *data, |
| 437 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, | 461 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, |
| 438 int32_t origin_x, | 462 int32_t origin_x, |
| 439 int32_t origin_y, | 463 int32_t origin_y, |
| 440 struct wl_array *states, | 464 struct wl_array *states, |
| 441 uint32_t serial); | 465 uint32_t serial); |
| 442 }; | 466 }; |
| 443 | 467 |
| 444 /** | 468 /** |
| (...skipping 19 matching lines...) Expand all Loading... |
| 464 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 | 488 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 |
| 465 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 | 489 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 |
| 466 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 | 490 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 |
| 467 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 | 491 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 |
| 468 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 | 492 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 |
| 469 #define ZCR_REMOTE_SURFACE_V1_PIN 14 | 493 #define ZCR_REMOTE_SURFACE_V1_PIN 14 |
| 470 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 | 494 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 |
| 471 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 | 495 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 |
| 472 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 | 496 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 |
| 473 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 18 | 497 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 18 |
| 474 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 19 | 498 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY 19 |
| 475 #define ZCR_REMOTE_SURFACE_V1_MOVE 20 | 499 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 20 |
| 500 #define ZCR_REMOTE_SURFACE_V1_MOVE 21 |
| 476 | 501 |
| 477 /** | 502 /** |
| 478 * @ingroup iface_zcr_remote_surface_v1 | 503 * @ingroup iface_zcr_remote_surface_v1 |
| 479 */ | 504 */ |
| 480 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 505 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| 481 /** | 506 /** |
| 482 * @ingroup iface_zcr_remote_surface_v1 | 507 * @ingroup iface_zcr_remote_surface_v1 |
| 483 */ | 508 */ |
| 484 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 | 509 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
| 485 /** | 510 /** |
| 486 * @ingroup iface_zcr_remote_surface_v1 | 511 * @ingroup iface_zcr_remote_surface_v1 |
| 487 */ | 512 */ |
| 488 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 | 513 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 4 |
| 489 | 514 |
| 490 /** | 515 /** |
| 491 * @ingroup iface_zcr_remote_surface_v1 | 516 * @ingroup iface_zcr_remote_surface_v1 |
| 492 */ | 517 */ |
| 493 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 518 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 494 /** | 519 /** |
| 495 * @ingroup iface_zcr_remote_surface_v1 | 520 * @ingroup iface_zcr_remote_surface_v1 |
| 496 */ | 521 */ |
| 497 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 | 522 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 498 /** | 523 /** |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 * @ingroup iface_zcr_remote_surface_v1 | 584 * @ingroup iface_zcr_remote_surface_v1 |
| 560 */ | 585 */ |
| 561 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 | 586 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 562 /** | 587 /** |
| 563 * @ingroup iface_zcr_remote_surface_v1 | 588 * @ingroup iface_zcr_remote_surface_v1 |
| 564 */ | 589 */ |
| 565 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 | 590 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 |
| 566 /** | 591 /** |
| 567 * @ingroup iface_zcr_remote_surface_v1 | 592 * @ingroup iface_zcr_remote_surface_v1 |
| 568 */ | 593 */ |
| 569 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 | 594 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY_SINCE_VERSION 3 |
| 570 /** | 595 /** |
| 571 * @ingroup iface_zcr_remote_surface_v1 | 596 * @ingroup iface_zcr_remote_surface_v1 |
| 572 */ | 597 */ |
| 573 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 | 598 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4 |
| 599 /** |
| 600 * @ingroup iface_zcr_remote_surface_v1 |
| 601 */ |
| 602 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4 |
| 574 | 603 |
| 575 /** @ingroup iface_zcr_remote_surface_v1 */ | 604 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 576 static inline void | 605 static inline void |
| 577 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) | 606 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) |
| 578 { | 607 { |
| 579 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); | 608 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); |
| 580 } | 609 } |
| 581 | 610 |
| 582 /** @ingroup iface_zcr_remote_surface_v1 */ | 611 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 583 static inline void * | 612 static inline void * |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 static inline void | 929 static inline void |
| 901 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v
1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height) | 930 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v
1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height) |
| 902 { | 931 { |
| 903 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 932 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 904 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); | 933 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); |
| 905 } | 934 } |
| 906 | 935 |
| 907 /** | 936 /** |
| 908 * @ingroup iface_zcr_remote_surface_v1 | 937 * @ingroup iface_zcr_remote_surface_v1 |
| 909 * | 938 * |
| 939 * Requests how the surface will change the visibility of the system UI when it
is made active. |
| 940 */ |
| 941 static inline void |
| 942 zcr_remote_surface_v1_set_systemui_visibility(struct zcr_remote_surface_v1 *zcr_
remote_surface_v1, uint32_t visibility) |
| 943 { |
| 944 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 945 ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY, visibili
ty); |
| 946 } |
| 947 |
| 948 /** |
| 949 * @ingroup iface_zcr_remote_surface_v1 |
| 950 * |
| 910 * When a configure event is received, if a client commits the | 951 * When a configure event is received, if a client commits the |
| 911 * surface in response to the configure event, then the client | 952 * surface in response to the configure event, then the client |
| 912 * must make an ack_configure request sometime before the commit | 953 * must make an ack_configure request sometime before the commit |
| 913 * request, passing along the serial of the configure event. | 954 * request, passing along the serial of the configure event. |
| 914 * | 955 * |
| 915 * For instance, the compositor might use this information during display | 956 * For instance, the compositor might use this information during display |
| 916 * configuration to change its coordinate space for set_window_geometry | 957 * configuration to change its coordinate space for set_window_geometry |
| 917 * requests only when the client has switched to the new coordinate space. | 958 * requests only when the client has switched to the new coordinate space. |
| 918 * | 959 * |
| 919 * If the client receives multiple configure events before it | 960 * If the client receives multiple configure events before it |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 1036 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
| 996 | 1037 |
| 997 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 1038 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
| 998 } | 1039 } |
| 999 | 1040 |
| 1000 #ifdef __cplusplus | 1041 #ifdef __cplusplus |
| 1001 } | 1042 } |
| 1002 #endif | 1043 #endif |
| 1003 | 1044 |
| 1004 #endif | 1045 #endif |
| OLD | NEW |