Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h

Issue 2664403004: Use pixel coordinates for shadow underlay bounds (Closed)
Patch Set: addressed comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 int32_t transform, 251 int32_t transform,
252 wl_fixed_t scale_factor, 252 wl_fixed_t scale_factor,
253 int32_t work_area_inset_left, 253 int32_t work_area_inset_left,
254 int32_t work_area_inset_top, 254 int32_t work_area_inset_top,
255 int32_t work_area_inset_right, 255 int32_t work_area_inset_right,
256 int32_t work_area_inset_bottom, 256 int32_t work_area_inset_bottom,
257 uint32_t layout_mode); 257 uint32_t layout_mode);
258 }; 258 };
259 259
260 /** 260 /**
261 * @ingroup iface_zcr_remote_shell_v1 261 * @ingroup zcr_remote_shell_v1_iface
262 */ 262 */
263 static inline int 263 static inline int
264 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1 , 264 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1 ,
265 const struct zcr_remote_shell_v1_listener *list ener, void *data) 265 const struct zcr_remote_shell_v1_listener *list ener, void *data)
266 { 266 {
267 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, 267 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1,
268 (void (**)(void)) listener, data); 268 (void (**)(void)) listener, data);
269 } 269 }
270 270
271 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 271 #define ZCR_REMOTE_SHELL_V1_DESTROY» 0
272 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 272 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE» 1
273 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 273 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE» 2
274 274
275 /** 275 /**
276 * @ingroup iface_zcr_remote_shell_v1 276 * @ingroup iface_zcr_remote_shell_v1
277 */ 277 */
278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 278 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION» 1
279 /** 279 /**
280 * @ingroup iface_zcr_remote_shell_v1 280 * @ingroup iface_zcr_remote_shell_v1
281 */ 281 */
282 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 282 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION» 1
283
284 /** 283 /**
285 * @ingroup iface_zcr_remote_shell_v1 284 * @ingroup iface_zcr_remote_shell_v1
286 */ 285 */
287 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 286 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION» 1
288 /**
289 * @ingroup iface_zcr_remote_shell_v1
290 */
291 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
292 /**
293 * @ingroup iface_zcr_remote_shell_v1
294 */
295 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1
296 287
297 /** @ingroup iface_zcr_remote_shell_v1 */ 288 /** @ingroup iface_zcr_remote_shell_v1 */
298 static inline void 289 static inline void
299 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v 1, void *user_data) 290 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v 1, void *user_data)
300 { 291 {
301 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat a); 292 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat a);
302 } 293 }
303 294
304 /** @ingroup iface_zcr_remote_shell_v1 */ 295 /** @ingroup iface_zcr_remote_shell_v1 */
305 static inline void * 296 static inline void *
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 * positions in set_window_geometry requests by this origin in 407 * positions in set_window_geometry requests by this origin in
417 * order to convert between coordinate spaces. 408 * order to convert between coordinate spaces.
418 * 409 *
419 * Clients should arrange their surface for the new state, and then 410 * Clients should arrange their surface for the new state, and then
420 * send an ack_configure request with the serial sent in this 411 * send an ack_configure request with the serial sent in this
421 * configure event at some point before committing the new surface. 412 * configure event at some point before committing the new surface.
422 * 413 *
423 * If the client receives multiple configure events before it can 414 * If the client receives multiple configure events before it can
424 * respond to one, it is free to discard all but the last event it 415 * respond to one, it is free to discard all but the last event it
425 * received. 416 * received.
426 » * @since 2 417 » * @since 3
427 */ 418 */
428 void (*configure)(void *data, 419 void (*configure)(void *data,
429 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, 420 struct zcr_remote_surface_v1 *zcr_remote_surface_v1,
430 int32_t origin_x, 421 int32_t origin_x,
431 int32_t origin_y, 422 int32_t origin_y,
432 uint32_t serial); 423 uint32_t serial);
433 }; 424 };
434 425
435 /** 426 /**
436 * @ingroup iface_zcr_remote_surface_v1 427 * @ingroup zcr_remote_surface_v1_iface
437 */ 428 */
438 static inline int 429 static inline int
439 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1, 430 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1,
440 const struct zcr_remote_surface_v1_listener * listener, void *data) 431 const struct zcr_remote_surface_v1_listener * listener, void *data)
441 { 432 {
442 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, 433 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1,
443 (void (**)(void)) listener, data); 434 (void (**)(void)) listener, data);
444 } 435 }
445 436
446 #define ZCR_REMOTE_SURFACE_V1_DESTROY 0 437 #define ZCR_REMOTE_SURFACE_V1_DESTROY» 0
447 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID 1 438 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID» 1
448 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY 2 439 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY» 2
449 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE 3 440 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE»3
450 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 4 441 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW» 4
451 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 5 442 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY»5
452 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE 6 443 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE»6
453 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET 7 444 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET» 7
454 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE 8 445 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE» 8
455 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 446 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE» 9
456 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 447 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE» 10
457 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 448 #define ZCR_REMOTE_SURFACE_V1_RESTORE» 11
458 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 449 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN» 12
459 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 450 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN» 13
460 #define ZCR_REMOTE_SURFACE_V1_PIN 14 451 #define ZCR_REMOTE_SURFACE_V1_PIN» 14
461 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 452 #define ZCR_REMOTE_SURFACE_V1_UNPIN» 15
462 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 453 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL» 16
463 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 454 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL» 17
464 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 18 455 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW» 18
465 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING 19 456 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE» 19
466 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING 20 457 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING» 20
458 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING» 21
467 459
468 /** 460 /**
469 * @ingroup iface_zcr_remote_surface_v1 461 * @ingroup iface_zcr_remote_surface_v1
470 */ 462 */
471 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 463 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION» 1
472 /** 464 /**
473 * @ingroup iface_zcr_remote_surface_v1 465 * @ingroup iface_zcr_remote_surface_v1
474 */ 466 */
475 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 467 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION» 1
476 /** 468 /**
477 * @ingroup iface_zcr_remote_surface_v1 469 * @ingroup iface_zcr_remote_surface_v1
478 */ 470 */
479 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 2 471 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION»1
480
481 /** 472 /**
482 * @ingroup iface_zcr_remote_surface_v1 473 * @ingroup iface_zcr_remote_surface_v1
483 */ 474 */
484 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 475 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION» 1
485 /** 476 /**
486 * @ingroup iface_zcr_remote_surface_v1 477 * @ingroup iface_zcr_remote_surface_v1
487 */ 478 */
488 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 479 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION» 1
489 /** 480 /**
490 * @ingroup iface_zcr_remote_surface_v1 481 * @ingroup iface_zcr_remote_surface_v1
491 */ 482 */
492 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1 483 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE RSION» 1
493 /** 484 /**
494 * @ingroup iface_zcr_remote_surface_v1 485 * @ingroup iface_zcr_remote_surface_v1
495 */ 486 */
496 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1 487 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION» 1
497 /** 488 /**
498 * @ingroup iface_zcr_remote_surface_v1 489 * @ingroup iface_zcr_remote_surface_v1
499 */ 490 */
500 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1 491 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION» 1
501 /** 492 /**
502 * @ingroup iface_zcr_remote_surface_v1 493 * @ingroup iface_zcr_remote_surface_v1
503 */ 494 */
504 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE RSION 1 495 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION» 1
505 /** 496 /**
506 * @ingroup iface_zcr_remote_surface_v1 497 * @ingroup iface_zcr_remote_surface_v1
507 */ 498 */
508 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1 499 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION» 1
509 /** 500 /**
510 * @ingroup iface_zcr_remote_surface_v1 501 * @ingroup iface_zcr_remote_surface_v1
511 */ 502 */
512 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1 503 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION» 1
513 /** 504 /**
514 * @ingroup iface_zcr_remote_surface_v1 505 * @ingroup iface_zcr_remote_surface_v1
515 */ 506 */
516 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1 507 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION» 1
517 /** 508 /**
518 * @ingroup iface_zcr_remote_surface_v1 509 * @ingroup iface_zcr_remote_surface_v1
519 */ 510 */
520 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1 511 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION» 1
521 /** 512 /**
522 * @ingroup iface_zcr_remote_surface_v1 513 * @ingroup iface_zcr_remote_surface_v1
523 */ 514 */
524 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1 515 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION» 1
525 /** 516 /**
526 * @ingroup iface_zcr_remote_surface_v1 517 * @ingroup iface_zcr_remote_surface_v1
527 */ 518 */
528 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1 519 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION»1
529 /** 520 /**
530 * @ingroup iface_zcr_remote_surface_v1 521 * @ingroup iface_zcr_remote_surface_v1
531 */ 522 */
532 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1 523 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION» 1
533 /** 524 /**
534 * @ingroup iface_zcr_remote_surface_v1 525 * @ingroup iface_zcr_remote_surface_v1
535 */ 526 */
536 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1 527 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION» 1
537 /** 528 /**
538 * @ingroup iface_zcr_remote_surface_v1 529 * @ingroup iface_zcr_remote_surface_v1
539 */ 530 */
540 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1 531 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION» 1
541 /** 532 /**
542 * @ingroup iface_zcr_remote_surface_v1 533 * @ingroup iface_zcr_remote_surface_v1
543 */ 534 */
544 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1 535 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION» 2
545 /** 536 /**
546 * @ingroup iface_zcr_remote_surface_v1 537 * @ingroup iface_zcr_remote_surface_v1
547 */ 538 */
548 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1 539 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION» 3
549 /** 540 /**
550 * @ingroup iface_zcr_remote_surface_v1 541 * @ingroup iface_zcr_remote_surface_v1
551 */ 542 */
552 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 543 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION» 3
553 /** 544 /**
554 * @ingroup iface_zcr_remote_surface_v1 545 * @ingroup iface_zcr_remote_surface_v1
555 */ 546 */
556 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 2 547 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION» 3
557 /**
558 * @ingroup iface_zcr_remote_surface_v1
559 */
560 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION 2
561 /**
562 * @ingroup iface_zcr_remote_surface_v1
563 */
564 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2
565 548
566 /** @ingroup iface_zcr_remote_surface_v1 */ 549 /** @ingroup iface_zcr_remote_surface_v1 */
567 static inline void 550 static inline void
568 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data) 551 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data)
569 { 552 {
570 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata); 553 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata);
571 } 554 }
572 555
573 /** @ingroup iface_zcr_remote_surface_v1 */ 556 /** @ingroup iface_zcr_remote_surface_v1 */
574 static inline void * 557 static inline void *
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 static inline void 631 static inline void
649 zcr_remote_surface_v1_set_scale(struct zcr_remote_surface_v1 *zcr_remote_surface _v1, wl_fixed_t scale) 632 zcr_remote_surface_v1_set_scale(struct zcr_remote_surface_v1 *zcr_remote_surface _v1, wl_fixed_t scale)
650 { 633 {
651 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 634 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
652 ZCR_REMOTE_SURFACE_V1_SET_SCALE, scale); 635 ZCR_REMOTE_SURFACE_V1_SET_SCALE, scale);
653 } 636 }
654 637
655 /** 638 /**
656 * @ingroup iface_zcr_remote_surface_v1 639 * @ingroup iface_zcr_remote_surface_v1
657 * 640 *
658 * Request that surface needs a rectangular shadow. 641 * [Deprecated] Request that surface needs a rectangular shadow.
659 * 642 *
660 * This is only a request that the surface should have a rectangular 643 * This is only a request that the surface should have a rectangular
661 * shadow. The compositor may choose to ignore this request. 644 * shadow. The compositor may choose to ignore this request.
662 * 645 *
663 * The arguments are given in the output coordinate space and specifies 646 * The arguments are given in the output coordinate space and specifies
664 * the inner bounds of the shadow. 647 * the inner bounds of the shadow.
665 * 648 *
666 * The arguments are given in the output coordinate space. 649 * The arguments are given in the output coordinate space.
667 * Specifying zero width and height will disable the shadow. 650 * Specifying zero width and height will disable the shadow.
668 */ 651 */
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 static inline void 855 static inline void
873 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot e_surface_v1) 856 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot e_surface_v1)
874 { 857 {
875 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 858 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
876 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); 859 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
877 } 860 }
878 861
879 /** 862 /**
880 * @ingroup iface_zcr_remote_surface_v1 863 * @ingroup iface_zcr_remote_surface_v1
881 * 864 *
865 * Request that surface needs a rectangular shadow.
866 *
867 * This is only a request that the surface should have a rectangular
868 * shadow. The compositor may choose to ignore this request.
869 *
870 * The arguments are given in the remote surface coordinate space and
871 * specifies inner bounds of the shadow. Specifying zero width and height
872 * will disable the shadow.
873 */
874 static inline void
875 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)
876 {
877 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
878 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height);
879 }
880
881 /**
882 * @ingroup iface_zcr_remote_surface_v1
883 *
882 * When a configure event is received, if a client commits the 884 * When a configure event is received, if a client commits the
883 * surface in response to the configure event, then the client 885 * surface in response to the configure event, then the client
884 * must make an ack_configure request sometime before the commit 886 * must make an ack_configure request sometime before the commit
885 * request, passing along the serial of the configure event. 887 * request, passing along the serial of the configure event.
886 * 888 *
887 * For instance, the compositor might use this information during display 889 * For instance, the compositor might use this information during display
888 * configuration to change its coordinate space for set_window_geometry 890 * configuration to change its coordinate space for set_window_geometry
889 * requests only when the client has switched to the new coordinate space. 891 * requests only when the client has switched to the new coordinate space.
890 * 892 *
891 * If the client receives multiple configure events before it 893 * If the client receives multiple configure events before it
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 * surface stops. The compositor may choose to stop the move regardless 930 * surface stops. The compositor may choose to stop the move regardless
929 * of this request. 931 * of this request.
930 */ 932 */
931 static inline void 933 static inline void
932 zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1) 934 zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1)
933 { 935 {
934 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 936 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
935 ZCR_REMOTE_SURFACE_V1_UNSET_MOVING); 937 ZCR_REMOTE_SURFACE_V1_UNSET_MOVING);
936 } 938 }
937 939
938 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0 940 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY» 0
939
940 941
941 /** 942 /**
942 * @ingroup iface_zcr_notification_surface_v1 943 * @ingroup iface_zcr_notification_surface_v1
943 */ 944 */
944 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 945 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION» 1
945 946
946 /** @ingroup iface_zcr_notification_surface_v1 */ 947 /** @ingroup iface_zcr_notification_surface_v1 */
947 static inline void 948 static inline void
948 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc r_notification_surface_v1, void *user_data) 949 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc r_notification_surface_v1, void *user_data)
949 { 950 {
950 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1, user_data); 951 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1, user_data);
951 } 952 }
952 953
953 /** @ingroup iface_zcr_notification_surface_v1 */ 954 /** @ingroup iface_zcr_notification_surface_v1 */
954 static inline void * 955 static inline void *
(...skipping 20 matching lines...) Expand all
975 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); 976 ZCR_NOTIFICATION_SURFACE_V1_DESTROY);
976 977
977 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); 978 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1);
978 } 979 }
979 980
980 #ifdef __cplusplus 981 #ifdef __cplusplus
981 } 982 }
982 #endif 983 #endif
983 984
984 #endif 985 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698