| 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 |
| 204 /** | 224 /** |
| 205 * @ingroup iface_zwp_remote_shell_v1 | 225 * @ingroup iface_zwp_remote_shell_v1 |
| 206 * @struct zwp_remote_shell_v1_listener | 226 * @struct zwp_remote_shell_v1_listener |
| 207 */ | 227 */ |
| 208 struct zwp_remote_shell_v1_listener { | 228 struct zwp_remote_shell_v1_listener { |
| 209 /** | 229 /** |
| 210 * suggests a re-layout of remote shell | 230 * suggests a re-layout of remote shell |
| 211 * | 231 * |
| 212 * Suggests a re-layout of remote surface geometry. | 232 * Suggests a re-layout of remote surface geometry. |
| 213 */ | 233 */ |
| 214 void (*configure)(void *data, | 234 void (*configure)(void *data, |
| 215 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 235 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
| 216 int32_t width, | 236 int32_t width, |
| 217 int32_t height, | 237 int32_t height, |
| 218 int32_t work_area_inset_left, | 238 int32_t work_area_inset_left, |
| 219 int32_t work_area_inset_top, | 239 int32_t work_area_inset_top, |
| 220 int32_t work_area_inset_right, | 240 int32_t work_area_inset_right, |
| 221 int32_t work_area_inset_bottom); | 241 int32_t work_area_inset_bottom); |
| 222 /** | 242 /** |
| 223 * activated surface changed | 243 * activated surface changed |
| 224 * | 244 * |
| 225 * Notifies client that the activated surface changed. | 245 * Notifies client that the activated surface changed. |
| 226 */ | 246 */ |
| 227 void (*activated)(void *data, | 247 void (*activated)(void *data, |
| 228 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 248 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
| 229 struct wl_surface *gained_active, | 249 struct wl_surface *gained_active, |
| 230 struct wl_surface *lost_active); | 250 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); |
| 231 }; | 263 }; |
| 232 | 264 |
| 233 /** | 265 /** |
| 234 * @ingroup zwp_remote_shell_v1_iface | 266 * @ingroup zwp_remote_shell_v1_iface |
| 235 */ | 267 */ |
| 236 static inline int | 268 static inline int |
| 237 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, | 269 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, |
| 238 const struct zwp_remote_shell_v1_listener *list
ener, void *data) | 270 const struct zwp_remote_shell_v1_listener *list
ener, void *data) |
| 239 { | 271 { |
| 240 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, | 272 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... |
| 488 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 | 520 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 |
| 489 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 | 521 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 |
| 490 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 | 522 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 |
| 491 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 | 523 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 |
| 492 #define ZWP_REMOTE_SURFACE_V1_PIN 8 | 524 #define ZWP_REMOTE_SURFACE_V1_PIN 8 |
| 493 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 | 525 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 |
| 494 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 | 526 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 |
| 495 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 | 527 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 |
| 496 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 | 528 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 |
| 497 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 | 529 #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 |
| 498 | 532 |
| 499 /** | 533 /** |
| 500 * @ingroup iface_zwp_remote_surface_v1 | 534 * @ingroup iface_zwp_remote_surface_v1 |
| 501 */ | 535 */ |
| 502 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 536 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 503 /** | 537 /** |
| 504 * @ingroup iface_zwp_remote_surface_v1 | 538 * @ingroup iface_zwp_remote_surface_v1 |
| 505 */ | 539 */ |
| 506 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 | 540 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 507 /** | 541 /** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 */ | 579 */ |
| 546 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 | 580 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 |
| 547 /** | 581 /** |
| 548 * @ingroup iface_zwp_remote_surface_v1 | 582 * @ingroup iface_zwp_remote_surface_v1 |
| 549 */ | 583 */ |
| 550 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 | 584 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 |
| 551 /** | 585 /** |
| 552 * @ingroup iface_zwp_remote_surface_v1 | 586 * @ingroup iface_zwp_remote_surface_v1 |
| 553 */ | 587 */ |
| 554 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 | 588 #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 |
| 555 | 597 |
| 556 /** @ingroup iface_zwp_remote_surface_v1 */ | 598 /** @ingroup iface_zwp_remote_surface_v1 */ |
| 557 static inline void | 599 static inline void |
| 558 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) | 600 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) |
| 559 { | 601 { |
| 560 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); | 602 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); |
| 561 } | 603 } |
| 562 | 604 |
| 563 /** @ingroup iface_zwp_remote_surface_v1 */ | 605 /** @ingroup iface_zwp_remote_surface_v1 */ |
| 564 static inline void * | 606 static inline void * |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 * | 852 * |
| 811 * This distance typically represents the size of the window caption. | 853 * This distance typically represents the size of the window caption. |
| 812 */ | 854 */ |
| 813 static inline void | 855 static inline void |
| 814 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) | 856 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) |
| 815 { | 857 { |
| 816 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | 858 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
| 817 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); | 859 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); |
| 818 } | 860 } |
| 819 | 861 |
| 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 |
| 820 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 | 886 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 |
| 821 | 887 |
| 822 /** | 888 /** |
| 823 * @ingroup iface_zwp_notification_surface_v1 | 889 * @ingroup iface_zwp_notification_surface_v1 |
| 824 */ | 890 */ |
| 825 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 891 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 826 | 892 |
| 827 /** @ingroup iface_zwp_notification_surface_v1 */ | 893 /** @ingroup iface_zwp_notification_surface_v1 */ |
| 828 static inline void | 894 static inline void |
| 829 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1, void *user_data) | 895 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... |
| 856 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); | 922 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); |
| 857 | 923 |
| 858 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); | 924 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); |
| 859 } | 925 } |
| 860 | 926 |
| 861 #ifdef __cplusplus | 927 #ifdef __cplusplus |
| 862 } | 928 } |
| 863 #endif | 929 #endif |
| 864 | 930 |
| 865 #endif | 931 #endif |
| OLD | NEW |