| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 * | 239 * |
| 240 * Notifies client that the activated surface changed. | 240 * Notifies client that the activated surface changed. |
| 241 */ | 241 */ |
| 242 void (*activated)(void *data, | 242 void (*activated)(void *data, |
| 243 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, | 243 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, |
| 244 struct wl_surface *gained_active, | 244 struct wl_surface *gained_active, |
| 245 struct wl_surface *lost_active); | 245 struct wl_surface *lost_active); |
| 246 /** | 246 /** |
| 247 * suggests a re-configuration of remote shell | 247 * suggests a re-configuration of remote shell |
| 248 * | 248 * |
| 249 » * Suggests a re-configuration of remote shell. | 249 » * [Deprecated] Suggests a re-configuration of remote shell. |
| 250 */ | 250 */ |
| 251 void (*configuration_changed)(void *data, | 251 void (*configuration_changed)(void *data, |
| 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 /** |
| 263 * area of remote shell |
| 264 * |
| 265 * Defines an area of the remote shell used for layout. Each |
| 266 * series of "workspace" events must be terminated by a "configure" |
| 267 * event. |
| 268 */ |
| 269 void (*workspace)(void *data, |
| 270 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, |
| 271 uint32_t id_hi, |
| 272 uint32_t id_lo, |
| 273 int32_t x, |
| 274 int32_t y, |
| 275 int32_t width, |
| 276 int32_t height, |
| 277 int32_t inset_left, |
| 278 int32_t inset_top, |
| 279 int32_t inset_right, |
| 280 int32_t inset_bottom); |
| 281 /** |
| 282 * suggests configuration of remote shell |
| 283 * |
| 284 * Suggests a new configuration of the remote shell. Preceded by |
| 285 * a series of "workspace" events. |
| 286 */ |
| 287 void (*configure)(void *data, |
| 288 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, |
| 289 uint32_t primary_id_hi, |
| 290 uint32_t primary_id_lo, |
| 291 int32_t transform, |
| 292 wl_fixed_t scale_factor, |
| 293 uint32_t layout_mode); |
| 262 }; | 294 }; |
| 263 | 295 |
| 264 /** | 296 /** |
| 265 * @ingroup iface_zcr_remote_shell_v1 | 297 * @ingroup iface_zcr_remote_shell_v1 |
| 266 */ | 298 */ |
| 267 static inline int | 299 static inline int |
| 268 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
, |
| 269 const struct zcr_remote_shell_v1_listener *list
ener, void *data) | 301 const struct zcr_remote_shell_v1_listener *list
ener, void *data) |
| 270 { | 302 { |
| 271 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, |
| 272 (void (**)(void)) listener, data); | 304 (void (**)(void)) listener, data); |
| 273 } | 305 } |
| 274 | 306 |
| 275 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 | 307 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 |
| 276 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 | 308 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 |
| 277 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 | 309 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 |
| 278 | 310 |
| 279 /** | 311 /** |
| 280 * @ingroup iface_zcr_remote_shell_v1 | 312 * @ingroup iface_zcr_remote_shell_v1 |
| 281 */ | 313 */ |
| 282 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 | 314 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
| 283 /** | 315 /** |
| 284 * @ingroup iface_zcr_remote_shell_v1 | 316 * @ingroup iface_zcr_remote_shell_v1 |
| 285 */ | 317 */ |
| 286 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 | 318 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 |
| 319 /** |
| 320 * @ingroup iface_zcr_remote_shell_v1 |
| 321 */ |
| 322 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 1 |
| 323 /** |
| 324 * @ingroup iface_zcr_remote_shell_v1 |
| 325 */ |
| 326 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 |
| 287 | 327 |
| 288 /** | 328 /** |
| 289 * @ingroup iface_zcr_remote_shell_v1 | 329 * @ingroup iface_zcr_remote_shell_v1 |
| 290 */ | 330 */ |
| 291 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 | 331 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
| 292 /** | 332 /** |
| 293 * @ingroup iface_zcr_remote_shell_v1 | 333 * @ingroup iface_zcr_remote_shell_v1 |
| 294 */ | 334 */ |
| 295 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 | 335 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
| 296 /** | 336 /** |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 * The client may choose to ignore this event. | 447 * The client may choose to ignore this event. |
| 408 */ | 448 */ |
| 409 void (*state_type_changed)(void *data, | 449 void (*state_type_changed)(void *data, |
| 410 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 450 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 411 uint32_t state_type); | 451 uint32_t state_type); |
| 412 /** | 452 /** |
| 413 * suggest a surface change | 453 * suggest a surface change |
| 414 * | 454 * |
| 415 * The configure event asks the client to change surface state. | 455 * The configure event asks the client to change surface state. |
| 416 * | 456 * |
| 417 » * The origin arguments specify the position, in the compositor | 457 » * The client must apply the origin offset to window positions in |
| 418 » * coordinate space, of the virtual display used by the client to | 458 » * set_window_geometry requests. |
| 419 » * simulate multiple displays. The client must offset window | |
| 420 » * positions in set_window_geometry requests by this origin in | |
| 421 » * order to convert between coordinate spaces. | |
| 422 * | 459 * |
| 423 * The states listed in the event are state_type values, and might | 460 * 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 | 461 * change due to a client request or an event directly handled by |
| 425 * the compositor. | 462 * the compositor. |
| 426 * | 463 * |
| 427 * Clients should arrange their surface for the new state, and then | 464 * Clients should arrange their surface for the new state, and then |
| 428 * send an ack_configure request with the serial sent in this | 465 * send an ack_configure request with the serial sent in this |
| 429 * configure event at some point before committing the new surface. | 466 * configure event at some point before committing the new surface. |
| 430 * | 467 * |
| 431 * If the client receives multiple configure events before it can | 468 * If the client receives multiple configure events before it can |
| 432 * respond to one, it is free to discard all but the last event it | 469 * respond to one, it is free to discard all but the last event it |
| 433 * received. | 470 * received. |
| 434 * @since 3 | 471 * @since 3 |
| 435 */ | 472 */ |
| 436 void (*configure)(void *data, | 473 void (*configure)(void *data, |
| 437 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, | 474 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, |
| 438 » » » int32_t origin_x, | 475 » » » int32_t origin_offset_x, |
| 439 » » » int32_t origin_y, | 476 » » » int32_t origin_offset_y, |
| 440 struct wl_array *states, | 477 struct wl_array *states, |
| 441 uint32_t serial); | 478 uint32_t serial); |
| 442 }; | 479 }; |
| 443 | 480 |
| 444 /** | 481 /** |
| 445 * @ingroup iface_zcr_remote_surface_v1 | 482 * @ingroup iface_zcr_remote_surface_v1 |
| 446 */ | 483 */ |
| 447 static inline int | 484 static inline int |
| 448 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 485 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 449 const struct zcr_remote_surface_v1_listener *
listener, void *data) | 486 const struct zcr_remote_surface_v1_listener *
listener, void *data) |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 1032 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
| 996 | 1033 |
| 997 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 1034 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
| 998 } | 1035 } |
| 999 | 1036 |
| 1000 #ifdef __cplusplus | 1037 #ifdef __cplusplus |
| 1001 } | 1038 } |
| 1002 #endif | 1039 #endif |
| 1003 | 1040 |
| 1004 #endif | 1041 #endif |
| OLD | NEW |