| 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_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 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 * multiple windows | 222 * multiple windows |
| 223 */ | 223 */ |
| 224 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, | 224 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, |
| 225 /** | 225 /** |
| 226 * restricted mode for tablet | 226 * restricted mode for tablet |
| 227 */ | 227 */ |
| 228 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, | 228 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, |
| 229 }; | 229 }; |
| 230 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ | 230 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ |
| 231 | 231 |
| 232 #ifndef ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM |
| 233 #define ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM |
| 234 /** |
| 235 * @ingroup iface_zcr_remote_surface_v1 |
| 236 * shelf autohide behavior |
| 237 * |
| 238 * Determine the autohide behavior of the shelf. |
| 239 */ |
| 240 enum zcr_remote_shell_v1_shelf_autohide_state { |
| 241 /** |
| 242 * shelf is visible |
| 243 */ |
| 244 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_VISIBLE = 1, |
| 245 /** |
| 246 * shelf autohides and is not sticky |
| 247 */ |
| 248 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_AUTOHIDE_NON_STICKY = 2, |
| 249 /** |
| 250 * shelf autohides and is sticky |
| 251 */ |
| 252 ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_AUTOHIDE_STICKY = 3, |
| 253 }; |
| 254 #endif /* ZCR_REMOTE_SHELL_V1_SHELF_AUTOHIDE_STATE_ENUM */ |
| 255 |
| 232 /** | 256 /** |
| 233 * @ingroup iface_zcr_remote_shell_v1 | 257 * @ingroup iface_zcr_remote_shell_v1 |
| 234 * @struct zcr_remote_shell_v1_listener | 258 * @struct zcr_remote_shell_v1_listener |
| 235 */ | 259 */ |
| 236 struct zcr_remote_shell_v1_listener { | 260 struct zcr_remote_shell_v1_listener { |
| 237 /** | 261 /** |
| 238 * activated surface changed | 262 * activated surface changed |
| 239 * | 263 * |
| 240 * Notifies client that the activated surface changed. | 264 * Notifies client that the activated surface changed. |
| 241 */ | 265 */ |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 * @ingroup iface_zcr_remote_surface_v1 | 618 * @ingroup iface_zcr_remote_surface_v1 |
| 595 */ | 619 */ |
| 596 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 | 620 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 597 /** | 621 /** |
| 598 * @ingroup iface_zcr_remote_surface_v1 | 622 * @ingroup iface_zcr_remote_surface_v1 |
| 599 */ | 623 */ |
| 600 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 | 624 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 |
| 601 /** | 625 /** |
| 602 * @ingroup iface_zcr_remote_surface_v1 | 626 * @ingroup iface_zcr_remote_surface_v1 |
| 603 */ | 627 */ |
| 604 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 | 628 #define ZCR_REMOTE_SURFACE_V1_SET_AUTOHIDE_SYSTEMUI_SINCE_VERSION 3 |
| 605 /** | 629 /** |
| 606 * @ingroup iface_zcr_remote_surface_v1 | 630 * @ingroup iface_zcr_remote_surface_v1 |
| 607 */ | 631 */ |
| 608 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 | 632 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4 |
| 633 /** |
| 634 * @ingroup iface_zcr_remote_surface_v1 |
| 635 */ |
| 636 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4 |
| 609 | 637 |
| 610 /** @ingroup iface_zcr_remote_surface_v1 */ | 638 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 611 static inline void | 639 static inline void |
| 612 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) | 640 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) |
| 613 { | 641 { |
| 614 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); | 642 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); |
| 615 } | 643 } |
| 616 | 644 |
| 617 /** @ingroup iface_zcr_remote_surface_v1 */ | 645 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 618 static inline void * | 646 static inline void * |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 static inline void | 963 static inline void |
| 936 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) | 964 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) |
| 937 { | 965 { |
| 938 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 966 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 939 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); | 967 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); |
| 940 } | 968 } |
| 941 | 969 |
| 942 /** | 970 /** |
| 943 * @ingroup iface_zcr_remote_surface_v1 | 971 * @ingroup iface_zcr_remote_surface_v1 |
| 944 * | 972 * |
| 973 * Requests how the surface will autohide the system UI when it is made |
| 974 * active. |
| 975 * |
| 976 static inline void |
| 977 zcr_remote_surface_v1_set_auto_hide_systemui(struct zcr_remote_surface_v1 |
| 978 *zcr_remote_surface_v1, uint32_t autohide) |
| 979 { |
| 980 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 981 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, autohide); |
| 982 } |
| 983 |
| 984 /** |
| 985 * @ingroup iface_zcr_remote_surface_v1 |
| 986 * |
| 945 * When a configure event is received, if a client commits the | 987 * When a configure event is received, if a client commits the |
| 946 * surface in response to the configure event, then the client | 988 * surface in response to the configure event, then the client |
| 947 * must make an ack_configure request sometime before the commit | 989 * must make an ack_configure request sometime before the commit |
| 948 * request, passing along the serial of the configure event. | 990 * request, passing along the serial of the configure event. |
| 949 * | 991 * |
| 950 * For instance, the compositor might use this information during display | 992 * For instance, the compositor might use this information during display |
| 951 * configuration to change its coordinate space for set_window_geometry | 993 * configuration to change its coordinate space for set_window_geometry |
| 952 * requests only when the client has switched to the new coordinate space. | 994 * requests only when the client has switched to the new coordinate space. |
| 953 * | 995 * |
| 954 * If the client receives multiple configure events before it | 996 * If the client receives multiple configure events before it |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 1072 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
| 1031 | 1073 |
| 1032 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 1074 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
| 1033 } | 1075 } |
| 1034 | 1076 |
| 1035 #ifdef __cplusplus | 1077 #ifdef __cplusplus |
| 1036 } | 1078 } |
| 1037 #endif | 1079 #endif |
| 1038 | 1080 |
| 1039 #endif | 1081 #endif |
| OLD | NEW |