| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 * given wl_surface has another role | 194 * given wl_surface has another role |
| 195 */ | 195 */ |
| 196 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 196 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
| 197 /** | 197 /** |
| 198 * invalid notification id | 198 * invalid notification id |
| 199 */ | 199 */ |
| 200 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, | 200 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, |
| 201 }; | 201 }; |
| 202 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ | 202 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ |
| 203 | 203 |
| 204 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM | |
| 205 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM | |
| 206 /** | |
| 207 * @ingroup iface_zwp_remote_shell_v1 | |
| 208 * the layout mode | |
| 209 * | |
| 210 * Determine how a client should layout surfaces. | |
| 211 */ | |
| 212 enum zwp_remote_shell_v1_layout_mode { | |
| 213 /** | |
| 214 * mulitple windows | |
| 215 */ | |
| 216 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, | |
| 217 /** | |
| 218 * restricted mode for table | |
| 219 */ | |
| 220 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, | |
| 221 }; | |
| 222 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ | |
| 223 | |
| 224 /** | 204 /** |
| 225 * @ingroup iface_zwp_remote_shell_v1 | 205 * @ingroup iface_zwp_remote_shell_v1 |
| 226 * @struct zwp_remote_shell_v1_listener | 206 * @struct zwp_remote_shell_v1_listener |
| 227 */ | 207 */ |
| 228 struct zwp_remote_shell_v1_listener { | 208 struct zwp_remote_shell_v1_listener { |
| 229 /** | 209 /** |
| 230 * suggests a re-layout of remote shell | 210 * suggests a re-layout of remote shell |
| 231 * | 211 * |
| 232 * Suggests a re-layout of remote surface geometry. | 212 * Suggests a re-layout of remote surface geometry. |
| 233 */ | 213 */ |
| 234 void (*configure)(void *data, | 214 void (*configure)(void *data, |
| 235 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 215 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
| 236 int32_t width, | 216 int32_t width, |
| 237 int32_t height, | 217 int32_t height, |
| 238 int32_t work_area_inset_left, | 218 int32_t work_area_inset_left, |
| 239 int32_t work_area_inset_top, | 219 int32_t work_area_inset_top, |
| 240 int32_t work_area_inset_right, | 220 int32_t work_area_inset_right, |
| 241 int32_t work_area_inset_bottom); | 221 int32_t work_area_inset_bottom); |
| 242 /** | 222 /** |
| 243 * activated surface changed | 223 * activated surface changed |
| 244 * | 224 * |
| 245 * Notifies client that the activated surface changed. | 225 * Notifies client that the activated surface changed. |
| 246 */ | 226 */ |
| 247 void (*activated)(void *data, | 227 void (*activated)(void *data, |
| 248 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 228 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
| 249 struct wl_surface *gained_active, | 229 struct wl_surface *gained_active, |
| 250 struct wl_surface *lost_active); | 230 struct wl_surface *lost_active); |
| 251 /** | |
| 252 * dlayout mode changed | |
| 253 * | |
| 254 * The shell_mode_changed event is sent by the compositor when | |
| 255 * the shell mode was changed. | |
| 256 * | |
| 257 * This is an event to notify that the shell mode has switched. | |
| 258 * @since 8 | |
| 259 */ | |
| 260 void (*layout_mode_changed)(void *data, | |
| 261 struct zwp_remote_shell_v1 *zwp_remote_shell
_v1, | |
| 262 uint32_t layout_mode); | |
| 263 }; | 231 }; |
| 264 | 232 |
| 265 /** | 233 /** |
| 266 * @ingroup zwp_remote_shell_v1_iface | 234 * @ingroup zwp_remote_shell_v1_iface |
| 267 */ | 235 */ |
| 268 static inline int | 236 static inline int |
| 269 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, | 237 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, |
| 270 const struct zwp_remote_shell_v1_listener *list
ener, void *data) | 238 const struct zwp_remote_shell_v1_listener *list
ener, void *data) |
| 271 { | 239 { |
| 272 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, | 240 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 | 488 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 |
| 521 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 | 489 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 |
| 522 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 | 490 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 |
| 523 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 | 491 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 |
| 524 #define ZWP_REMOTE_SURFACE_V1_PIN 8 | 492 #define ZWP_REMOTE_SURFACE_V1_PIN 8 |
| 525 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 | 493 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 |
| 526 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 | 494 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 |
| 527 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 | 495 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 |
| 528 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 | 496 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 |
| 529 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 | 497 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 |
| 530 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14 | |
| 531 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15 | |
| 532 | 498 |
| 533 /** | 499 /** |
| 534 * @ingroup iface_zwp_remote_surface_v1 | 500 * @ingroup iface_zwp_remote_surface_v1 |
| 535 */ | 501 */ |
| 536 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 502 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 537 /** | 503 /** |
| 538 * @ingroup iface_zwp_remote_surface_v1 | 504 * @ingroup iface_zwp_remote_surface_v1 |
| 539 */ | 505 */ |
| 540 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 | 506 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 541 /** | 507 /** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 */ | 545 */ |
| 580 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 | 546 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 |
| 581 /** | 547 /** |
| 582 * @ingroup iface_zwp_remote_surface_v1 | 548 * @ingroup iface_zwp_remote_surface_v1 |
| 583 */ | 549 */ |
| 584 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 | 550 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 |
| 585 /** | 551 /** |
| 586 * @ingroup iface_zwp_remote_surface_v1 | 552 * @ingroup iface_zwp_remote_surface_v1 |
| 587 */ | 553 */ |
| 588 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 | 554 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 |
| 589 /** | |
| 590 * @ingroup iface_zwp_remote_surface_v1 | |
| 591 */ | |
| 592 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 8 | |
| 593 /** | |
| 594 * @ingroup iface_zwp_remote_surface_v1 | |
| 595 */ | |
| 596 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 8 | |
| 597 | 555 |
| 598 /** @ingroup iface_zwp_remote_surface_v1 */ | 556 /** @ingroup iface_zwp_remote_surface_v1 */ |
| 599 static inline void | 557 static inline void |
| 600 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) | 558 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) |
| 601 { | 559 { |
| 602 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); | 560 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); |
| 603 } | 561 } |
| 604 | 562 |
| 605 /** @ingroup iface_zwp_remote_surface_v1 */ | 563 /** @ingroup iface_zwp_remote_surface_v1 */ |
| 606 static inline void * | 564 static inline void * |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 * | 810 * |
| 853 * This distance typically represents the size of the window caption. | 811 * This distance typically represents the size of the window caption. |
| 854 */ | 812 */ |
| 855 static inline void | 813 static inline void |
| 856 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) | 814 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) |
| 857 { | 815 { |
| 858 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | 816 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
| 859 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); | 817 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); |
| 860 } | 818 } |
| 861 | 819 |
| 862 /** | |
| 863 * @ingroup iface_zwp_remote_surface_v1 | |
| 864 * | |
| 865 * Suggests a surface should become system modal. | |
| 866 */ | |
| 867 static inline void | |
| 868 zwp_remote_surface_v1_set_system_modal(struct zwp_remote_surface_v1 *zwp_remote_
surface_v1) | |
| 869 { | |
| 870 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | |
| 871 ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL); | |
| 872 } | |
| 873 | |
| 874 /** | |
| 875 * @ingroup iface_zwp_remote_surface_v1 | |
| 876 * | |
| 877 * Suggests a surface should become non system modal. | |
| 878 */ | |
| 879 static inline void | |
| 880 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot
e_surface_v1) | |
| 881 { | |
| 882 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | |
| 883 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); | |
| 884 } | |
| 885 | |
| 886 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 | 820 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 |
| 887 | 821 |
| 888 /** | 822 /** |
| 889 * @ingroup iface_zwp_notification_surface_v1 | 823 * @ingroup iface_zwp_notification_surface_v1 |
| 890 */ | 824 */ |
| 891 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 825 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 892 | 826 |
| 893 /** @ingroup iface_zwp_notification_surface_v1 */ | 827 /** @ingroup iface_zwp_notification_surface_v1 */ |
| 894 static inline void | 828 static inline void |
| 895 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1, void *user_data) | 829 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1, void *user_data) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 922 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); | 856 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); |
| 923 | 857 |
| 924 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); | 858 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); |
| 925 } | 859 } |
| 926 | 860 |
| 927 #ifdef __cplusplus | 861 #ifdef __cplusplus |
| 928 } | 862 } |
| 929 #endif | 863 #endif |
| 930 | 864 |
| 931 #endif | 865 #endif |
| OLD | NEW |