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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 * given wl_surface has another role | 162 * given wl_surface has another role |
163 */ | 163 */ |
164 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 164 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
165 /** | 165 /** |
166 * invalid notification id | 166 * invalid notification id |
167 */ | 167 */ |
168 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, | 168 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, |
169 }; | 169 }; |
170 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ | 170 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ |
171 | 171 |
| 172 #ifndef ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM |
| 173 #define ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM |
| 174 /** |
| 175 * @ingroup iface_zwp_remote_shell_v1 |
| 176 * the mode of the shell |
| 177 * |
| 178 * Determine how a remote surface should be stacked relative to other |
| 179 * shell surfaces. |
| 180 */ |
| 181 enum zwp_remote_shell_v1_shell_mode { |
| 182 /** |
| 183 * mulitple windows |
| 184 */ |
| 185 ZWP_REMOTE_SHELL_V1_SHELL_MODE_WINDOWED = 1, |
| 186 /** |
| 187 * restricted mode for table |
| 188 */ |
| 189 ZWP_REMOTE_SHELL_V1_SHELL_MODE_TABLET = 2, |
| 190 }; |
| 191 #endif /* ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM */ |
| 192 |
172 /** | 193 /** |
173 * @ingroup iface_zwp_remote_shell_v1 | 194 * @ingroup iface_zwp_remote_shell_v1 |
174 * @struct zwp_remote_shell_v1_listener | 195 * @struct zwp_remote_shell_v1_listener |
175 */ | 196 */ |
176 struct zwp_remote_shell_v1_listener { | 197 struct zwp_remote_shell_v1_listener { |
177 /** | 198 /** |
178 * suggests a re-layout of remote shell | 199 * suggests a re-layout of remote shell |
179 * | 200 * |
180 * Suggests a re-layout of remote surface geometry. | 201 * Suggests a re-layout of remote surface geometry. |
181 */ | 202 */ |
182 void (*configure)(void *data, | 203 void (*configure)(void *data, |
183 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 204 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
184 int32_t width, | 205 int32_t width, |
185 int32_t height, | 206 int32_t height, |
186 int32_t work_area_inset_left, | 207 int32_t work_area_inset_left, |
187 int32_t work_area_inset_top, | 208 int32_t work_area_inset_top, |
188 int32_t work_area_inset_right, | 209 int32_t work_area_inset_right, |
189 int32_t work_area_inset_bottom); | 210 int32_t work_area_inset_bottom); |
190 /** | 211 /** |
191 * activated surface changed | 212 * activated surface changed |
192 * | 213 * |
193 * Notifies client that the activated surface changed. | 214 * Notifies client that the activated surface changed. |
194 */ | 215 */ |
195 void (*activated)(void *data, | 216 void (*activated)(void *data, |
196 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, | 217 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, |
197 struct wl_surface *gained_active, | 218 struct wl_surface *gained_active, |
198 struct wl_surface *lost_active); | 219 struct wl_surface *lost_active); |
| 220 /** |
| 221 * desktop mode changed |
| 222 * |
| 223 * The shell_mode_changed event is sent by the compositor when |
| 224 * the shell mode was changed. |
| 225 * |
| 226 * This is an event to notify that the shell mode has switched. |
| 227 * @since 7 |
| 228 */ |
| 229 void (*shell_mode_changed)(void *data, |
| 230 struct zwp_remote_shell_v1 *zwp_remote_shell_
v1, |
| 231 uint32_t shell_mode); |
199 }; | 232 }; |
200 | 233 |
201 /** | 234 /** |
202 * @ingroup zwp_remote_shell_v1_iface | 235 * @ingroup zwp_remote_shell_v1_iface |
203 */ | 236 */ |
204 static inline int | 237 static inline int |
205 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, | 238 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1
, |
206 const struct zwp_remote_shell_v1_listener *list
ener, void *data) | 239 const struct zwp_remote_shell_v1_listener *list
ener, void *data) |
207 { | 240 { |
208 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, | 241 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 | 474 #define ZWP_REMOTE_SURFACE_V1_FULLSCREEN 4 |
442 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 | 475 #define ZWP_REMOTE_SURFACE_V1_MAXIMIZE 5 |
443 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 | 476 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 |
444 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 | 477 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 |
445 #define ZWP_REMOTE_SURFACE_V1_PIN 8 | 478 #define ZWP_REMOTE_SURFACE_V1_PIN 8 |
446 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 | 479 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 |
447 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 | 480 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 |
448 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 | 481 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 |
449 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 | 482 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 |
450 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 | 483 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 |
| 484 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14 |
| 485 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15 |
451 | 486 |
452 /** | 487 /** |
453 * @ingroup iface_zwp_remote_surface_v1 | 488 * @ingroup iface_zwp_remote_surface_v1 |
454 */ | 489 */ |
455 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 490 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
456 /** | 491 /** |
457 * @ingroup iface_zwp_remote_surface_v1 | 492 * @ingroup iface_zwp_remote_surface_v1 |
458 */ | 493 */ |
459 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 | 494 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
460 /** | 495 /** |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 */ | 533 */ |
499 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 | 534 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4 |
500 /** | 535 /** |
501 * @ingroup iface_zwp_remote_surface_v1 | 536 * @ingroup iface_zwp_remote_surface_v1 |
502 */ | 537 */ |
503 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 | 538 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5 |
504 /** | 539 /** |
505 * @ingroup iface_zwp_remote_surface_v1 | 540 * @ingroup iface_zwp_remote_surface_v1 |
506 */ | 541 */ |
507 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 | 542 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 |
| 543 /** |
| 544 * @ingroup iface_zwp_remote_surface_v1 |
| 545 */ |
| 546 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 7 |
| 547 /** |
| 548 * @ingroup iface_zwp_remote_surface_v1 |
| 549 */ |
| 550 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 7 |
508 | 551 |
509 /** @ingroup iface_zwp_remote_surface_v1 */ | 552 /** @ingroup iface_zwp_remote_surface_v1 */ |
510 static inline void | 553 static inline void |
511 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) | 554 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, void *user_data) |
512 { | 555 { |
513 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); | 556 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d
ata); |
514 } | 557 } |
515 | 558 |
516 /** @ingroup iface_zwp_remote_surface_v1 */ | 559 /** @ingroup iface_zwp_remote_surface_v1 */ |
517 static inline void * | 560 static inline void * |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 * | 806 * |
764 * This distance typically represents the size of the window caption. | 807 * This distance typically represents the size of the window caption. |
765 */ | 808 */ |
766 static inline void | 809 static inline void |
767 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) | 810 zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_sur
face_v1, int32_t height) |
768 { | 811 { |
769 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, | 812 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
770 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); | 813 ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height); |
771 } | 814 } |
772 | 815 |
| 816 /** |
| 817 * @ingroup iface_zwp_remote_surface_v1 |
| 818 * |
| 819 * Suggests a surface should become system modal. |
| 820 */ |
| 821 static inline void |
| 822 zwp_remote_surface_v1_set_system_modal(struct zwp_remote_surface_v1 *zwp_remote_
surface_v1) |
| 823 { |
| 824 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
| 825 ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL); |
| 826 } |
| 827 |
| 828 /** |
| 829 * @ingroup iface_zwp_remote_surface_v1 |
| 830 * |
| 831 * Suggests a surface should become non system modal. |
| 832 */ |
| 833 static inline void |
| 834 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot
e_surface_v1) |
| 835 { |
| 836 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
| 837 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); |
| 838 } |
| 839 |
773 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 | 840 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 |
774 | 841 |
775 /** | 842 /** |
776 * @ingroup iface_zwp_notification_surface_v1 | 843 * @ingroup iface_zwp_notification_surface_v1 |
777 */ | 844 */ |
778 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 845 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
779 | 846 |
780 /** @ingroup iface_zwp_notification_surface_v1 */ | 847 /** @ingroup iface_zwp_notification_surface_v1 */ |
781 static inline void | 848 static inline void |
782 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw
p_notification_surface_v1, void *user_data) | 849 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... |
809 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); | 876 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); |
810 | 877 |
811 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); | 878 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); |
812 } | 879 } |
813 | 880 |
814 #ifdef __cplusplus | 881 #ifdef __cplusplus |
815 } | 882 } |
816 #endif | 883 #endif |
817 | 884 |
818 #endif | 885 #endif |
OLD | NEW |