| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 */ | 181 */ |
| 182 ZCR_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4, | 182 ZCR_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4, |
| 183 /** | 183 /** |
| 184 * pinned window state | 184 * pinned window state |
| 185 */ | 185 */ |
| 186 ZCR_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5, | 186 ZCR_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5, |
| 187 /** | 187 /** |
| 188 * trusted pinned window state | 188 * trusted pinned window state |
| 189 */ | 189 */ |
| 190 ZCR_REMOTE_SHELL_V1_STATE_TYPE_TRUSTED_PINNED = 6, | 190 ZCR_REMOTE_SHELL_V1_STATE_TYPE_TRUSTED_PINNED = 6, |
| 191 /** |
| 192 * moving window state |
| 193 */ |
| 194 ZCR_REMOTE_SHELL_V1_STATE_TYPE_MOVING = 7, |
| 191 }; | 195 }; |
| 192 #endif /* ZCR_REMOTE_SHELL_V1_STATE_TYPE_ENUM */ | 196 #endif /* ZCR_REMOTE_SHELL_V1_STATE_TYPE_ENUM */ |
| 193 | 197 |
| 194 #ifndef ZCR_REMOTE_SHELL_V1_ERROR_ENUM | 198 #ifndef ZCR_REMOTE_SHELL_V1_ERROR_ENUM |
| 195 #define ZCR_REMOTE_SHELL_V1_ERROR_ENUM | 199 #define ZCR_REMOTE_SHELL_V1_ERROR_ENUM |
| 196 enum zcr_remote_shell_v1_error { | 200 enum zcr_remote_shell_v1_error { |
| 197 /** | 201 /** |
| 198 * given wl_surface has another role | 202 * given wl_surface has another role |
| 199 */ | 203 */ |
| 200 ZCR_REMOTE_SHELL_V1_ERROR_ROLE = 0, | 204 ZCR_REMOTE_SHELL_V1_ERROR_ROLE = 0, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 int32_t transform, | 255 int32_t transform, |
| 252 wl_fixed_t scale_factor, | 256 wl_fixed_t scale_factor, |
| 253 int32_t work_area_inset_left, | 257 int32_t work_area_inset_left, |
| 254 int32_t work_area_inset_top, | 258 int32_t work_area_inset_top, |
| 255 int32_t work_area_inset_right, | 259 int32_t work_area_inset_right, |
| 256 int32_t work_area_inset_bottom, | 260 int32_t work_area_inset_bottom, |
| 257 uint32_t layout_mode); | 261 uint32_t layout_mode); |
| 258 }; | 262 }; |
| 259 | 263 |
| 260 /** | 264 /** |
| 261 * @ingroup zcr_remote_shell_v1_iface | 265 * @ingroup iface_zcr_remote_shell_v1 |
| 262 */ | 266 */ |
| 263 static inline int | 267 static inline int |
| 264 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1
, | 268 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) | 269 const struct zcr_remote_shell_v1_listener *list
ener, void *data) |
| 266 { | 270 { |
| 267 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, | 271 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, |
| 268 (void (**)(void)) listener, data); | 272 (void (**)(void)) listener, data); |
| 269 } | 273 } |
| 270 | 274 |
| 271 #define ZCR_REMOTE_SHELL_V1_DESTROY» 0 | 275 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 |
| 272 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE» 1 | 276 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 |
| 273 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE» 2 | 277 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 |
| 274 | 278 |
| 275 /** | 279 /** |
| 276 * @ingroup iface_zcr_remote_shell_v1 | 280 * @ingroup iface_zcr_remote_shell_v1 |
| 277 */ | 281 */ |
| 278 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION» 1 | 282 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
| 279 /** | 283 /** |
| 280 * @ingroup iface_zcr_remote_shell_v1 | 284 * @ingroup iface_zcr_remote_shell_v1 |
| 281 */ | 285 */ |
| 282 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION» 1 | 286 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 |
| 287 |
| 283 /** | 288 /** |
| 284 * @ingroup iface_zcr_remote_shell_v1 | 289 * @ingroup iface_zcr_remote_shell_v1 |
| 285 */ | 290 */ |
| 286 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION» 1 | 291 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
| 292 /** |
| 293 * @ingroup iface_zcr_remote_shell_v1 |
| 294 */ |
| 295 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
| 296 /** |
| 297 * @ingroup iface_zcr_remote_shell_v1 |
| 298 */ |
| 299 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1 |
| 287 | 300 |
| 288 /** @ingroup iface_zcr_remote_shell_v1 */ | 301 /** @ingroup iface_zcr_remote_shell_v1 */ |
| 289 static inline void | 302 static inline void |
| 290 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v
1, void *user_data) | 303 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v
1, void *user_data) |
| 291 { | 304 { |
| 292 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat
a); | 305 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat
a); |
| 293 } | 306 } |
| 294 | 307 |
| 295 /** @ingroup iface_zcr_remote_shell_v1 */ | 308 /** @ingroup iface_zcr_remote_shell_v1 */ |
| 296 static inline void * | 309 static inline void * |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 * | 391 * |
| 379 * This is only a request that the user intends to close your | 392 * This is only a request that the user intends to close your |
| 380 * window. The client may choose to ignore this request, or show a | 393 * window. The client may choose to ignore this request, or show a |
| 381 * dialog to ask the user to save their data... | 394 * dialog to ask the user to save their data... |
| 382 */ | 395 */ |
| 383 void (*close)(void *data, | 396 void (*close)(void *data, |
| 384 struct zcr_remote_surface_v1 *zcr_remote_surface_v1); | 397 struct zcr_remote_surface_v1 *zcr_remote_surface_v1); |
| 385 /** | 398 /** |
| 386 * surface state type changed | 399 * surface state type changed |
| 387 * | 400 * |
| 388 » * The state_type_changed event is sent by the compositor when | 401 » * [Deprecated] The state_type_changed event is sent by the |
| 389 » * the surface state changed. | 402 » * compositor when the surface state changed. |
| 390 * | 403 * |
| 391 * This is an event to notify that the window state changed in | 404 * This is an event to notify that the window state changed in |
| 392 * compositor. The state change may be triggered by a client's | 405 * compositor. The state change may be triggered by a client's |
| 393 * request, or some user action directly handled by the compositor. | 406 * request, or some user action directly handled by the compositor. |
| 394 * The client may choose to ignore this event. | 407 * The client may choose to ignore this event. |
| 395 */ | 408 */ |
| 396 void (*state_type_changed)(void *data, | 409 void (*state_type_changed)(void *data, |
| 397 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 410 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 398 uint32_t state_type); | 411 uint32_t state_type); |
| 399 /** | 412 /** |
| 400 * suggest a surface change | 413 * suggest a surface change |
| 401 * | 414 * |
| 402 * The configure event asks the client to change surface state. | 415 * The configure event asks the client to change surface state. |
| 403 * | 416 * |
| 404 * The origin arguments specify the position, in the compositor | 417 * The origin arguments specify the position, in the compositor |
| 405 * coordinate space, of the virtual display used by the client to | 418 * coordinate space, of the virtual display used by the client to |
| 406 * simulate multiple displays. The client must offset window | 419 * simulate multiple displays. The client must offset window |
| 407 * positions in set_window_geometry requests by this origin in | 420 * positions in set_window_geometry requests by this origin in |
| 408 * order to convert between coordinate spaces. | 421 * order to convert between coordinate spaces. |
| 409 * | 422 * |
| 423 * The states listed in the event are state_type values, and might |
| 424 * change due to a client request or an event directly handled by |
| 425 * the compositor. |
| 426 * |
| 410 * Clients should arrange their surface for the new state, and then | 427 * Clients should arrange their surface for the new state, and then |
| 411 * send an ack_configure request with the serial sent in this | 428 * send an ack_configure request with the serial sent in this |
| 412 * configure event at some point before committing the new surface. | 429 * configure event at some point before committing the new surface. |
| 413 * | 430 * |
| 414 * If the client receives multiple configure events before it can | 431 * If the client receives multiple configure events before it can |
| 415 * respond to one, it is free to discard all but the last event it | 432 * respond to one, it is free to discard all but the last event it |
| 416 * received. | 433 * received. |
| 417 * @since 3 | 434 * @since 3 |
| 418 */ | 435 */ |
| 419 void (*configure)(void *data, | 436 void (*configure)(void *data, |
| 420 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, | 437 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, |
| 421 int32_t origin_x, | 438 int32_t origin_x, |
| 422 int32_t origin_y, | 439 int32_t origin_y, |
| 440 struct wl_array *states, |
| 423 uint32_t serial); | 441 uint32_t serial); |
| 424 }; | 442 }; |
| 425 | 443 |
| 426 /** | 444 /** |
| 427 * @ingroup zcr_remote_surface_v1_iface | 445 * @ingroup iface_zcr_remote_surface_v1 |
| 428 */ | 446 */ |
| 429 static inline int | 447 static inline int |
| 430 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 448 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 431 const struct zcr_remote_surface_v1_listener *
listener, void *data) | 449 const struct zcr_remote_surface_v1_listener *
listener, void *data) |
| 432 { | 450 { |
| 433 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, | 451 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, |
| 434 (void (**)(void)) listener, data); | 452 (void (**)(void)) listener, data); |
| 435 } | 453 } |
| 436 | 454 |
| 437 #define ZCR_REMOTE_SURFACE_V1_DESTROY» 0 | 455 #define ZCR_REMOTE_SURFACE_V1_DESTROY 0 |
| 438 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID» 1 | 456 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID 1 |
| 439 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY» 2 | 457 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY 2 |
| 440 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE»3 | 458 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE 3 |
| 441 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW» 4 | 459 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 4 |
| 442 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY»5 | 460 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 5 |
| 443 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE»6 | 461 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE 6 |
| 444 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET» 7 | 462 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET 7 |
| 445 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE» 8 | 463 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE 8 |
| 446 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE» 9 | 464 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 |
| 447 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE» 10 | 465 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 |
| 448 #define ZCR_REMOTE_SURFACE_V1_RESTORE» 11 | 466 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 |
| 449 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN» 12 | 467 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 |
| 450 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN» 13 | 468 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 |
| 451 #define ZCR_REMOTE_SURFACE_V1_PIN» 14 | 469 #define ZCR_REMOTE_SURFACE_V1_PIN 14 |
| 452 #define ZCR_REMOTE_SURFACE_V1_UNPIN» 15 | 470 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 |
| 453 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL» 16 | 471 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 |
| 454 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL» 17 | 472 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 |
| 455 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW» 18 | 473 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 18 |
| 456 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE» 19 | 474 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 19 |
| 457 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING» 20 | 475 #define ZCR_REMOTE_SURFACE_V1_MOVE 20 |
| 458 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING» 21 | |
| 459 | 476 |
| 460 /** | 477 /** |
| 461 * @ingroup iface_zcr_remote_surface_v1 | 478 * @ingroup iface_zcr_remote_surface_v1 |
| 462 */ | 479 */ |
| 463 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION» 1 | 480 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| 464 /** | 481 /** |
| 465 * @ingroup iface_zcr_remote_surface_v1 | 482 * @ingroup iface_zcr_remote_surface_v1 |
| 466 */ | 483 */ |
| 467 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION» 1 | 484 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
| 468 /** | 485 /** |
| 469 * @ingroup iface_zcr_remote_surface_v1 | 486 * @ingroup iface_zcr_remote_surface_v1 |
| 470 */ | 487 */ |
| 471 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION»1 | 488 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 |
| 489 |
| 472 /** | 490 /** |
| 473 * @ingroup iface_zcr_remote_surface_v1 | 491 * @ingroup iface_zcr_remote_surface_v1 |
| 474 */ | 492 */ |
| 475 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION» 1 | 493 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 476 /** | 494 /** |
| 477 * @ingroup iface_zcr_remote_surface_v1 | 495 * @ingroup iface_zcr_remote_surface_v1 |
| 478 */ | 496 */ |
| 479 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION» 1 | 497 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 480 /** | 498 /** |
| 481 * @ingroup iface_zcr_remote_surface_v1 | 499 * @ingroup iface_zcr_remote_surface_v1 |
| 482 */ | 500 */ |
| 483 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE
RSION» 1 | 501 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1 |
| 484 /** | 502 /** |
| 485 * @ingroup iface_zcr_remote_surface_v1 | 503 * @ingroup iface_zcr_remote_surface_v1 |
| 486 */ | 504 */ |
| 487 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION» 1 | 505 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1 |
| 488 /** | 506 /** |
| 489 * @ingroup iface_zcr_remote_surface_v1 | 507 * @ingroup iface_zcr_remote_surface_v1 |
| 490 */ | 508 */ |
| 491 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION» 1 | 509 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1 |
| 492 /** | 510 /** |
| 493 * @ingroup iface_zcr_remote_surface_v1 | 511 * @ingroup iface_zcr_remote_surface_v1 |
| 494 */ | 512 */ |
| 495 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION» 1 | 513 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE
RSION 1 |
| 496 /** | 514 /** |
| 497 * @ingroup iface_zcr_remote_surface_v1 | 515 * @ingroup iface_zcr_remote_surface_v1 |
| 498 */ | 516 */ |
| 499 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION» 1 | 517 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1 |
| 500 /** | 518 /** |
| 501 * @ingroup iface_zcr_remote_surface_v1 | 519 * @ingroup iface_zcr_remote_surface_v1 |
| 502 */ | 520 */ |
| 503 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION» 1 | 521 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1 |
| 504 /** | 522 /** |
| 505 * @ingroup iface_zcr_remote_surface_v1 | 523 * @ingroup iface_zcr_remote_surface_v1 |
| 506 */ | 524 */ |
| 507 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION» 1 | 525 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1 |
| 508 /** | 526 /** |
| 509 * @ingroup iface_zcr_remote_surface_v1 | 527 * @ingroup iface_zcr_remote_surface_v1 |
| 510 */ | 528 */ |
| 511 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION» 1 | 529 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1 |
| 512 /** | 530 /** |
| 513 * @ingroup iface_zcr_remote_surface_v1 | 531 * @ingroup iface_zcr_remote_surface_v1 |
| 514 */ | 532 */ |
| 515 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION» 1 | 533 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1 |
| 516 /** | 534 /** |
| 517 * @ingroup iface_zcr_remote_surface_v1 | 535 * @ingroup iface_zcr_remote_surface_v1 |
| 518 */ | 536 */ |
| 519 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION»1 | 537 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1 |
| 520 /** | 538 /** |
| 521 * @ingroup iface_zcr_remote_surface_v1 | 539 * @ingroup iface_zcr_remote_surface_v1 |
| 522 */ | 540 */ |
| 523 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION» 1 | 541 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1 |
| 524 /** | 542 /** |
| 525 * @ingroup iface_zcr_remote_surface_v1 | 543 * @ingroup iface_zcr_remote_surface_v1 |
| 526 */ | 544 */ |
| 527 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION» 1 | 545 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1 |
| 528 /** | 546 /** |
| 529 * @ingroup iface_zcr_remote_surface_v1 | 547 * @ingroup iface_zcr_remote_surface_v1 |
| 530 */ | 548 */ |
| 531 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION» 1 | 549 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1 |
| 532 /** | 550 /** |
| 533 * @ingroup iface_zcr_remote_surface_v1 | 551 * @ingroup iface_zcr_remote_surface_v1 |
| 534 */ | 552 */ |
| 535 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION»
2 | 553 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1 |
| 536 /** | 554 /** |
| 537 * @ingroup iface_zcr_remote_surface_v1 | 555 * @ingroup iface_zcr_remote_surface_v1 |
| 538 */ | 556 */ |
| 539 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION» 3 | 557 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 540 /** | 558 /** |
| 541 * @ingroup iface_zcr_remote_surface_v1 | 559 * @ingroup iface_zcr_remote_surface_v1 |
| 542 */ | 560 */ |
| 543 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION» 3 | 561 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 544 /** | 562 /** |
| 545 * @ingroup iface_zcr_remote_surface_v1 | 563 * @ingroup iface_zcr_remote_surface_v1 |
| 546 */ | 564 */ |
| 547 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION» 3 | 565 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 |
| 566 /** |
| 567 * @ingroup iface_zcr_remote_surface_v1 |
| 568 */ |
| 569 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 |
| 570 /** |
| 571 * @ingroup iface_zcr_remote_surface_v1 |
| 572 */ |
| 573 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 |
| 548 | 574 |
| 549 /** @ingroup iface_zcr_remote_surface_v1 */ | 575 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 550 static inline void | 576 static inline void |
| 551 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) | 577 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) |
| 552 { | 578 { |
| 553 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); | 579 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); |
| 554 } | 580 } |
| 555 | 581 |
| 556 /** @ingroup iface_zcr_remote_surface_v1 */ | 582 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 557 static inline void * | 583 static inline void * |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 static inline void | 930 static inline void |
| 905 zcr_remote_surface_v1_ack_configure(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, uint32_t serial) | 931 zcr_remote_surface_v1_ack_configure(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, uint32_t serial) |
| 906 { | 932 { |
| 907 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 933 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 908 ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE, serial); | 934 ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE, serial); |
| 909 } | 935 } |
| 910 | 936 |
| 911 /** | 937 /** |
| 912 * @ingroup iface_zcr_remote_surface_v1 | 938 * @ingroup iface_zcr_remote_surface_v1 |
| 913 * | 939 * |
| 914 * Notifies the compositor when an interactive, user-driven move of the | 940 * Start an interactive, user-driven move of the surface. |
| 915 * surface starts. The compositor may assume that subsequent | 941 * |
| 916 * set_window_geometry requests are position updates until it receives a | 942 * The compositor responds to this request with a configure event that |
| 917 * unset_moving request. | 943 * transitions to the "moving" state. The client must only initiate motion |
| 944 * after acknowledging the state change. The compositor can assume that |
| 945 * subsequent set_window_geometry requests are position updates until the |
| 946 * next state transition is acknowledged. |
| 947 * |
| 948 * The compositor may ignore move requests depending on the state of the |
| 949 * surface, e.g. fullscreen or maximized. |
| 918 */ | 950 */ |
| 919 static inline void | 951 static inline void |
| 920 zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surfac
e_v1) | 952 zcr_remote_surface_v1_move(struct zcr_remote_surface_v1 *zcr_remote_surface_v1) |
| 921 { | 953 { |
| 922 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 954 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 923 » » » ZCR_REMOTE_SURFACE_V1_SET_MOVING); | 955 » » » ZCR_REMOTE_SURFACE_V1_MOVE); |
| 924 } | 956 } |
| 925 | 957 |
| 926 /** | 958 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0 |
| 927 * @ingroup iface_zcr_remote_surface_v1 | |
| 928 * | |
| 929 * Notifies the compositor when an interactive, user-driven move of the | |
| 930 * surface stops. The compositor may choose to stop the move regardless | |
| 931 * of this request. | |
| 932 */ | |
| 933 static inline void | |
| 934 zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1) | |
| 935 { | |
| 936 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | |
| 937 » » » ZCR_REMOTE_SURFACE_V1_UNSET_MOVING); | |
| 938 } | |
| 939 | 959 |
| 940 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0 | |
| 941 | 960 |
| 942 /** | 961 /** |
| 943 * @ingroup iface_zcr_notification_surface_v1 | 962 * @ingroup iface_zcr_notification_surface_v1 |
| 944 */ | 963 */ |
| 945 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION» 1 | 964 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 946 | 965 |
| 947 /** @ingroup iface_zcr_notification_surface_v1 */ | 966 /** @ingroup iface_zcr_notification_surface_v1 */ |
| 948 static inline void | 967 static inline void |
| 949 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc
r_notification_surface_v1, void *user_data) | 968 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc
r_notification_surface_v1, void *user_data) |
| 950 { | 969 { |
| 951 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1,
user_data); | 970 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1,
user_data); |
| 952 } | 971 } |
| 953 | 972 |
| 954 /** @ingroup iface_zcr_notification_surface_v1 */ | 973 /** @ingroup iface_zcr_notification_surface_v1 */ |
| 955 static inline void * | 974 static inline void * |
| (...skipping 20 matching lines...) Expand all Loading... |
| 976 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 995 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
| 977 | 996 |
| 978 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 997 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
| 979 } | 998 } |
| 980 | 999 |
| 981 #ifdef __cplusplus | 1000 #ifdef __cplusplus |
| 982 } | 1001 } |
| 983 #endif | 1002 #endif |
| 984 | 1003 |
| 985 #endif | 1004 #endif |
| OLD | NEW |