OLD | NEW |
1 /* Generated by wayland-scanner 1.12.90 */ | 1 /* Generated by wayland-scanner 1.12.90 */ |
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 struct zcr_remote_shell_v1 *zcr_remote_she
ll_v1, | 252 struct zcr_remote_shell_v1 *zcr_remote_she
ll_v1, |
253 int32_t width, | 253 int32_t width, |
254 int32_t height, | 254 int32_t height, |
255 int32_t transform, | 255 int32_t transform, |
256 wl_fixed_t scale_factor, | 256 wl_fixed_t scale_factor, |
257 int32_t work_area_inset_left, | 257 int32_t work_area_inset_left, |
258 int32_t work_area_inset_top, | 258 int32_t work_area_inset_top, |
259 int32_t work_area_inset_right, | 259 int32_t work_area_inset_right, |
260 int32_t work_area_inset_bottom, | 260 int32_t work_area_inset_bottom, |
261 uint32_t layout_mode); | 261 uint32_t layout_mode); |
262 /** | 262 » /** |
263 * area of remote shell | 263 » * area of remote shell |
264 * | 264 » * |
265 * Defines an area of the remote shell used for layout. Each | 265 » * Defines an area of the remote shell used for layout. Each |
266 * series of "workspace" events must be terminated by a "configure" | 266 » * series of "workspace" events must be terminated by a "configure" |
267 * event. | 267 » * event. |
268 * @since 5 | 268 » * @since 6 |
269 */ | 269 » */ |
270 void (*workspace)(void *data, | 270 » void (*workspace)(void *data, |
271 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, | 271 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, |
272 uint32_t id_hi, | 272 uint32_t id_hi, |
273 uint32_t id_lo, | 273 uint32_t id_lo, |
274 int32_t x, | 274 int32_t x, |
275 int32_t y, | 275 int32_t y, |
276 int32_t width, | 276 int32_t width, |
277 int32_t height, | 277 int32_t height, |
278 int32_t inset_left, | 278 int32_t inset_left, |
279 int32_t inset_top, | 279 int32_t inset_top, |
280 int32_t inset_right, | 280 int32_t inset_right, |
281 int32_t inset_bottom, | 281 int32_t inset_bottom, |
282 int32_t transform, | 282 int32_t transform, |
283 wl_fixed_t scale_factor); | 283 wl_fixed_t scale_factor); |
284 /** | 284 » /** |
285 * suggests configuration of remote shell | 285 » * suggests configuration of remote shell |
286 * | 286 » * |
287 * Suggests a new configuration of the remote shell. Preceded by | 287 » * Suggests a new configuration of the remote shell. Preceded by |
288 * a series of "workspace" events. | 288 » * a series of "workspace" events. |
289 * @since 5 | 289 » * @since 6 |
290 */ | 290 » */ |
291 void (*configure)(void *data, | 291 » void (*configure)(void *data, |
292 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, | 292 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, |
293 uint32_t layout_mode); | 293 uint32_t layout_mode); |
294 }; | 294 }; |
295 | 295 |
296 /** | 296 /** |
297 * @ingroup iface_zcr_remote_shell_v1 | 297 * @ingroup zcr_remote_shell_v1_iface |
298 */ | 298 */ |
299 static inline int | 299 static inline int |
300 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1
, | 300 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1
, |
301 const struct zcr_remote_shell_v1_listener *list
ener, void *data) | 301 const struct zcr_remote_shell_v1_listener *list
ener, void *data) |
302 { | 302 { |
303 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, | 303 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, |
304 (void (**)(void)) listener, data); | 304 (void (**)(void)) listener, data); |
305 } | 305 } |
306 | 306 |
307 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 | 307 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 |
308 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 | 308 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 |
309 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 | 309 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 |
310 | 310 |
311 /** | 311 /** |
312 * @ingroup iface_zcr_remote_shell_v1 | 312 * @ingroup iface_zcr_remote_shell_v1 |
313 */ | 313 */ |
314 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 | 314 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
315 /** | 315 /** |
316 * @ingroup iface_zcr_remote_shell_v1 | 316 * @ingroup iface_zcr_remote_shell_v1 |
317 */ | 317 */ |
318 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 | 318 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 |
319 /** | 319 /** |
320 * @ingroup iface_zcr_remote_shell_v1 | 320 * @ingroup iface_zcr_remote_shell_v1 |
321 */ | 321 */ |
322 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 5 | 322 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 6 |
323 /** | 323 /** |
324 * @ingroup iface_zcr_remote_shell_v1 | 324 * @ingroup iface_zcr_remote_shell_v1 |
325 */ | 325 */ |
326 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 5 | 326 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 6 |
327 | 327 |
328 /** | 328 /** |
329 * @ingroup iface_zcr_remote_shell_v1 | 329 * @ingroup iface_zcr_remote_shell_v1 |
330 */ | 330 */ |
331 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 | 331 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
332 /** | 332 /** |
333 * @ingroup iface_zcr_remote_shell_v1 | 333 * @ingroup iface_zcr_remote_shell_v1 |
334 */ | 334 */ |
335 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 | 335 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
336 /** | 336 /** |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 419 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
420 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 420 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
421 /** | 421 /** |
422 * @ingroup iface_zcr_remote_surface_v1 | 422 * @ingroup iface_zcr_remote_surface_v1 |
423 * systemui visibility behavior | 423 * systemui visibility behavior |
424 * | 424 * |
425 * Determine the visibility behavior of the system UI. | 425 * Determine the visibility behavior of the system UI. |
426 */ | 426 */ |
427 enum zcr_remote_surface_v1_systemui_visibility_state { | 427 enum zcr_remote_surface_v1_systemui_visibility_state { |
428 /** | 428 » /** |
429 * system ui is visible | 429 » * system ui is visible |
430 */ | 430 » */ |
431 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, | 431 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, |
432 /** | 432 » /** |
433 * system ui autohides and is not sticky | 433 » * system ui autohides and is not sticky |
434 */ | 434 » */ |
435 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, | 435 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, |
436 /** | 436 » /** |
437 * system ui autohides and is sticky | 437 » * system ui autohides and is sticky |
438 */ | 438 » */ |
439 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, | 439 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, |
440 }; | 440 }; |
441 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ | 441 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ |
442 | 442 |
443 /** | 443 /** |
444 * @ingroup iface_zcr_remote_surface_v1 | 444 * @ingroup iface_zcr_remote_surface_v1 |
445 * @struct zcr_remote_surface_v1_listener | 445 * @struct zcr_remote_surface_v1_listener |
446 */ | 446 */ |
447 struct zcr_remote_surface_v1_listener { | 447 struct zcr_remote_surface_v1_listener { |
448 /** | 448 /** |
449 * surface wants to be closed | 449 * surface wants to be closed |
(...skipping 16 matching lines...) Expand all Loading... |
466 * compositor when the surface state changed. | 466 * compositor when the surface state changed. |
467 * | 467 * |
468 * This is an event to notify that the window state changed in | 468 * This is an event to notify that the window state changed in |
469 * compositor. The state change may be triggered by a client's | 469 * compositor. The state change may be triggered by a client's |
470 * request, or some user action directly handled by the compositor. | 470 * request, or some user action directly handled by the compositor. |
471 * The client may choose to ignore this event. | 471 * The client may choose to ignore this event. |
472 */ | 472 */ |
473 void (*state_type_changed)(void *data, | 473 void (*state_type_changed)(void *data, |
474 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 474 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
475 uint32_t state_type); | 475 uint32_t state_type); |
476 /** | 476 » /** |
477 * suggest a surface change | 477 » * suggest a surface change |
478 * | 478 » * |
479 * The configure event asks the client to change surface state. | 479 » * The configure event asks the client to change surface state. |
480 * | 480 » * |
481 * The client must apply the origin offset to window positions in | 481 » * The client must apply the origin offset to window positions in |
482 * set_window_geometry requests. | 482 » * set_window_geometry requests. |
483 * | 483 » * |
484 * The states listed in the event are state_type values, and might | 484 » * The states listed in the event are state_type values, and might |
485 * change due to a client request or an event directly handled by | 485 » * change due to a client request or an event directly handled by |
486 * the compositor. | 486 » * the compositor. |
487 * | 487 » * |
488 * Clients should arrange their surface for the new state, and then | 488 » * Clients should arrange their surface for the new state, and then |
489 * send an ack_configure request with the serial sent in this | 489 » * send an ack_configure request with the serial sent in this |
490 * configure event at some point before committing the new surface. | 490 » * configure event at some point before committing the new surface. |
491 * | 491 » * |
492 * If the client receives multiple configure events before it can | 492 » * If the client receives multiple configure events before it can |
493 * respond to one, it is free to discard all but the last event it | 493 » * respond to one, it is free to discard all but the last event it |
494 * received. | 494 » * received. |
495 * @since 5 | 495 » * @since 6 |
496 */ | 496 » */ |
497 void (*configure)(void *data, | 497 » void (*configure)(void *data, |
498 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, | 498 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, |
499 int32_t origin_offset_x, | 499 int32_t origin_offset_x, |
500 int32_t origin_offset_y, | 500 int32_t origin_offset_y, |
501 struct wl_array *states, | 501 struct wl_array *states, |
502 uint32_t serial); | 502 uint32_t serial); |
503 }; | 503 }; |
504 | 504 |
505 /** | 505 /** |
506 * @ingroup iface_zcr_remote_surface_v1 | 506 * @ingroup zcr_remote_surface_v1_iface |
507 */ | 507 */ |
508 static inline int | 508 static inline int |
509 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 509 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
510 const struct zcr_remote_surface_v1_listener *
listener, void *data) | 510 const struct zcr_remote_surface_v1_listener *
listener, void *data) |
511 { | 511 { |
512 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, | 512 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, |
513 (void (**)(void)) listener, data); | 513 (void (**)(void)) listener, data); |
514 } | 514 } |
515 | 515 |
516 #define ZCR_REMOTE_SURFACE_V1_DESTROY 0 | 516 #define ZCR_REMOTE_SURFACE_V1_DESTROY 0 |
(...skipping 11 matching lines...) Expand all Loading... |
528 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 | 528 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 |
529 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 | 529 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 |
530 #define ZCR_REMOTE_SURFACE_V1_PIN 14 | 530 #define ZCR_REMOTE_SURFACE_V1_PIN 14 |
531 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 | 531 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 |
532 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 | 532 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 |
533 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 | 533 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 |
534 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 18 | 534 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 18 |
535 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY 19 | 535 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY 19 |
536 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP 20 | 536 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP 20 |
537 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP 21 | 537 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP 21 |
538 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 22 | 538 #define ZCR_REMOTE_SURFACE_V1_SET_ICON_PNG_CHUNK 22 |
539 #define ZCR_REMOTE_SURFACE_V1_MOVE 23 | 539 #define ZCR_REMOTE_SURFACE_V1_RESET_ICON_PNG 23 |
| 540 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 24 |
| 541 #define ZCR_REMOTE_SURFACE_V1_MOVE 25 |
540 | 542 |
541 /** | 543 /** |
542 * @ingroup iface_zcr_remote_surface_v1 | 544 * @ingroup iface_zcr_remote_surface_v1 |
543 */ | 545 */ |
544 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 546 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
545 /** | 547 /** |
546 * @ingroup iface_zcr_remote_surface_v1 | 548 * @ingroup iface_zcr_remote_surface_v1 |
547 */ | 549 */ |
548 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 | 550 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
549 /** | 551 /** |
550 * @ingroup iface_zcr_remote_surface_v1 | 552 * @ingroup iface_zcr_remote_surface_v1 |
551 */ | 553 */ |
552 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 5 | 554 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 6 |
553 | 555 |
554 /** | 556 /** |
555 * @ingroup iface_zcr_remote_surface_v1 | 557 * @ingroup iface_zcr_remote_surface_v1 |
556 */ | 558 */ |
557 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 559 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
558 /** | 560 /** |
559 * @ingroup iface_zcr_remote_surface_v1 | 561 * @ingroup iface_zcr_remote_surface_v1 |
560 */ | 562 */ |
561 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 | 563 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
562 /** | 564 /** |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 * @ingroup iface_zcr_remote_surface_v1 | 637 * @ingroup iface_zcr_remote_surface_v1 |
636 */ | 638 */ |
637 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP_SINCE_VERSION 4 | 639 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP_SINCE_VERSION 4 |
638 /** | 640 /** |
639 * @ingroup iface_zcr_remote_surface_v1 | 641 * @ingroup iface_zcr_remote_surface_v1 |
640 */ | 642 */ |
641 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP_SINCE_VERSION 4 | 643 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP_SINCE_VERSION 4 |
642 /** | 644 /** |
643 * @ingroup iface_zcr_remote_surface_v1 | 645 * @ingroup iface_zcr_remote_surface_v1 |
644 */ | 646 */ |
645 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 5 | 647 #define ZCR_REMOTE_SURFACE_V1_SET_ICON_PNG_CHUNK_SINCE_VERSION 5 |
646 /** | 648 /** |
647 * @ingroup iface_zcr_remote_surface_v1 | 649 * @ingroup iface_zcr_remote_surface_v1 |
648 */ | 650 */ |
649 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 5 | 651 #define ZCR_REMOTE_SURFACE_V1_RESET_ICON_PNG_SINCE_VERSION 5 |
| 652 /** |
| 653 * @ingroup iface_zcr_remote_surface_v1 |
| 654 */ |
| 655 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 6 |
| 656 /** |
| 657 * @ingroup iface_zcr_remote_surface_v1 |
| 658 */ |
| 659 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 6 |
650 | 660 |
651 /** @ingroup iface_zcr_remote_surface_v1 */ | 661 /** @ingroup iface_zcr_remote_surface_v1 */ |
652 static inline void | 662 static inline void |
653 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) | 663 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) |
654 { | 664 { |
655 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); | 665 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); |
656 } | 666 } |
657 | 667 |
658 /** @ingroup iface_zcr_remote_surface_v1 */ | 668 /** @ingroup iface_zcr_remote_surface_v1 */ |
659 static inline void * | 669 static inline void * |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 static inline void | 986 static inline void |
977 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v
1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height) | 987 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v
1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height) |
978 { | 988 { |
979 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 989 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
980 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); | 990 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x
, y, width, height); |
981 } | 991 } |
982 | 992 |
983 /** | 993 /** |
984 * @ingroup iface_zcr_remote_surface_v1 | 994 * @ingroup iface_zcr_remote_surface_v1 |
985 * | 995 * |
986 * Requests how the surface will change the visibility of the system UI when it | 996 * Requests how the surface will change the visibility of the system UI when it
is made active. |
987 * is made active. | |
988 */ | 997 */ |
989 static inline void zcr_remote_surface_v1_set_systemui_visibility( | 998 static inline void |
990 struct zcr_remote_surface_v1* zcr_remote_surface_v1, | 999 zcr_remote_surface_v1_set_systemui_visibility(struct zcr_remote_surface_v1 *zcr_
remote_surface_v1, uint32_t visibility) |
991 uint32_t visibility) { | 1000 { |
992 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, | 1001 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
993 ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY, visibility); | 1002 » » » ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY, visibili
ty); |
994 } | 1003 } |
995 | 1004 |
996 /** | 1005 /** |
997 * @ingroup iface_zcr_remote_surface_v1 | 1006 * @ingroup iface_zcr_remote_surface_v1 |
998 * | 1007 * |
999 * Request that surface is made to be always on top. | 1008 * Request that surface is made to be always on top. |
1000 * | 1009 * |
1001 * This is only a request that the window should be always on top. | 1010 * This is only a request that the window should be always on top. |
1002 * The compositor may choose to ignore this request. | 1011 * The compositor may choose to ignore this request. |
1003 * | 1012 * |
1004 */ | 1013 */ |
1005 static inline void zcr_remote_surface_v1_set_always_on_top( | 1014 static inline void |
1006 struct zcr_remote_surface_v1* zcr_remote_surface_v1) { | 1015 zcr_remote_surface_v1_set_always_on_top(struct zcr_remote_surface_v1 *zcr_remote
_surface_v1) |
1007 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, | 1016 { |
1008 ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP); | 1017 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 1018 » » » ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP); |
1009 } | 1019 } |
1010 | 1020 |
1011 /** | 1021 /** |
1012 * @ingroup iface_zcr_remote_surface_v1 | 1022 * @ingroup iface_zcr_remote_surface_v1 |
1013 * | 1023 * |
1014 * Request that surface is made to be not always on top. | 1024 * Request that surface is made to be not always on top. |
1015 * | 1025 * |
1016 * This is only a request that the window should be not always on top. | 1026 * This is only a request that the window should be not always on top. |
1017 * The compositor may choose to ignore this request. | 1027 * The compositor may choose to ignore this request. |
1018 */ | 1028 */ |
1019 static inline void zcr_remote_surface_v1_unset_always_on_top( | 1029 static inline void |
1020 struct zcr_remote_surface_v1* zcr_remote_surface_v1) { | 1030 zcr_remote_surface_v1_unset_always_on_top(struct zcr_remote_surface_v1 *zcr_remo
te_surface_v1) |
1021 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, | 1031 { |
1022 ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP); | 1032 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 1033 » » » ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP); |
1023 } | 1034 } |
1024 | 1035 |
1025 /** | 1036 /** |
| 1037 * @ingroup iface_zcr_remote_surface_v1 |
| 1038 * |
| 1039 * Set a chunk of surface custom icon compressed in png format. |
| 1040 * |
| 1041 * This icon may be used to show the task icon in a task bar. |
| 1042 * |
| 1043 * If flag contains 0x1 bit then this is the first chunk of data. |
| 1044 * If flag contains 0x2 bit then this is the last chunk of data. |
| 1045 * Both bits may be set or not set. |
| 1046 */ |
| 1047 static inline void |
| 1048 zcr_remote_surface_v1_set_icon_png_chunk(struct zcr_remote_surface_v1 *zcr_remot
e_surface_v1, uint32_t flags, struct wl_array *chunk) |
| 1049 { |
| 1050 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 1051 ZCR_REMOTE_SURFACE_V1_SET_ICON_PNG_CHUNK, flags, chunk)
; |
| 1052 } |
| 1053 |
| 1054 /** |
| 1055 * @ingroup iface_zcr_remote_surface_v1 |
| 1056 * |
| 1057 * This reset any previosly set surface custom icon. |
| 1058 * |
| 1059 * Default app icon will be used to show the task icon in a task bar. |
| 1060 */ |
| 1061 static inline void |
| 1062 zcr_remote_surface_v1_reset_icon_png(struct zcr_remote_surface_v1 *zcr_remote_su
rface_v1) |
| 1063 { |
| 1064 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 1065 ZCR_REMOTE_SURFACE_V1_RESET_ICON_PNG); |
| 1066 } |
| 1067 |
| 1068 /** |
1026 * @ingroup iface_zcr_remote_surface_v1 | 1069 * @ingroup iface_zcr_remote_surface_v1 |
1027 * | 1070 * |
1028 * When a configure event is received, if a client commits the | 1071 * When a configure event is received, if a client commits the |
1029 * surface in response to the configure event, then the client | 1072 * surface in response to the configure event, then the client |
1030 * must make an ack_configure request sometime before the commit | 1073 * must make an ack_configure request sometime before the commit |
1031 * request, passing along the serial of the configure event. | 1074 * request, passing along the serial of the configure event. |
1032 * | 1075 * |
1033 * For instance, the compositor might use this information during display | 1076 * For instance, the compositor might use this information during display |
1034 * configuration to change its coordinate space for set_window_geometry | 1077 * configuration to change its coordinate space for set_window_geometry |
1035 * requests only when the client has switched to the new coordinate space. | 1078 * requests only when the client has switched to the new coordinate space. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 1156 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
1114 | 1157 |
1115 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 1158 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
1116 } | 1159 } |
1117 | 1160 |
1118 #ifdef __cplusplus | 1161 #ifdef __cplusplus |
1119 } | 1162 } |
1120 #endif | 1163 #endif |
1121 | 1164 |
1122 #endif | 1165 #endif |
OLD | NEW |