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_SERVER_PROTOCOL_H | 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H |
4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H | 4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H |
5 | 5 |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include "wayland-server.h" | 8 #include "wayland-server.h" |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 * given wl_surface has another role | 165 * given wl_surface has another role |
166 */ | 166 */ |
167 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 167 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
168 /** | 168 /** |
169 * invalid notification id | 169 * invalid notification id |
170 */ | 170 */ |
171 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, | 171 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1, |
172 }; | 172 }; |
173 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ | 173 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ |
174 | 174 |
| 175 #ifndef ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM |
| 176 #define ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM |
| 177 /** |
| 178 * @ingroup iface_zwp_remote_shell_v1 |
| 179 * the mode of the shell |
| 180 * |
| 181 * Determine how a remote surface should be stacked relative to other |
| 182 * shell surfaces. |
| 183 */ |
| 184 enum zwp_remote_shell_v1_shell_mode { |
| 185 /** |
| 186 * mulitple windows |
| 187 */ |
| 188 ZWP_REMOTE_SHELL_V1_SHELL_MODE_WINDOWED = 1, |
| 189 /** |
| 190 * restricted mode for table |
| 191 */ |
| 192 ZWP_REMOTE_SHELL_V1_SHELL_MODE_TABLET = 2, |
| 193 }; |
| 194 #endif /* ZWP_REMOTE_SHELL_V1_SHELL_MODE_ENUM */ |
| 195 |
175 /** | 196 /** |
176 * @ingroup iface_zwp_remote_shell_v1 | 197 * @ingroup iface_zwp_remote_shell_v1 |
177 * @struct zwp_remote_shell_v1_interface | 198 * @struct zwp_remote_shell_v1_interface |
178 */ | 199 */ |
179 struct zwp_remote_shell_v1_interface { | 200 struct zwp_remote_shell_v1_interface { |
180 /** | 201 /** |
181 * destroy remote_shell | 202 * destroy remote_shell |
182 * | 203 * |
183 * Destroy this remote_shell object. | 204 * Destroy this remote_shell object. |
184 * | 205 * |
(...skipping 30 matching lines...) Expand all Loading... |
215 */ | 236 */ |
216 void (*get_notification_surface)(struct wl_client *client, | 237 void (*get_notification_surface)(struct wl_client *client, |
217 struct wl_resource *resource, | 238 struct wl_resource *resource, |
218 uint32_t id, | 239 uint32_t id, |
219 struct wl_resource *surface, | 240 struct wl_resource *surface, |
220 const char *notification_id); | 241 const char *notification_id); |
221 }; | 242 }; |
222 | 243 |
223 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 | 244 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 |
224 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 | 245 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 |
| 246 #define ZWP_REMOTE_SHELL_V1_SHELL_MODE_CHANGED 2 |
225 | 247 |
226 /** | 248 /** |
227 * @ingroup iface_zwp_remote_shell_v1 | 249 * @ingroup iface_zwp_remote_shell_v1 |
228 */ | 250 */ |
229 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 | 251 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 |
230 /** | 252 /** |
231 * @ingroup iface_zwp_remote_shell_v1 | 253 * @ingroup iface_zwp_remote_shell_v1 |
232 */ | 254 */ |
233 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 | 255 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
| 256 /** |
| 257 * @ingroup iface_zwp_remote_shell_v1 |
| 258 */ |
| 259 #define ZWP_REMOTE_SHELL_V1_SHELL_MODE_CHANGED_SINCE_VERSION 7 |
234 | 260 |
235 /** | 261 /** |
236 * @ingroup iface_zwp_remote_shell_v1 | 262 * @ingroup iface_zwp_remote_shell_v1 |
237 * Sends an configure event to the client owning the resource. | 263 * Sends an configure event to the client owning the resource. |
238 * @param resource_ The client's resource | 264 * @param resource_ The client's resource |
239 */ | 265 */ |
240 static inline void | 266 static inline void |
241 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width,
int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3
2_t work_area_inset_right, int32_t work_area_inset_bottom) | 267 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width,
int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3
2_t work_area_inset_right, int32_t work_area_inset_bottom) |
242 { | 268 { |
243 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width,
height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a
rea_inset_bottom); | 269 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width,
height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a
rea_inset_bottom); |
244 } | 270 } |
245 | 271 |
246 /** | 272 /** |
247 * @ingroup iface_zwp_remote_shell_v1 | 273 * @ingroup iface_zwp_remote_shell_v1 |
248 * Sends an activated event to the client owning the resource. | 274 * Sends an activated event to the client owning the resource. |
249 * @param resource_ The client's resource | 275 * @param resource_ The client's resource |
250 */ | 276 */ |
251 static inline void | 277 static inline void |
252 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) | 278 zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
urce *gained_active, struct wl_resource *lost_active) |
253 { | 279 { |
254 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); | 280 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_
active, lost_active); |
255 } | 281 } |
256 | 282 |
257 /** | 283 /** |
| 284 * @ingroup iface_zwp_remote_shell_v1 |
| 285 * Sends an shell_mode_changed event to the client owning the resource. |
| 286 * @param resource_ The client's resource |
| 287 */ |
| 288 static inline void |
| 289 zwp_remote_shell_v1_send_shell_mode_changed(struct wl_resource *resource_, uint3
2_t shell_mode) |
| 290 { |
| 291 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_SHELL_MODE_CHANGED
, shell_mode); |
| 292 } |
| 293 |
| 294 /** |
258 * @ingroup iface_zwp_remote_surface_v1 | 295 * @ingroup iface_zwp_remote_surface_v1 |
259 * @struct zwp_remote_surface_v1_interface | 296 * @struct zwp_remote_surface_v1_interface |
260 */ | 297 */ |
261 struct zwp_remote_surface_v1_interface { | 298 struct zwp_remote_surface_v1_interface { |
262 /** | 299 /** |
263 * Destroy the remote_surface | 300 * Destroy the remote_surface |
264 * | 301 * |
265 * Unmap and destroy the window. The window will be effectively | 302 * Unmap and destroy the window. The window will be effectively |
266 * hidden from the user's point of view, and all state will be | 303 * hidden from the user's point of view, and all state will be |
267 * lost. | 304 * lost. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 * | 489 * |
453 * Set distance from the top of the surface to the contents. | 490 * Set distance from the top of the surface to the contents. |
454 * | 491 * |
455 * This distance typically represents the size of the window | 492 * This distance typically represents the size of the window |
456 * caption. | 493 * caption. |
457 * @since 5 | 494 * @since 5 |
458 */ | 495 */ |
459 void (*set_top_inset)(struct wl_client *client, | 496 void (*set_top_inset)(struct wl_client *client, |
460 struct wl_resource *resource, | 497 struct wl_resource *resource, |
461 int32_t height); | 498 int32_t height); |
| 499 /** |
| 500 * suggests a re-layout of remote shell input area |
| 501 * |
| 502 * Suggests a surface should become system modal. |
| 503 * @since 7 |
| 504 */ |
| 505 void (*set_system_modal)(struct wl_client *client, |
| 506 struct wl_resource *resource); |
| 507 /** |
| 508 * suggests a re-layout of remote shell input area |
| 509 * |
| 510 * Suggests a surface should become non system modal. |
| 511 * @since 7 |
| 512 */ |
| 513 void (*unset_system_modal)(struct wl_client *client, |
| 514 struct wl_resource *resource); |
462 }; | 515 }; |
463 | 516 |
464 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 | 517 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 |
465 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 | 518 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 |
466 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 | 519 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 |
467 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 | 520 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 |
468 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 | 521 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 |
469 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 | 522 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 |
470 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 | 523 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 |
471 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 | 524 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 void (*destroy)(struct wl_client *client, | 673 void (*destroy)(struct wl_client *client, |
621 struct wl_resource *resource); | 674 struct wl_resource *resource); |
622 }; | 675 }; |
623 | 676 |
624 | 677 |
625 #ifdef __cplusplus | 678 #ifdef __cplusplus |
626 } | 679 } |
627 #endif | 680 #endif |
628 | 681 |
629 #endif | 682 #endif |
OLD | NEW |