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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 * default container | 148 * default container |
149 */ | 149 */ |
150 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, | 150 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, |
151 /** | 151 /** |
152 * system modal container | 152 * system modal container |
153 */ | 153 */ |
154 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, | 154 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, |
155 }; | 155 }; |
156 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ | 156 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ |
157 | 157 |
| 158 #ifndef ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM |
| 159 #define ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM |
| 160 /** |
| 161 * @ingroup iface_zwp_remote_shell_v1 |
| 162 * state types for remote surfaces |
| 163 * |
| 164 * Defines common show states for shell surfaces. |
| 165 */ |
| 166 enum zwp_remote_shell_v1_state_type { |
| 167 /** |
| 168 * normal window state |
| 169 */ |
| 170 ZWP_REMOTE_SHELL_V1_STATE_TYPE_NORMAL = 1, |
| 171 /** |
| 172 * minimized window state |
| 173 */ |
| 174 ZWP_REMOTE_SHELL_V1_STATE_TYPE_MINIMIZED = 2, |
| 175 /** |
| 176 * maximized window state |
| 177 */ |
| 178 ZWP_REMOTE_SHELL_V1_STATE_TYPE_MAXIMIZED = 3, |
| 179 /** |
| 180 * fullscreen window state |
| 181 */ |
| 182 ZWP_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4, |
| 183 /** |
| 184 * pinned window state |
| 185 */ |
| 186 ZWP_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5, |
| 187 }; |
| 188 #endif /* ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM */ |
| 189 |
158 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 190 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
159 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM | 191 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM |
160 enum zwp_remote_shell_v1_error { | 192 enum zwp_remote_shell_v1_error { |
161 /** | 193 /** |
162 * given wl_surface has another role | 194 * given wl_surface has another role |
163 */ | 195 */ |
164 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 196 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
165 /** | 197 /** |
166 * invalid notification id | 198 * invalid notification id |
167 */ | 199 */ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 * surface was unpinned. | 446 * surface was unpinned. |
415 * | 447 * |
416 * This is an event to notify that the window is unpinned in | 448 * This is an event to notify that the window is unpinned in |
417 * compositor. The unpin may be triggered by a client's request, or | 449 * compositor. The unpin may be triggered by a client's request, or |
418 * some user action directly handled by the compositor. The client | 450 * some user action directly handled by the compositor. The client |
419 * may choose to ignore this event. | 451 * may choose to ignore this event. |
420 * @since 3 | 452 * @since 3 |
421 */ | 453 */ |
422 void (*unset_pinned)(void *data, | 454 void (*unset_pinned)(void *data, |
423 struct zwp_remote_surface_v1 *zwp_remote_surface_v1
); | 455 struct zwp_remote_surface_v1 *zwp_remote_surface_v1
); |
| 456 /** |
| 457 * surface state type changed |
| 458 * |
| 459 * The state_type_changed event is sent by the compositor when |
| 460 * the surface state changed. |
| 461 * |
| 462 * This is an event to notify that the window state changed in |
| 463 * compositor. The state change may be triggered by a client's |
| 464 * request, or some user action directly handled by the compositor. |
| 465 * The client may choose to ignore this event. |
| 466 * @since 7 |
| 467 */ |
| 468 void (*state_type_changed)(void *data, |
| 469 struct zwp_remote_surface_v1 *zwp_remote_surf
ace_v1, |
| 470 uint32_t state_type); |
424 }; | 471 }; |
425 | 472 |
426 /** | 473 /** |
427 * @ingroup zwp_remote_surface_v1_iface | 474 * @ingroup zwp_remote_surface_v1_iface |
428 */ | 475 */ |
429 static inline int | 476 static inline int |
430 zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
ace_v1, | 477 zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
ace_v1, |
431 const struct zwp_remote_surface_v1_listener *
listener, void *data) | 478 const struct zwp_remote_surface_v1_listener *
listener, void *data) |
432 { | 479 { |
433 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_surface_v1, | 480 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_surface_v1, |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); | 856 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); |
810 | 857 |
811 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); | 858 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); |
812 } | 859 } |
813 | 860 |
814 #ifdef __cplusplus | 861 #ifdef __cplusplus |
815 } | 862 } |
816 #endif | 863 #endif |
817 | 864 |
818 #endif | 865 #endif |
OLD | NEW |