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_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 322 matching lines...) Loading... |
333 static inline void | 333 static inline void |
334 zcr_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in
t32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, int32_t
work_area_inset_left, int32_t work_area_inset_top, int32_t work_area_inset_righ
t, int32_t work_area_inset_bottom, uint32_t layout_mode) | 334 zcr_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in
t32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, int32_t
work_area_inset_left, int32_t work_area_inset_top, int32_t work_area_inset_righ
t, int32_t work_area_inset_bottom, uint32_t layout_mode) |
335 { | 335 { |
336 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN
GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins
et_top, work_area_inset_right, work_area_inset_bottom, layout_mode); | 336 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN
GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins
et_top, work_area_inset_right, work_area_inset_bottom, layout_mode); |
337 } | 337 } |
338 | 338 |
339 /** | 339 /** |
340 * @ingroup iface_zcr_remote_shell_v1 | 340 * @ingroup iface_zcr_remote_shell_v1 |
341 * Sends an workspace event to the client owning the resource. | 341 * Sends an workspace event to the client owning the resource. |
342 * @param resource_ The client's resource | 342 * @param resource_ The client's resource |
| 343 * @param is_internal 1 if screen is built-in |
343 */ | 344 */ |
344 static inline void | 345 static inline void |
345 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id_hi
, uint32_t id_lo, int32_t x, int32_t y, int32_t width, int32_t height, int32_t i
nset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom, int32_t
transform, wl_fixed_t scale_factor) | 346 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id_hi
, uint32_t id_lo, int32_t x, int32_t y, int32_t width, int32_t height, int32_t i
nset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom, int32_t
transform, wl_fixed_t scale_factor, uint32_t is_internal) |
346 { | 347 { |
347 » wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id_hi,
id_lo, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom, tr
ansform, scale_factor); | 348 » wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id_hi,
id_lo, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom, tr
ansform, scale_factor, is_internal); |
348 } | 349 } |
349 | 350 |
350 /** | 351 /** |
351 * @ingroup iface_zcr_remote_shell_v1 | 352 * @ingroup iface_zcr_remote_shell_v1 |
352 * Sends an configure event to the client owning the resource. | 353 * Sends an configure event to the client owning the resource. |
353 * @param resource_ The client's resource | 354 * @param resource_ The client's resource |
354 */ | 355 */ |
355 static inline void | 356 static inline void |
356 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, uint32_t layou
t_mode) | 357 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, uint32_t layou
t_mode) |
357 { | 358 { |
358 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, layout_
mode); | 359 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, layout_
mode); |
359 } | 360 } |
360 | 361 |
361 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 362 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
362 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM | 363 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM |
363 /** | 364 /** |
364 * @ingroup iface_zcr_remote_surface_v1 | 365 * @ingroup iface_zcr_remote_surface_v1 |
365 * systemui visibility behavior | 366 * systemui visibility behavior |
366 * | 367 * |
367 * Determine the visibility behavior of the system UI. | 368 * Determine the visibility behavior of the system UI. |
368 */ | 369 */ |
369 enum zcr_remote_surface_v1_systemui_visibility_state { | 370 enum zcr_remote_surface_v1_systemui_visibility_state { |
370 /** | 371 » /** |
371 * system ui is visible | 372 » * system ui is visible |
372 */ | 373 » */ |
373 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, | 374 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, |
374 /** | 375 » /** |
375 * system ui autohides and is not sticky | 376 » * system ui autohides and is not sticky |
376 */ | 377 » */ |
377 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, | 378 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, |
378 /** | 379 » /** |
379 * system ui autohides and is sticky | 380 » * system ui autohides and is sticky |
380 */ | 381 » */ |
381 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, | 382 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, |
382 }; | 383 }; |
383 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ | 384 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ |
384 | 385 |
385 /** | 386 /** |
386 * @ingroup iface_zcr_remote_surface_v1 | 387 * @ingroup iface_zcr_remote_surface_v1 |
387 * @struct zcr_remote_surface_v1_interface | 388 * @struct zcr_remote_surface_v1_interface |
388 */ | 389 */ |
389 struct zcr_remote_surface_v1_interface { | 390 struct zcr_remote_surface_v1_interface { |
390 /** | 391 /** |
391 * Destroy the remote_surface | 392 * Destroy the remote_surface |
(...skipping 232 matching lines...) Loading... |
624 * and specifies inner bounds of the shadow. Specifying zero width | 625 * and specifies inner bounds of the shadow. Specifying zero width |
625 * and height will disable the shadow. | 626 * and height will disable the shadow. |
626 * @since 2 | 627 * @since 2 |
627 */ | 628 */ |
628 void (*set_rectangular_surface_shadow)(struct wl_client *client, | 629 void (*set_rectangular_surface_shadow)(struct wl_client *client, |
629 struct wl_resource *resource, | 630 struct wl_resource *resource, |
630 int32_t x, | 631 int32_t x, |
631 int32_t y, | 632 int32_t y, |
632 int32_t width, | 633 int32_t width, |
633 int32_t height); | 634 int32_t height); |
634 /** | 635 » /** |
635 * requests the system ui visibility behavior for the surface | 636 » * requests the system ui visibility behavior for the surface |
636 * | 637 » * |
637 * Requests how the surface will change the visibility of the | 638 » * Requests how the surface will change the visibility of the |
638 * system UI when it is made active. | 639 » * system UI when it is made active. |
639 * @since 3 | 640 » * @since 3 |
640 */ | 641 » */ |
641 void (*set_systemui_visibility)(struct wl_client* client, | 642 » void (*set_systemui_visibility)(struct wl_client *client, |
642 struct wl_resource* resource, | 643 » » » » » struct wl_resource *resource, |
643 uint32_t visibility); | 644 » » » » » uint32_t visibility); |
644 /** | 645 » /** |
645 * set always on top | 646 » * set always on top |
646 * | 647 » * |
647 * Request that surface is made to be always on top. | 648 » * Request that surface is made to be always on top. |
648 * | 649 » * |
649 * This is only a request that the window should be always on top. | 650 » * This is only a request that the window should be always on top. |
650 * The compositor may choose to ignore this request. | 651 » * The compositor may choose to ignore this request. |
651 * @since 4 | 652 » * @since 4 |
652 */ | 653 » */ |
653 void (*set_always_on_top)(struct wl_client* client, | 654 » void (*set_always_on_top)(struct wl_client *client, |
654 struct wl_resource* resource); | 655 » » » » struct wl_resource *resource); |
655 /** | 656 » /** |
656 * unset always on top | 657 » * unset always on top |
657 * | 658 » * |
658 * Request that surface is made to be not always on top. | 659 » * Request that surface is made to be not always on top. |
659 * | 660 » * |
660 * This is only a request that the window should be not always on | 661 » * This is only a request that the window should be not always on |
661 * top. The compositor may choose to ignore this request. | 662 » * top. The compositor may choose to ignore this request. |
662 * @since 4 | 663 » * @since 4 |
663 */ | 664 » */ |
664 void (*unset_always_on_top)(struct wl_client* client, | 665 » void (*unset_always_on_top)(struct wl_client *client, |
665 struct wl_resource* resource); | 666 » » » » struct wl_resource *resource); |
666 /** | 667 » /** |
667 * ack a configure event | 668 » * ack a configure event |
668 * | 669 » * |
669 * When a configure event is received, if a client commits the | 670 » * When a configure event is received, if a client commits the |
670 * surface in response to the configure event, then the client must | 671 » * surface in response to the configure event, then the client must |
671 * make an ack_configure request sometime before the commit | 672 » * make an ack_configure request sometime before the commit |
672 * request, passing along the serial of the configure event. | 673 » * request, passing along the serial of the configure event. |
673 * | 674 » * |
674 * For instance, the compositor might use this information during | 675 » * For instance, the compositor might use this information during |
675 * display configuration to change its coordinate space for | 676 » * display configuration to change its coordinate space for |
676 * set_window_geometry requests only when the client has switched | 677 » * set_window_geometry requests only when the client has switched |
677 * to the new coordinate space. | 678 » * to the new coordinate space. |
678 * | 679 » * |
679 * If the client receives multiple configure events before it can | 680 » * If the client receives multiple configure events before it can |
680 * respond to one, it only has to ack the last configure event. | 681 » * respond to one, it only has to ack the last configure event. |
681 * | 682 » * |
682 * A client is not required to commit immediately after sending an | 683 » * A client is not required to commit immediately after sending an |
683 * ack_configure request - it may even ack_configure several times | 684 » * ack_configure request - it may even ack_configure several times |
684 * before its next surface commit. | 685 » * before its next surface commit. |
685 * | 686 » * |
686 * A client may send multiple ack_configure requests before | 687 » * A client may send multiple ack_configure requests before |
687 * committing, but only the last request sent before a commit | 688 » * committing, but only the last request sent before a commit |
688 * indicates which configure event the client really is responding | 689 » * indicates which configure event the client really is responding |
689 * to. | 690 » * to. |
690 * @param serial the serial from the configure event | 691 » * @param serial the serial from the configure event |
691 * @since 5 | 692 » * @since 5 |
692 */ | 693 » */ |
693 void (*ack_configure)(struct wl_client* client, | 694 » void (*ack_configure)(struct wl_client *client, |
694 struct wl_resource* resource, | 695 » » » struct wl_resource *resource, |
695 uint32_t serial); | 696 » » » uint32_t serial); |
696 /** | 697 » /** |
697 * start an interactive move | 698 » * start an interactive move |
698 * | 699 » * |
699 * Start an interactive, user-driven move of the surface. | 700 » * Start an interactive, user-driven move of the surface. |
700 * | 701 » * |
701 * The compositor responds to this request with a configure event | 702 » * The compositor responds to this request with a configure event |
702 * that transitions to the "moving" state. The client must only | 703 » * that transitions to the "moving" state. The client must only |
703 * initiate motion after acknowledging the state change. The | 704 » * initiate motion after acknowledging the state change. The |
704 * compositor can assume that subsequent set_window_geometry | 705 » * compositor can assume that subsequent set_window_geometry |
705 * requests are position updates until the next state transition is | 706 » * requests are position updates until the next state transition is |
706 * acknowledged. | 707 » * acknowledged. |
707 * | 708 » * |
708 * The compositor may ignore move requests depending on the state | 709 » * The compositor may ignore move requests depending on the state |
709 * of the surface, e.g. fullscreen or maximized. | 710 » * of the surface, e.g. fullscreen or maximized. |
710 * @since 5 | 711 » * @since 5 |
711 */ | 712 » */ |
712 void (*move)(struct wl_client* client, struct wl_resource* resource); | 713 » void (*move)(struct wl_client *client, |
| 714 » » struct wl_resource *resource); |
713 }; | 715 }; |
714 | 716 |
715 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 | 717 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 |
716 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 | 718 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 |
717 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 | 719 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 |
718 | 720 |
719 /** | 721 /** |
720 * @ingroup iface_zcr_remote_surface_v1 | 722 * @ingroup iface_zcr_remote_surface_v1 |
721 */ | 723 */ |
722 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 | 724 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
(...skipping 154 matching lines...) Loading... |
877 /** | 879 /** |
878 * @ingroup iface_zcr_notification_surface_v1 | 880 * @ingroup iface_zcr_notification_surface_v1 |
879 */ | 881 */ |
880 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 | 882 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
881 | 883 |
882 #ifdef __cplusplus | 884 #ifdef __cplusplus |
883 } | 885 } |
884 #endif | 886 #endif |
885 | 887 |
886 #endif | 888 #endif |
OLD | NEW |