Wayland++  0.2.5
C++ Bindings for Wayland
wayland-client-protocol-unstable.cpp
1 #include <wayland-client-protocol-unstable.hpp>
2 
3 using namespace wayland;
4 using namespace detail;
5 
6 const wl_interface* zwp_fullscreen_shell_v1_interface_release_request[0] = {
7 };
8 
9 const wl_interface* zwp_fullscreen_shell_v1_interface_present_surface_request[3] = {
10  &surface_interface,
11  NULL,
12  &output_interface,
13 };
14 
15 const wl_interface* zwp_fullscreen_shell_v1_interface_present_surface_for_mode_request[4] = {
16  &surface_interface,
17  &output_interface,
18  NULL,
19  &zwp_fullscreen_shell_mode_feedback_v1_interface,
20 };
21 
22 const wl_interface* zwp_fullscreen_shell_v1_interface_capability_event[1] = {
23  NULL,
24 };
25 
26 const wl_message zwp_fullscreen_shell_v1_interface_requests[3] = {
27  {
28  "release",
29  "",
30  zwp_fullscreen_shell_v1_interface_release_request,
31  },
32  {
33  "present_surface",
34  "?ou?o",
35  zwp_fullscreen_shell_v1_interface_present_surface_request,
36  },
37  {
38  "present_surface_for_mode",
39  "ooin",
40  zwp_fullscreen_shell_v1_interface_present_surface_for_mode_request,
41  },
42 };
43 
44 const wl_message zwp_fullscreen_shell_v1_interface_events[1] = {
45  {
46  "capability",
47  "u",
48  zwp_fullscreen_shell_v1_interface_capability_event,
49  },
50 };
51 
52 const wl_interface wayland::detail::zwp_fullscreen_shell_v1_interface =
53  {
54  "zwp_fullscreen_shell_v1",
55  1,
56  3,
57  zwp_fullscreen_shell_v1_interface_requests,
58  1,
59  zwp_fullscreen_shell_v1_interface_events,
60  };
61 
62 const wl_interface* zwp_fullscreen_shell_mode_feedback_v1_interface_mode_successful_event[0] = {
63 };
64 
65 const wl_interface* zwp_fullscreen_shell_mode_feedback_v1_interface_mode_failed_event[0] = {
66 };
67 
68 const wl_interface* zwp_fullscreen_shell_mode_feedback_v1_interface_present_cancelled_event[0] = {
69 };
70 
71 const wl_message zwp_fullscreen_shell_mode_feedback_v1_interface_requests[0] = {
72 };
73 
74 const wl_message zwp_fullscreen_shell_mode_feedback_v1_interface_events[3] = {
75  {
76  "mode_successful",
77  "",
78  zwp_fullscreen_shell_mode_feedback_v1_interface_mode_successful_event,
79  },
80  {
81  "mode_failed",
82  "",
83  zwp_fullscreen_shell_mode_feedback_v1_interface_mode_failed_event,
84  },
85  {
86  "present_cancelled",
87  "",
88  zwp_fullscreen_shell_mode_feedback_v1_interface_present_cancelled_event,
89  },
90 };
91 
92 const wl_interface wayland::detail::zwp_fullscreen_shell_mode_feedback_v1_interface =
93  {
94  "zwp_fullscreen_shell_mode_feedback_v1",
95  1,
96  0,
97  zwp_fullscreen_shell_mode_feedback_v1_interface_requests,
98  3,
99  zwp_fullscreen_shell_mode_feedback_v1_interface_events,
100  };
101 
102 const wl_interface* zwp_idle_inhibit_manager_v1_interface_destroy_request[0] = {
103 };
104 
105 const wl_interface* zwp_idle_inhibit_manager_v1_interface_create_inhibitor_request[2] = {
106  &zwp_idle_inhibitor_v1_interface,
107  &surface_interface,
108 };
109 
110 const wl_message zwp_idle_inhibit_manager_v1_interface_requests[2] = {
111  {
112  "destroy",
113  "",
114  zwp_idle_inhibit_manager_v1_interface_destroy_request,
115  },
116  {
117  "create_inhibitor",
118  "no",
119  zwp_idle_inhibit_manager_v1_interface_create_inhibitor_request,
120  },
121 };
122 
123 const wl_message zwp_idle_inhibit_manager_v1_interface_events[0] = {
124 };
125 
126 const wl_interface wayland::detail::zwp_idle_inhibit_manager_v1_interface =
127  {
128  "zwp_idle_inhibit_manager_v1",
129  1,
130  2,
131  zwp_idle_inhibit_manager_v1_interface_requests,
132  0,
133  zwp_idle_inhibit_manager_v1_interface_events,
134  };
135 
136 const wl_interface* zwp_idle_inhibitor_v1_interface_destroy_request[0] = {
137 };
138 
139 const wl_message zwp_idle_inhibitor_v1_interface_requests[1] = {
140  {
141  "destroy",
142  "",
143  zwp_idle_inhibitor_v1_interface_destroy_request,
144  },
145 };
146 
147 const wl_message zwp_idle_inhibitor_v1_interface_events[0] = {
148 };
149 
150 const wl_interface wayland::detail::zwp_idle_inhibitor_v1_interface =
151  {
152  "zwp_idle_inhibitor_v1",
153  1,
154  1,
155  zwp_idle_inhibitor_v1_interface_requests,
156  0,
157  zwp_idle_inhibitor_v1_interface_events,
158  };
159 
160 const wl_interface* zwp_input_method_context_v1_interface_destroy_request[0] = {
161 };
162 
163 const wl_interface* zwp_input_method_context_v1_interface_commit_string_request[2] = {
164  NULL,
165  NULL,
166 };
167 
168 const wl_interface* zwp_input_method_context_v1_interface_preedit_string_request[3] = {
169  NULL,
170  NULL,
171  NULL,
172 };
173 
174 const wl_interface* zwp_input_method_context_v1_interface_preedit_styling_request[3] = {
175  NULL,
176  NULL,
177  NULL,
178 };
179 
180 const wl_interface* zwp_input_method_context_v1_interface_preedit_cursor_request[1] = {
181  NULL,
182 };
183 
184 const wl_interface* zwp_input_method_context_v1_interface_delete_surrounding_text_request[2] = {
185  NULL,
186  NULL,
187 };
188 
189 const wl_interface* zwp_input_method_context_v1_interface_cursor_position_request[2] = {
190  NULL,
191  NULL,
192 };
193 
194 const wl_interface* zwp_input_method_context_v1_interface_modifiers_map_request[1] = {
195  NULL,
196 };
197 
198 const wl_interface* zwp_input_method_context_v1_interface_keysym_request[5] = {
199  NULL,
200  NULL,
201  NULL,
202  NULL,
203  NULL,
204 };
205 
206 const wl_interface* zwp_input_method_context_v1_interface_grab_keyboard_request[1] = {
207  &keyboard_interface,
208 };
209 
210 const wl_interface* zwp_input_method_context_v1_interface_key_request[4] = {
211  NULL,
212  NULL,
213  NULL,
214  NULL,
215 };
216 
217 const wl_interface* zwp_input_method_context_v1_interface_modifiers_request[5] = {
218  NULL,
219  NULL,
220  NULL,
221  NULL,
222  NULL,
223 };
224 
225 const wl_interface* zwp_input_method_context_v1_interface_language_request[2] = {
226  NULL,
227  NULL,
228 };
229 
230 const wl_interface* zwp_input_method_context_v1_interface_text_direction_request[2] = {
231  NULL,
232  NULL,
233 };
234 
235 const wl_interface* zwp_input_method_context_v1_interface_surrounding_text_event[3] = {
236  NULL,
237  NULL,
238  NULL,
239 };
240 
241 const wl_interface* zwp_input_method_context_v1_interface_reset_event[0] = {
242 };
243 
244 const wl_interface* zwp_input_method_context_v1_interface_content_type_event[2] = {
245  NULL,
246  NULL,
247 };
248 
249 const wl_interface* zwp_input_method_context_v1_interface_invoke_action_event[2] = {
250  NULL,
251  NULL,
252 };
253 
254 const wl_interface* zwp_input_method_context_v1_interface_commit_state_event[1] = {
255  NULL,
256 };
257 
258 const wl_interface* zwp_input_method_context_v1_interface_preferred_language_event[1] = {
259  NULL,
260 };
261 
262 const wl_message zwp_input_method_context_v1_interface_requests[14] = {
263  {
264  "destroy",
265  "",
266  zwp_input_method_context_v1_interface_destroy_request,
267  },
268  {
269  "commit_string",
270  "us",
271  zwp_input_method_context_v1_interface_commit_string_request,
272  },
273  {
274  "preedit_string",
275  "uss",
276  zwp_input_method_context_v1_interface_preedit_string_request,
277  },
278  {
279  "preedit_styling",
280  "uuu",
281  zwp_input_method_context_v1_interface_preedit_styling_request,
282  },
283  {
284  "preedit_cursor",
285  "i",
286  zwp_input_method_context_v1_interface_preedit_cursor_request,
287  },
288  {
289  "delete_surrounding_text",
290  "iu",
291  zwp_input_method_context_v1_interface_delete_surrounding_text_request,
292  },
293  {
294  "cursor_position",
295  "ii",
296  zwp_input_method_context_v1_interface_cursor_position_request,
297  },
298  {
299  "modifiers_map",
300  "a",
301  zwp_input_method_context_v1_interface_modifiers_map_request,
302  },
303  {
304  "keysym",
305  "uuuuu",
306  zwp_input_method_context_v1_interface_keysym_request,
307  },
308  {
309  "grab_keyboard",
310  "n",
311  zwp_input_method_context_v1_interface_grab_keyboard_request,
312  },
313  {
314  "key",
315  "uuuu",
316  zwp_input_method_context_v1_interface_key_request,
317  },
318  {
319  "modifiers",
320  "uuuuu",
321  zwp_input_method_context_v1_interface_modifiers_request,
322  },
323  {
324  "language",
325  "us",
326  zwp_input_method_context_v1_interface_language_request,
327  },
328  {
329  "text_direction",
330  "uu",
331  zwp_input_method_context_v1_interface_text_direction_request,
332  },
333 };
334 
335 const wl_message zwp_input_method_context_v1_interface_events[6] = {
336  {
337  "surrounding_text",
338  "suu",
339  zwp_input_method_context_v1_interface_surrounding_text_event,
340  },
341  {
342  "reset",
343  "",
344  zwp_input_method_context_v1_interface_reset_event,
345  },
346  {
347  "content_type",
348  "uu",
349  zwp_input_method_context_v1_interface_content_type_event,
350  },
351  {
352  "invoke_action",
353  "uu",
354  zwp_input_method_context_v1_interface_invoke_action_event,
355  },
356  {
357  "commit_state",
358  "u",
359  zwp_input_method_context_v1_interface_commit_state_event,
360  },
361  {
362  "preferred_language",
363  "s",
364  zwp_input_method_context_v1_interface_preferred_language_event,
365  },
366 };
367 
368 const wl_interface wayland::detail::zwp_input_method_context_v1_interface =
369  {
370  "zwp_input_method_context_v1",
371  1,
372  14,
373  zwp_input_method_context_v1_interface_requests,
374  6,
375  zwp_input_method_context_v1_interface_events,
376  };
377 
378 const wl_interface* zwp_input_method_v1_interface_activate_event[1] = {
379  &zwp_input_method_context_v1_interface,
380 };
381 
382 const wl_interface* zwp_input_method_v1_interface_deactivate_event[1] = {
383  &zwp_input_method_context_v1_interface,
384 };
385 
386 const wl_message zwp_input_method_v1_interface_requests[0] = {
387 };
388 
389 const wl_message zwp_input_method_v1_interface_events[2] = {
390  {
391  "activate",
392  "n",
393  zwp_input_method_v1_interface_activate_event,
394  },
395  {
396  "deactivate",
397  "o",
398  zwp_input_method_v1_interface_deactivate_event,
399  },
400 };
401 
402 const wl_interface wayland::detail::zwp_input_method_v1_interface =
403  {
404  "zwp_input_method_v1",
405  1,
406  0,
407  zwp_input_method_v1_interface_requests,
408  2,
409  zwp_input_method_v1_interface_events,
410  };
411 
412 const wl_interface* zwp_input_panel_v1_interface_get_input_panel_surface_request[2] = {
413  &zwp_input_panel_surface_v1_interface,
414  &surface_interface,
415 };
416 
417 const wl_message zwp_input_panel_v1_interface_requests[1] = {
418  {
419  "get_input_panel_surface",
420  "no",
421  zwp_input_panel_v1_interface_get_input_panel_surface_request,
422  },
423 };
424 
425 const wl_message zwp_input_panel_v1_interface_events[0] = {
426 };
427 
428 const wl_interface wayland::detail::zwp_input_panel_v1_interface =
429  {
430  "zwp_input_panel_v1",
431  1,
432  1,
433  zwp_input_panel_v1_interface_requests,
434  0,
435  zwp_input_panel_v1_interface_events,
436  };
437 
438 const wl_interface* zwp_input_panel_surface_v1_interface_set_toplevel_request[2] = {
439  &output_interface,
440  NULL,
441 };
442 
443 const wl_interface* zwp_input_panel_surface_v1_interface_set_overlay_panel_request[0] = {
444 };
445 
446 const wl_message zwp_input_panel_surface_v1_interface_requests[2] = {
447  {
448  "set_toplevel",
449  "ou",
450  zwp_input_panel_surface_v1_interface_set_toplevel_request,
451  },
452  {
453  "set_overlay_panel",
454  "",
455  zwp_input_panel_surface_v1_interface_set_overlay_panel_request,
456  },
457 };
458 
459 const wl_message zwp_input_panel_surface_v1_interface_events[0] = {
460 };
461 
462 const wl_interface wayland::detail::zwp_input_panel_surface_v1_interface =
463  {
464  "zwp_input_panel_surface_v1",
465  1,
466  2,
467  zwp_input_panel_surface_v1_interface_requests,
468  0,
469  zwp_input_panel_surface_v1_interface_events,
470  };
471 
472 const wl_interface* zwp_input_timestamps_manager_v1_interface_destroy_request[0] = {
473 };
474 
475 const wl_interface* zwp_input_timestamps_manager_v1_interface_get_keyboard_timestamps_request[2] = {
476  &zwp_input_timestamps_v1_interface,
477  &keyboard_interface,
478 };
479 
480 const wl_interface* zwp_input_timestamps_manager_v1_interface_get_pointer_timestamps_request[2] = {
481  &zwp_input_timestamps_v1_interface,
482  &pointer_interface,
483 };
484 
485 const wl_interface* zwp_input_timestamps_manager_v1_interface_get_touch_timestamps_request[2] = {
486  &zwp_input_timestamps_v1_interface,
487  &touch_interface,
488 };
489 
490 const wl_message zwp_input_timestamps_manager_v1_interface_requests[4] = {
491  {
492  "destroy",
493  "",
494  zwp_input_timestamps_manager_v1_interface_destroy_request,
495  },
496  {
497  "get_keyboard_timestamps",
498  "no",
499  zwp_input_timestamps_manager_v1_interface_get_keyboard_timestamps_request,
500  },
501  {
502  "get_pointer_timestamps",
503  "no",
504  zwp_input_timestamps_manager_v1_interface_get_pointer_timestamps_request,
505  },
506  {
507  "get_touch_timestamps",
508  "no",
509  zwp_input_timestamps_manager_v1_interface_get_touch_timestamps_request,
510  },
511 };
512 
513 const wl_message zwp_input_timestamps_manager_v1_interface_events[0] = {
514 };
515 
516 const wl_interface wayland::detail::zwp_input_timestamps_manager_v1_interface =
517  {
518  "zwp_input_timestamps_manager_v1",
519  1,
520  4,
521  zwp_input_timestamps_manager_v1_interface_requests,
522  0,
523  zwp_input_timestamps_manager_v1_interface_events,
524  };
525 
526 const wl_interface* zwp_input_timestamps_v1_interface_destroy_request[0] = {
527 };
528 
529 const wl_interface* zwp_input_timestamps_v1_interface_timestamp_event[3] = {
530  NULL,
531  NULL,
532  NULL,
533 };
534 
535 const wl_message zwp_input_timestamps_v1_interface_requests[1] = {
536  {
537  "destroy",
538  "",
539  zwp_input_timestamps_v1_interface_destroy_request,
540  },
541 };
542 
543 const wl_message zwp_input_timestamps_v1_interface_events[1] = {
544  {
545  "timestamp",
546  "uuu",
547  zwp_input_timestamps_v1_interface_timestamp_event,
548  },
549 };
550 
551 const wl_interface wayland::detail::zwp_input_timestamps_v1_interface =
552  {
553  "zwp_input_timestamps_v1",
554  1,
555  1,
556  zwp_input_timestamps_v1_interface_requests,
557  1,
558  zwp_input_timestamps_v1_interface_events,
559  };
560 
561 const wl_interface* zwp_keyboard_shortcuts_inhibit_manager_v1_interface_destroy_request[0] = {
562 };
563 
564 const wl_interface* zwp_keyboard_shortcuts_inhibit_manager_v1_interface_inhibit_shortcuts_request[3] = {
565  &zwp_keyboard_shortcuts_inhibitor_v1_interface,
566  &surface_interface,
567  &seat_interface,
568 };
569 
570 const wl_message zwp_keyboard_shortcuts_inhibit_manager_v1_interface_requests[2] = {
571  {
572  "destroy",
573  "",
574  zwp_keyboard_shortcuts_inhibit_manager_v1_interface_destroy_request,
575  },
576  {
577  "inhibit_shortcuts",
578  "noo",
579  zwp_keyboard_shortcuts_inhibit_manager_v1_interface_inhibit_shortcuts_request,
580  },
581 };
582 
583 const wl_message zwp_keyboard_shortcuts_inhibit_manager_v1_interface_events[0] = {
584 };
585 
586 const wl_interface wayland::detail::zwp_keyboard_shortcuts_inhibit_manager_v1_interface =
587  {
588  "zwp_keyboard_shortcuts_inhibit_manager_v1",
589  1,
590  2,
591  zwp_keyboard_shortcuts_inhibit_manager_v1_interface_requests,
592  0,
593  zwp_keyboard_shortcuts_inhibit_manager_v1_interface_events,
594  };
595 
596 const wl_interface* zwp_keyboard_shortcuts_inhibitor_v1_interface_destroy_request[0] = {
597 };
598 
599 const wl_interface* zwp_keyboard_shortcuts_inhibitor_v1_interface_active_event[0] = {
600 };
601 
602 const wl_interface* zwp_keyboard_shortcuts_inhibitor_v1_interface_inactive_event[0] = {
603 };
604 
605 const wl_message zwp_keyboard_shortcuts_inhibitor_v1_interface_requests[1] = {
606  {
607  "destroy",
608  "",
609  zwp_keyboard_shortcuts_inhibitor_v1_interface_destroy_request,
610  },
611 };
612 
613 const wl_message zwp_keyboard_shortcuts_inhibitor_v1_interface_events[2] = {
614  {
615  "active",
616  "",
617  zwp_keyboard_shortcuts_inhibitor_v1_interface_active_event,
618  },
619  {
620  "inactive",
621  "",
622  zwp_keyboard_shortcuts_inhibitor_v1_interface_inactive_event,
623  },
624 };
625 
626 const wl_interface wayland::detail::zwp_keyboard_shortcuts_inhibitor_v1_interface =
627  {
628  "zwp_keyboard_shortcuts_inhibitor_v1",
629  1,
630  1,
631  zwp_keyboard_shortcuts_inhibitor_v1_interface_requests,
632  2,
633  zwp_keyboard_shortcuts_inhibitor_v1_interface_events,
634  };
635 
636 const wl_interface* zwp_linux_dmabuf_v1_interface_destroy_request[0] = {
637 };
638 
639 const wl_interface* zwp_linux_dmabuf_v1_interface_create_params_request[1] = {
640  &zwp_linux_buffer_params_v1_interface,
641 };
642 
643 const wl_interface* zwp_linux_dmabuf_v1_interface_format_event[1] = {
644  NULL,
645 };
646 
647 const wl_interface* zwp_linux_dmabuf_v1_interface_modifier_event[3] = {
648  NULL,
649  NULL,
650  NULL,
651 };
652 
653 const wl_message zwp_linux_dmabuf_v1_interface_requests[2] = {
654  {
655  "destroy",
656  "",
657  zwp_linux_dmabuf_v1_interface_destroy_request,
658  },
659  {
660  "create_params",
661  "n",
662  zwp_linux_dmabuf_v1_interface_create_params_request,
663  },
664 };
665 
666 const wl_message zwp_linux_dmabuf_v1_interface_events[2] = {
667  {
668  "format",
669  "u",
670  zwp_linux_dmabuf_v1_interface_format_event,
671  },
672  {
673  "modifier",
674  "3uuu",
675  zwp_linux_dmabuf_v1_interface_modifier_event,
676  },
677 };
678 
679 const wl_interface wayland::detail::zwp_linux_dmabuf_v1_interface =
680  {
681  "zwp_linux_dmabuf_v1",
682  3,
683  2,
684  zwp_linux_dmabuf_v1_interface_requests,
685  2,
686  zwp_linux_dmabuf_v1_interface_events,
687  };
688 
689 const wl_interface* zwp_linux_buffer_params_v1_interface_destroy_request[0] = {
690 };
691 
692 const wl_interface* zwp_linux_buffer_params_v1_interface_add_request[6] = {
693  NULL,
694  NULL,
695  NULL,
696  NULL,
697  NULL,
698  NULL,
699 };
700 
701 const wl_interface* zwp_linux_buffer_params_v1_interface_create_request[4] = {
702  NULL,
703  NULL,
704  NULL,
705  NULL,
706 };
707 
708 const wl_interface* zwp_linux_buffer_params_v1_interface_create_immed_request[5] = {
709  &buffer_interface,
710  NULL,
711  NULL,
712  NULL,
713  NULL,
714 };
715 
716 const wl_interface* zwp_linux_buffer_params_v1_interface_created_event[1] = {
717  &buffer_interface,
718 };
719 
720 const wl_interface* zwp_linux_buffer_params_v1_interface_failed_event[0] = {
721 };
722 
723 const wl_message zwp_linux_buffer_params_v1_interface_requests[4] = {
724  {
725  "destroy",
726  "",
727  zwp_linux_buffer_params_v1_interface_destroy_request,
728  },
729  {
730  "add",
731  "huuuuu",
732  zwp_linux_buffer_params_v1_interface_add_request,
733  },
734  {
735  "create",
736  "iiuu",
737  zwp_linux_buffer_params_v1_interface_create_request,
738  },
739  {
740  "create_immed",
741  "2niiuu",
742  zwp_linux_buffer_params_v1_interface_create_immed_request,
743  },
744 };
745 
746 const wl_message zwp_linux_buffer_params_v1_interface_events[2] = {
747  {
748  "created",
749  "n",
750  zwp_linux_buffer_params_v1_interface_created_event,
751  },
752  {
753  "failed",
754  "",
755  zwp_linux_buffer_params_v1_interface_failed_event,
756  },
757 };
758 
759 const wl_interface wayland::detail::zwp_linux_buffer_params_v1_interface =
760  {
761  "zwp_linux_buffer_params_v1",
762  3,
763  4,
764  zwp_linux_buffer_params_v1_interface_requests,
765  2,
766  zwp_linux_buffer_params_v1_interface_events,
767  };
768 
769 const wl_interface* zwp_linux_explicit_synchronization_v1_interface_destroy_request[0] = {
770 };
771 
772 const wl_interface* zwp_linux_explicit_synchronization_v1_interface_get_synchronization_request[2] = {
773  &zwp_linux_surface_synchronization_v1_interface,
774  &surface_interface,
775 };
776 
777 const wl_message zwp_linux_explicit_synchronization_v1_interface_requests[2] = {
778  {
779  "destroy",
780  "",
781  zwp_linux_explicit_synchronization_v1_interface_destroy_request,
782  },
783  {
784  "get_synchronization",
785  "no",
786  zwp_linux_explicit_synchronization_v1_interface_get_synchronization_request,
787  },
788 };
789 
790 const wl_message zwp_linux_explicit_synchronization_v1_interface_events[0] = {
791 };
792 
793 const wl_interface wayland::detail::zwp_linux_explicit_synchronization_v1_interface =
794  {
795  "zwp_linux_explicit_synchronization_v1",
796  2,
797  2,
798  zwp_linux_explicit_synchronization_v1_interface_requests,
799  0,
800  zwp_linux_explicit_synchronization_v1_interface_events,
801  };
802 
803 const wl_interface* zwp_linux_surface_synchronization_v1_interface_destroy_request[0] = {
804 };
805 
806 const wl_interface* zwp_linux_surface_synchronization_v1_interface_set_acquire_fence_request[1] = {
807  NULL,
808 };
809 
810 const wl_interface* zwp_linux_surface_synchronization_v1_interface_get_release_request[1] = {
811  &zwp_linux_buffer_release_v1_interface,
812 };
813 
814 const wl_message zwp_linux_surface_synchronization_v1_interface_requests[3] = {
815  {
816  "destroy",
817  "",
818  zwp_linux_surface_synchronization_v1_interface_destroy_request,
819  },
820  {
821  "set_acquire_fence",
822  "h",
823  zwp_linux_surface_synchronization_v1_interface_set_acquire_fence_request,
824  },
825  {
826  "get_release",
827  "n",
828  zwp_linux_surface_synchronization_v1_interface_get_release_request,
829  },
830 };
831 
832 const wl_message zwp_linux_surface_synchronization_v1_interface_events[0] = {
833 };
834 
835 const wl_interface wayland::detail::zwp_linux_surface_synchronization_v1_interface =
836  {
837  "zwp_linux_surface_synchronization_v1",
838  2,
839  3,
840  zwp_linux_surface_synchronization_v1_interface_requests,
841  0,
842  zwp_linux_surface_synchronization_v1_interface_events,
843  };
844 
845 const wl_interface* zwp_linux_buffer_release_v1_interface_fenced_release_event[1] = {
846  NULL,
847 };
848 
849 const wl_interface* zwp_linux_buffer_release_v1_interface_immediate_release_event[0] = {
850 };
851 
852 const wl_message zwp_linux_buffer_release_v1_interface_requests[0] = {
853 };
854 
855 const wl_message zwp_linux_buffer_release_v1_interface_events[2] = {
856  {
857  "fenced_release",
858  "h",
859  zwp_linux_buffer_release_v1_interface_fenced_release_event,
860  },
861  {
862  "immediate_release",
863  "",
864  zwp_linux_buffer_release_v1_interface_immediate_release_event,
865  },
866 };
867 
868 const wl_interface wayland::detail::zwp_linux_buffer_release_v1_interface =
869  {
870  "zwp_linux_buffer_release_v1",
871  1,
872  0,
873  zwp_linux_buffer_release_v1_interface_requests,
874  2,
875  zwp_linux_buffer_release_v1_interface_events,
876  };
877 
878 const wl_interface* zwp_pointer_constraints_v1_interface_destroy_request[0] = {
879 };
880 
881 const wl_interface* zwp_pointer_constraints_v1_interface_lock_pointer_request[5] = {
882  &zwp_locked_pointer_v1_interface,
883  &surface_interface,
884  &pointer_interface,
885  &region_interface,
886  NULL,
887 };
888 
889 const wl_interface* zwp_pointer_constraints_v1_interface_confine_pointer_request[5] = {
890  &zwp_confined_pointer_v1_interface,
891  &surface_interface,
892  &pointer_interface,
893  &region_interface,
894  NULL,
895 };
896 
897 const wl_message zwp_pointer_constraints_v1_interface_requests[3] = {
898  {
899  "destroy",
900  "",
901  zwp_pointer_constraints_v1_interface_destroy_request,
902  },
903  {
904  "lock_pointer",
905  "noo?ou",
906  zwp_pointer_constraints_v1_interface_lock_pointer_request,
907  },
908  {
909  "confine_pointer",
910  "noo?ou",
911  zwp_pointer_constraints_v1_interface_confine_pointer_request,
912  },
913 };
914 
915 const wl_message zwp_pointer_constraints_v1_interface_events[0] = {
916 };
917 
918 const wl_interface wayland::detail::zwp_pointer_constraints_v1_interface =
919  {
920  "zwp_pointer_constraints_v1",
921  1,
922  3,
923  zwp_pointer_constraints_v1_interface_requests,
924  0,
925  zwp_pointer_constraints_v1_interface_events,
926  };
927 
928 const wl_interface* zwp_locked_pointer_v1_interface_destroy_request[0] = {
929 };
930 
931 const wl_interface* zwp_locked_pointer_v1_interface_set_cursor_position_hint_request[2] = {
932  NULL,
933  NULL,
934 };
935 
936 const wl_interface* zwp_locked_pointer_v1_interface_set_region_request[1] = {
937  &region_interface,
938 };
939 
940 const wl_interface* zwp_locked_pointer_v1_interface_locked_event[0] = {
941 };
942 
943 const wl_interface* zwp_locked_pointer_v1_interface_unlocked_event[0] = {
944 };
945 
946 const wl_message zwp_locked_pointer_v1_interface_requests[3] = {
947  {
948  "destroy",
949  "",
950  zwp_locked_pointer_v1_interface_destroy_request,
951  },
952  {
953  "set_cursor_position_hint",
954  "ff",
955  zwp_locked_pointer_v1_interface_set_cursor_position_hint_request,
956  },
957  {
958  "set_region",
959  "?o",
960  zwp_locked_pointer_v1_interface_set_region_request,
961  },
962 };
963 
964 const wl_message zwp_locked_pointer_v1_interface_events[2] = {
965  {
966  "locked",
967  "",
968  zwp_locked_pointer_v1_interface_locked_event,
969  },
970  {
971  "unlocked",
972  "",
973  zwp_locked_pointer_v1_interface_unlocked_event,
974  },
975 };
976 
977 const wl_interface wayland::detail::zwp_locked_pointer_v1_interface =
978  {
979  "zwp_locked_pointer_v1",
980  1,
981  3,
982  zwp_locked_pointer_v1_interface_requests,
983  2,
984  zwp_locked_pointer_v1_interface_events,
985  };
986 
987 const wl_interface* zwp_confined_pointer_v1_interface_destroy_request[0] = {
988 };
989 
990 const wl_interface* zwp_confined_pointer_v1_interface_set_region_request[1] = {
991  &region_interface,
992 };
993 
994 const wl_interface* zwp_confined_pointer_v1_interface_confined_event[0] = {
995 };
996 
997 const wl_interface* zwp_confined_pointer_v1_interface_unconfined_event[0] = {
998 };
999 
1000 const wl_message zwp_confined_pointer_v1_interface_requests[2] = {
1001  {
1002  "destroy",
1003  "",
1004  zwp_confined_pointer_v1_interface_destroy_request,
1005  },
1006  {
1007  "set_region",
1008  "?o",
1009  zwp_confined_pointer_v1_interface_set_region_request,
1010  },
1011 };
1012 
1013 const wl_message zwp_confined_pointer_v1_interface_events[2] = {
1014  {
1015  "confined",
1016  "",
1017  zwp_confined_pointer_v1_interface_confined_event,
1018  },
1019  {
1020  "unconfined",
1021  "",
1022  zwp_confined_pointer_v1_interface_unconfined_event,
1023  },
1024 };
1025 
1026 const wl_interface wayland::detail::zwp_confined_pointer_v1_interface =
1027  {
1028  "zwp_confined_pointer_v1",
1029  1,
1030  2,
1031  zwp_confined_pointer_v1_interface_requests,
1032  2,
1033  zwp_confined_pointer_v1_interface_events,
1034  };
1035 
1036 const wl_interface* zwp_pointer_gestures_v1_interface_get_swipe_gesture_request[2] = {
1037  &zwp_pointer_gesture_swipe_v1_interface,
1038  &pointer_interface,
1039 };
1040 
1041 const wl_interface* zwp_pointer_gestures_v1_interface_get_pinch_gesture_request[2] = {
1042  &zwp_pointer_gesture_pinch_v1_interface,
1043  &pointer_interface,
1044 };
1045 
1046 const wl_message zwp_pointer_gestures_v1_interface_requests[2] = {
1047  {
1048  "get_swipe_gesture",
1049  "no",
1050  zwp_pointer_gestures_v1_interface_get_swipe_gesture_request,
1051  },
1052  {
1053  "get_pinch_gesture",
1054  "no",
1055  zwp_pointer_gestures_v1_interface_get_pinch_gesture_request,
1056  },
1057 };
1058 
1059 const wl_message zwp_pointer_gestures_v1_interface_events[0] = {
1060 };
1061 
1062 const wl_interface wayland::detail::zwp_pointer_gestures_v1_interface =
1063  {
1064  "zwp_pointer_gestures_v1",
1065  1,
1066  2,
1067  zwp_pointer_gestures_v1_interface_requests,
1068  0,
1069  zwp_pointer_gestures_v1_interface_events,
1070  };
1071 
1072 const wl_interface* zwp_pointer_gesture_swipe_v1_interface_destroy_request[0] = {
1073 };
1074 
1075 const wl_interface* zwp_pointer_gesture_swipe_v1_interface_begin_event[4] = {
1076  NULL,
1077  NULL,
1078  &surface_interface,
1079  NULL,
1080 };
1081 
1082 const wl_interface* zwp_pointer_gesture_swipe_v1_interface_update_event[3] = {
1083  NULL,
1084  NULL,
1085  NULL,
1086 };
1087 
1088 const wl_interface* zwp_pointer_gesture_swipe_v1_interface_end_event[3] = {
1089  NULL,
1090  NULL,
1091  NULL,
1092 };
1093 
1094 const wl_message zwp_pointer_gesture_swipe_v1_interface_requests[1] = {
1095  {
1096  "destroy",
1097  "",
1098  zwp_pointer_gesture_swipe_v1_interface_destroy_request,
1099  },
1100 };
1101 
1102 const wl_message zwp_pointer_gesture_swipe_v1_interface_events[3] = {
1103  {
1104  "begin",
1105  "uuou",
1106  zwp_pointer_gesture_swipe_v1_interface_begin_event,
1107  },
1108  {
1109  "update",
1110  "uff",
1111  zwp_pointer_gesture_swipe_v1_interface_update_event,
1112  },
1113  {
1114  "end",
1115  "uui",
1116  zwp_pointer_gesture_swipe_v1_interface_end_event,
1117  },
1118 };
1119 
1120 const wl_interface wayland::detail::zwp_pointer_gesture_swipe_v1_interface =
1121  {
1122  "zwp_pointer_gesture_swipe_v1",
1123  1,
1124  1,
1125  zwp_pointer_gesture_swipe_v1_interface_requests,
1126  3,
1127  zwp_pointer_gesture_swipe_v1_interface_events,
1128  };
1129 
1130 const wl_interface* zwp_pointer_gesture_pinch_v1_interface_destroy_request[0] = {
1131 };
1132 
1133 const wl_interface* zwp_pointer_gesture_pinch_v1_interface_begin_event[4] = {
1134  NULL,
1135  NULL,
1136  &surface_interface,
1137  NULL,
1138 };
1139 
1140 const wl_interface* zwp_pointer_gesture_pinch_v1_interface_update_event[5] = {
1141  NULL,
1142  NULL,
1143  NULL,
1144  NULL,
1145  NULL,
1146 };
1147 
1148 const wl_interface* zwp_pointer_gesture_pinch_v1_interface_end_event[3] = {
1149  NULL,
1150  NULL,
1151  NULL,
1152 };
1153 
1154 const wl_message zwp_pointer_gesture_pinch_v1_interface_requests[1] = {
1155  {
1156  "destroy",
1157  "",
1158  zwp_pointer_gesture_pinch_v1_interface_destroy_request,
1159  },
1160 };
1161 
1162 const wl_message zwp_pointer_gesture_pinch_v1_interface_events[3] = {
1163  {
1164  "begin",
1165  "uuou",
1166  zwp_pointer_gesture_pinch_v1_interface_begin_event,
1167  },
1168  {
1169  "update",
1170  "uffff",
1171  zwp_pointer_gesture_pinch_v1_interface_update_event,
1172  },
1173  {
1174  "end",
1175  "uui",
1176  zwp_pointer_gesture_pinch_v1_interface_end_event,
1177  },
1178 };
1179 
1180 const wl_interface wayland::detail::zwp_pointer_gesture_pinch_v1_interface =
1181  {
1182  "zwp_pointer_gesture_pinch_v1",
1183  1,
1184  1,
1185  zwp_pointer_gesture_pinch_v1_interface_requests,
1186  3,
1187  zwp_pointer_gesture_pinch_v1_interface_events,
1188  };
1189 
1190 const wl_interface* zwp_primary_selection_device_manager_v1_interface_create_source_request[1] = {
1191  &zwp_primary_selection_source_v1_interface,
1192 };
1193 
1194 const wl_interface* zwp_primary_selection_device_manager_v1_interface_get_device_request[2] = {
1195  &zwp_primary_selection_device_v1_interface,
1196  &seat_interface,
1197 };
1198 
1199 const wl_interface* zwp_primary_selection_device_manager_v1_interface_destroy_request[0] = {
1200 };
1201 
1202 const wl_message zwp_primary_selection_device_manager_v1_interface_requests[3] = {
1203  {
1204  "create_source",
1205  "n",
1206  zwp_primary_selection_device_manager_v1_interface_create_source_request,
1207  },
1208  {
1209  "get_device",
1210  "no",
1211  zwp_primary_selection_device_manager_v1_interface_get_device_request,
1212  },
1213  {
1214  "destroy",
1215  "",
1216  zwp_primary_selection_device_manager_v1_interface_destroy_request,
1217  },
1218 };
1219 
1220 const wl_message zwp_primary_selection_device_manager_v1_interface_events[0] = {
1221 };
1222 
1223 const wl_interface wayland::detail::zwp_primary_selection_device_manager_v1_interface =
1224  {
1225  "zwp_primary_selection_device_manager_v1",
1226  1,
1227  3,
1228  zwp_primary_selection_device_manager_v1_interface_requests,
1229  0,
1230  zwp_primary_selection_device_manager_v1_interface_events,
1231  };
1232 
1233 const wl_interface* zwp_primary_selection_device_v1_interface_set_selection_request[2] = {
1234  &zwp_primary_selection_source_v1_interface,
1235  NULL,
1236 };
1237 
1238 const wl_interface* zwp_primary_selection_device_v1_interface_destroy_request[0] = {
1239 };
1240 
1241 const wl_interface* zwp_primary_selection_device_v1_interface_data_offer_event[1] = {
1242  &zwp_primary_selection_offer_v1_interface,
1243 };
1244 
1245 const wl_interface* zwp_primary_selection_device_v1_interface_selection_event[1] = {
1246  &zwp_primary_selection_offer_v1_interface,
1247 };
1248 
1249 const wl_message zwp_primary_selection_device_v1_interface_requests[2] = {
1250  {
1251  "set_selection",
1252  "?ou",
1253  zwp_primary_selection_device_v1_interface_set_selection_request,
1254  },
1255  {
1256  "destroy",
1257  "",
1258  zwp_primary_selection_device_v1_interface_destroy_request,
1259  },
1260 };
1261 
1262 const wl_message zwp_primary_selection_device_v1_interface_events[2] = {
1263  {
1264  "data_offer",
1265  "n",
1266  zwp_primary_selection_device_v1_interface_data_offer_event,
1267  },
1268  {
1269  "selection",
1270  "?o",
1271  zwp_primary_selection_device_v1_interface_selection_event,
1272  },
1273 };
1274 
1275 const wl_interface wayland::detail::zwp_primary_selection_device_v1_interface =
1276  {
1277  "zwp_primary_selection_device_v1",
1278  1,
1279  2,
1280  zwp_primary_selection_device_v1_interface_requests,
1281  2,
1282  zwp_primary_selection_device_v1_interface_events,
1283  };
1284 
1285 const wl_interface* zwp_primary_selection_offer_v1_interface_receive_request[2] = {
1286  NULL,
1287  NULL,
1288 };
1289 
1290 const wl_interface* zwp_primary_selection_offer_v1_interface_destroy_request[0] = {
1291 };
1292 
1293 const wl_interface* zwp_primary_selection_offer_v1_interface_offer_event[1] = {
1294  NULL,
1295 };
1296 
1297 const wl_message zwp_primary_selection_offer_v1_interface_requests[2] = {
1298  {
1299  "receive",
1300  "sh",
1301  zwp_primary_selection_offer_v1_interface_receive_request,
1302  },
1303  {
1304  "destroy",
1305  "",
1306  zwp_primary_selection_offer_v1_interface_destroy_request,
1307  },
1308 };
1309 
1310 const wl_message zwp_primary_selection_offer_v1_interface_events[1] = {
1311  {
1312  "offer",
1313  "s",
1314  zwp_primary_selection_offer_v1_interface_offer_event,
1315  },
1316 };
1317 
1318 const wl_interface wayland::detail::zwp_primary_selection_offer_v1_interface =
1319  {
1320  "zwp_primary_selection_offer_v1",
1321  1,
1322  2,
1323  zwp_primary_selection_offer_v1_interface_requests,
1324  1,
1325  zwp_primary_selection_offer_v1_interface_events,
1326  };
1327 
1328 const wl_interface* zwp_primary_selection_source_v1_interface_offer_request[1] = {
1329  NULL,
1330 };
1331 
1332 const wl_interface* zwp_primary_selection_source_v1_interface_destroy_request[0] = {
1333 };
1334 
1335 const wl_interface* zwp_primary_selection_source_v1_interface_send_event[2] = {
1336  NULL,
1337  NULL,
1338 };
1339 
1340 const wl_interface* zwp_primary_selection_source_v1_interface_cancelled_event[0] = {
1341 };
1342 
1343 const wl_message zwp_primary_selection_source_v1_interface_requests[2] = {
1344  {
1345  "offer",
1346  "s",
1347  zwp_primary_selection_source_v1_interface_offer_request,
1348  },
1349  {
1350  "destroy",
1351  "",
1352  zwp_primary_selection_source_v1_interface_destroy_request,
1353  },
1354 };
1355 
1356 const wl_message zwp_primary_selection_source_v1_interface_events[2] = {
1357  {
1358  "send",
1359  "sh",
1360  zwp_primary_selection_source_v1_interface_send_event,
1361  },
1362  {
1363  "cancelled",
1364  "",
1365  zwp_primary_selection_source_v1_interface_cancelled_event,
1366  },
1367 };
1368 
1369 const wl_interface wayland::detail::zwp_primary_selection_source_v1_interface =
1370  {
1371  "zwp_primary_selection_source_v1",
1372  1,
1373  2,
1374  zwp_primary_selection_source_v1_interface_requests,
1375  2,
1376  zwp_primary_selection_source_v1_interface_events,
1377  };
1378 
1379 const wl_interface* zwp_relative_pointer_manager_v1_interface_destroy_request[0] = {
1380 };
1381 
1382 const wl_interface* zwp_relative_pointer_manager_v1_interface_get_relative_pointer_request[2] = {
1383  &zwp_relative_pointer_v1_interface,
1384  &pointer_interface,
1385 };
1386 
1387 const wl_message zwp_relative_pointer_manager_v1_interface_requests[2] = {
1388  {
1389  "destroy",
1390  "",
1391  zwp_relative_pointer_manager_v1_interface_destroy_request,
1392  },
1393  {
1394  "get_relative_pointer",
1395  "no",
1396  zwp_relative_pointer_manager_v1_interface_get_relative_pointer_request,
1397  },
1398 };
1399 
1400 const wl_message zwp_relative_pointer_manager_v1_interface_events[0] = {
1401 };
1402 
1403 const wl_interface wayland::detail::zwp_relative_pointer_manager_v1_interface =
1404  {
1405  "zwp_relative_pointer_manager_v1",
1406  1,
1407  2,
1408  zwp_relative_pointer_manager_v1_interface_requests,
1409  0,
1410  zwp_relative_pointer_manager_v1_interface_events,
1411  };
1412 
1413 const wl_interface* zwp_relative_pointer_v1_interface_destroy_request[0] = {
1414 };
1415 
1416 const wl_interface* zwp_relative_pointer_v1_interface_relative_motion_event[6] = {
1417  NULL,
1418  NULL,
1419  NULL,
1420  NULL,
1421  NULL,
1422  NULL,
1423 };
1424 
1425 const wl_message zwp_relative_pointer_v1_interface_requests[1] = {
1426  {
1427  "destroy",
1428  "",
1429  zwp_relative_pointer_v1_interface_destroy_request,
1430  },
1431 };
1432 
1433 const wl_message zwp_relative_pointer_v1_interface_events[1] = {
1434  {
1435  "relative_motion",
1436  "uuffff",
1437  zwp_relative_pointer_v1_interface_relative_motion_event,
1438  },
1439 };
1440 
1441 const wl_interface wayland::detail::zwp_relative_pointer_v1_interface =
1442  {
1443  "zwp_relative_pointer_v1",
1444  1,
1445  1,
1446  zwp_relative_pointer_v1_interface_requests,
1447  1,
1448  zwp_relative_pointer_v1_interface_events,
1449  };
1450 
1451 const wl_interface* zwp_tablet_manager_v1_interface_get_tablet_seat_request[2] = {
1452  &zwp_tablet_seat_v1_interface,
1453  &seat_interface,
1454 };
1455 
1456 const wl_interface* zwp_tablet_manager_v1_interface_destroy_request[0] = {
1457 };
1458 
1459 const wl_message zwp_tablet_manager_v1_interface_requests[2] = {
1460  {
1461  "get_tablet_seat",
1462  "no",
1463  zwp_tablet_manager_v1_interface_get_tablet_seat_request,
1464  },
1465  {
1466  "destroy",
1467  "",
1468  zwp_tablet_manager_v1_interface_destroy_request,
1469  },
1470 };
1471 
1472 const wl_message zwp_tablet_manager_v1_interface_events[0] = {
1473 };
1474 
1475 const wl_interface wayland::detail::zwp_tablet_manager_v1_interface =
1476  {
1477  "zwp_tablet_manager_v1",
1478  1,
1479  2,
1480  zwp_tablet_manager_v1_interface_requests,
1481  0,
1482  zwp_tablet_manager_v1_interface_events,
1483  };
1484 
1485 const wl_interface* zwp_tablet_seat_v1_interface_destroy_request[0] = {
1486 };
1487 
1488 const wl_interface* zwp_tablet_seat_v1_interface_tablet_added_event[1] = {
1489  &zwp_tablet_v1_interface,
1490 };
1491 
1492 const wl_interface* zwp_tablet_seat_v1_interface_tool_added_event[1] = {
1493  &zwp_tablet_tool_v1_interface,
1494 };
1495 
1496 const wl_message zwp_tablet_seat_v1_interface_requests[1] = {
1497  {
1498  "destroy",
1499  "",
1500  zwp_tablet_seat_v1_interface_destroy_request,
1501  },
1502 };
1503 
1504 const wl_message zwp_tablet_seat_v1_interface_events[2] = {
1505  {
1506  "tablet_added",
1507  "n",
1508  zwp_tablet_seat_v1_interface_tablet_added_event,
1509  },
1510  {
1511  "tool_added",
1512  "n",
1513  zwp_tablet_seat_v1_interface_tool_added_event,
1514  },
1515 };
1516 
1517 const wl_interface wayland::detail::zwp_tablet_seat_v1_interface =
1518  {
1519  "zwp_tablet_seat_v1",
1520  1,
1521  1,
1522  zwp_tablet_seat_v1_interface_requests,
1523  2,
1524  zwp_tablet_seat_v1_interface_events,
1525  };
1526 
1527 const wl_interface* zwp_tablet_tool_v1_interface_set_cursor_request[4] = {
1528  NULL,
1529  &surface_interface,
1530  NULL,
1531  NULL,
1532 };
1533 
1534 const wl_interface* zwp_tablet_tool_v1_interface_destroy_request[0] = {
1535 };
1536 
1537 const wl_interface* zwp_tablet_tool_v1_interface_type_event[1] = {
1538  NULL,
1539 };
1540 
1541 const wl_interface* zwp_tablet_tool_v1_interface_hardware_serial_event[2] = {
1542  NULL,
1543  NULL,
1544 };
1545 
1546 const wl_interface* zwp_tablet_tool_v1_interface_hardware_id_wacom_event[2] = {
1547  NULL,
1548  NULL,
1549 };
1550 
1551 const wl_interface* zwp_tablet_tool_v1_interface_capability_event[1] = {
1552  NULL,
1553 };
1554 
1555 const wl_interface* zwp_tablet_tool_v1_interface_done_event[0] = {
1556 };
1557 
1558 const wl_interface* zwp_tablet_tool_v1_interface_removed_event[0] = {
1559 };
1560 
1561 const wl_interface* zwp_tablet_tool_v1_interface_proximity_in_event[3] = {
1562  NULL,
1563  &zwp_tablet_v1_interface,
1564  &surface_interface,
1565 };
1566 
1567 const wl_interface* zwp_tablet_tool_v1_interface_proximity_out_event[0] = {
1568 };
1569 
1570 const wl_interface* zwp_tablet_tool_v1_interface_down_event[1] = {
1571  NULL,
1572 };
1573 
1574 const wl_interface* zwp_tablet_tool_v1_interface_up_event[0] = {
1575 };
1576 
1577 const wl_interface* zwp_tablet_tool_v1_interface_motion_event[2] = {
1578  NULL,
1579  NULL,
1580 };
1581 
1582 const wl_interface* zwp_tablet_tool_v1_interface_pressure_event[1] = {
1583  NULL,
1584 };
1585 
1586 const wl_interface* zwp_tablet_tool_v1_interface_distance_event[1] = {
1587  NULL,
1588 };
1589 
1590 const wl_interface* zwp_tablet_tool_v1_interface_tilt_event[2] = {
1591  NULL,
1592  NULL,
1593 };
1594 
1595 const wl_interface* zwp_tablet_tool_v1_interface_rotation_event[1] = {
1596  NULL,
1597 };
1598 
1599 const wl_interface* zwp_tablet_tool_v1_interface_slider_event[1] = {
1600  NULL,
1601 };
1602 
1603 const wl_interface* zwp_tablet_tool_v1_interface_wheel_event[2] = {
1604  NULL,
1605  NULL,
1606 };
1607 
1608 const wl_interface* zwp_tablet_tool_v1_interface_button_event[3] = {
1609  NULL,
1610  NULL,
1611  NULL,
1612 };
1613 
1614 const wl_interface* zwp_tablet_tool_v1_interface_frame_event[1] = {
1615  NULL,
1616 };
1617 
1618 const wl_message zwp_tablet_tool_v1_interface_requests[2] = {
1619  {
1620  "set_cursor",
1621  "u?oii",
1622  zwp_tablet_tool_v1_interface_set_cursor_request,
1623  },
1624  {
1625  "destroy",
1626  "",
1627  zwp_tablet_tool_v1_interface_destroy_request,
1628  },
1629 };
1630 
1631 const wl_message zwp_tablet_tool_v1_interface_events[19] = {
1632  {
1633  "type",
1634  "u",
1635  zwp_tablet_tool_v1_interface_type_event,
1636  },
1637  {
1638  "hardware_serial",
1639  "uu",
1640  zwp_tablet_tool_v1_interface_hardware_serial_event,
1641  },
1642  {
1643  "hardware_id_wacom",
1644  "uu",
1645  zwp_tablet_tool_v1_interface_hardware_id_wacom_event,
1646  },
1647  {
1648  "capability",
1649  "u",
1650  zwp_tablet_tool_v1_interface_capability_event,
1651  },
1652  {
1653  "done",
1654  "",
1655  zwp_tablet_tool_v1_interface_done_event,
1656  },
1657  {
1658  "removed",
1659  "",
1660  zwp_tablet_tool_v1_interface_removed_event,
1661  },
1662  {
1663  "proximity_in",
1664  "uoo",
1665  zwp_tablet_tool_v1_interface_proximity_in_event,
1666  },
1667  {
1668  "proximity_out",
1669  "",
1670  zwp_tablet_tool_v1_interface_proximity_out_event,
1671  },
1672  {
1673  "down",
1674  "u",
1675  zwp_tablet_tool_v1_interface_down_event,
1676  },
1677  {
1678  "up",
1679  "",
1680  zwp_tablet_tool_v1_interface_up_event,
1681  },
1682  {
1683  "motion",
1684  "ff",
1685  zwp_tablet_tool_v1_interface_motion_event,
1686  },
1687  {
1688  "pressure",
1689  "u",
1690  zwp_tablet_tool_v1_interface_pressure_event,
1691  },
1692  {
1693  "distance",
1694  "u",
1695  zwp_tablet_tool_v1_interface_distance_event,
1696  },
1697  {
1698  "tilt",
1699  "ii",
1700  zwp_tablet_tool_v1_interface_tilt_event,
1701  },
1702  {
1703  "rotation",
1704  "i",
1705  zwp_tablet_tool_v1_interface_rotation_event,
1706  },
1707  {
1708  "slider",
1709  "i",
1710  zwp_tablet_tool_v1_interface_slider_event,
1711  },
1712  {
1713  "wheel",
1714  "ii",
1715  zwp_tablet_tool_v1_interface_wheel_event,
1716  },
1717  {
1718  "button",
1719  "uuu",
1720  zwp_tablet_tool_v1_interface_button_event,
1721  },
1722  {
1723  "frame",
1724  "u",
1725  zwp_tablet_tool_v1_interface_frame_event,
1726  },
1727 };
1728 
1729 const wl_interface wayland::detail::zwp_tablet_tool_v1_interface =
1730  {
1731  "zwp_tablet_tool_v1",
1732  1,
1733  2,
1734  zwp_tablet_tool_v1_interface_requests,
1735  19,
1736  zwp_tablet_tool_v1_interface_events,
1737  };
1738 
1739 const wl_interface* zwp_tablet_v1_interface_destroy_request[0] = {
1740 };
1741 
1742 const wl_interface* zwp_tablet_v1_interface_name_event[1] = {
1743  NULL,
1744 };
1745 
1746 const wl_interface* zwp_tablet_v1_interface_id_event[2] = {
1747  NULL,
1748  NULL,
1749 };
1750 
1751 const wl_interface* zwp_tablet_v1_interface_path_event[1] = {
1752  NULL,
1753 };
1754 
1755 const wl_interface* zwp_tablet_v1_interface_done_event[0] = {
1756 };
1757 
1758 const wl_interface* zwp_tablet_v1_interface_removed_event[0] = {
1759 };
1760 
1761 const wl_message zwp_tablet_v1_interface_requests[1] = {
1762  {
1763  "destroy",
1764  "",
1765  zwp_tablet_v1_interface_destroy_request,
1766  },
1767 };
1768 
1769 const wl_message zwp_tablet_v1_interface_events[5] = {
1770  {
1771  "name",
1772  "s",
1773  zwp_tablet_v1_interface_name_event,
1774  },
1775  {
1776  "id",
1777  "uu",
1778  zwp_tablet_v1_interface_id_event,
1779  },
1780  {
1781  "path",
1782  "s",
1783  zwp_tablet_v1_interface_path_event,
1784  },
1785  {
1786  "done",
1787  "",
1788  zwp_tablet_v1_interface_done_event,
1789  },
1790  {
1791  "removed",
1792  "",
1793  zwp_tablet_v1_interface_removed_event,
1794  },
1795 };
1796 
1797 const wl_interface wayland::detail::zwp_tablet_v1_interface =
1798  {
1799  "zwp_tablet_v1",
1800  1,
1801  1,
1802  zwp_tablet_v1_interface_requests,
1803  5,
1804  zwp_tablet_v1_interface_events,
1805  };
1806 
1807 const wl_interface* zwp_tablet_manager_v2_interface_get_tablet_seat_request[2] = {
1808  &zwp_tablet_seat_v2_interface,
1809  &seat_interface,
1810 };
1811 
1812 const wl_interface* zwp_tablet_manager_v2_interface_destroy_request[0] = {
1813 };
1814 
1815 const wl_message zwp_tablet_manager_v2_interface_requests[2] = {
1816  {
1817  "get_tablet_seat",
1818  "no",
1819  zwp_tablet_manager_v2_interface_get_tablet_seat_request,
1820  },
1821  {
1822  "destroy",
1823  "",
1824  zwp_tablet_manager_v2_interface_destroy_request,
1825  },
1826 };
1827 
1828 const wl_message zwp_tablet_manager_v2_interface_events[0] = {
1829 };
1830 
1831 const wl_interface wayland::detail::zwp_tablet_manager_v2_interface =
1832  {
1833  "zwp_tablet_manager_v2",
1834  1,
1835  2,
1836  zwp_tablet_manager_v2_interface_requests,
1837  0,
1838  zwp_tablet_manager_v2_interface_events,
1839  };
1840 
1841 const wl_interface* zwp_tablet_seat_v2_interface_destroy_request[0] = {
1842 };
1843 
1844 const wl_interface* zwp_tablet_seat_v2_interface_tablet_added_event[1] = {
1845  &zwp_tablet_v2_interface,
1846 };
1847 
1848 const wl_interface* zwp_tablet_seat_v2_interface_tool_added_event[1] = {
1849  &zwp_tablet_tool_v2_interface,
1850 };
1851 
1852 const wl_interface* zwp_tablet_seat_v2_interface_pad_added_event[1] = {
1853  &zwp_tablet_pad_v2_interface,
1854 };
1855 
1856 const wl_message zwp_tablet_seat_v2_interface_requests[1] = {
1857  {
1858  "destroy",
1859  "",
1860  zwp_tablet_seat_v2_interface_destroy_request,
1861  },
1862 };
1863 
1864 const wl_message zwp_tablet_seat_v2_interface_events[3] = {
1865  {
1866  "tablet_added",
1867  "n",
1868  zwp_tablet_seat_v2_interface_tablet_added_event,
1869  },
1870  {
1871  "tool_added",
1872  "n",
1873  zwp_tablet_seat_v2_interface_tool_added_event,
1874  },
1875  {
1876  "pad_added",
1877  "n",
1878  zwp_tablet_seat_v2_interface_pad_added_event,
1879  },
1880 };
1881 
1882 const wl_interface wayland::detail::zwp_tablet_seat_v2_interface =
1883  {
1884  "zwp_tablet_seat_v2",
1885  1,
1886  1,
1887  zwp_tablet_seat_v2_interface_requests,
1888  3,
1889  zwp_tablet_seat_v2_interface_events,
1890  };
1891 
1892 const wl_interface* zwp_tablet_tool_v2_interface_set_cursor_request[4] = {
1893  NULL,
1894  &surface_interface,
1895  NULL,
1896  NULL,
1897 };
1898 
1899 const wl_interface* zwp_tablet_tool_v2_interface_destroy_request[0] = {
1900 };
1901 
1902 const wl_interface* zwp_tablet_tool_v2_interface_type_event[1] = {
1903  NULL,
1904 };
1905 
1906 const wl_interface* zwp_tablet_tool_v2_interface_hardware_serial_event[2] = {
1907  NULL,
1908  NULL,
1909 };
1910 
1911 const wl_interface* zwp_tablet_tool_v2_interface_hardware_id_wacom_event[2] = {
1912  NULL,
1913  NULL,
1914 };
1915 
1916 const wl_interface* zwp_tablet_tool_v2_interface_capability_event[1] = {
1917  NULL,
1918 };
1919 
1920 const wl_interface* zwp_tablet_tool_v2_interface_done_event[0] = {
1921 };
1922 
1923 const wl_interface* zwp_tablet_tool_v2_interface_removed_event[0] = {
1924 };
1925 
1926 const wl_interface* zwp_tablet_tool_v2_interface_proximity_in_event[3] = {
1927  NULL,
1928  &zwp_tablet_v2_interface,
1929  &surface_interface,
1930 };
1931 
1932 const wl_interface* zwp_tablet_tool_v2_interface_proximity_out_event[0] = {
1933 };
1934 
1935 const wl_interface* zwp_tablet_tool_v2_interface_down_event[1] = {
1936  NULL,
1937 };
1938 
1939 const wl_interface* zwp_tablet_tool_v2_interface_up_event[0] = {
1940 };
1941 
1942 const wl_interface* zwp_tablet_tool_v2_interface_motion_event[2] = {
1943  NULL,
1944  NULL,
1945 };
1946 
1947 const wl_interface* zwp_tablet_tool_v2_interface_pressure_event[1] = {
1948  NULL,
1949 };
1950 
1951 const wl_interface* zwp_tablet_tool_v2_interface_distance_event[1] = {
1952  NULL,
1953 };
1954 
1955 const wl_interface* zwp_tablet_tool_v2_interface_tilt_event[2] = {
1956  NULL,
1957  NULL,
1958 };
1959 
1960 const wl_interface* zwp_tablet_tool_v2_interface_rotation_event[1] = {
1961  NULL,
1962 };
1963 
1964 const wl_interface* zwp_tablet_tool_v2_interface_slider_event[1] = {
1965  NULL,
1966 };
1967 
1968 const wl_interface* zwp_tablet_tool_v2_interface_wheel_event[2] = {
1969  NULL,
1970  NULL,
1971 };
1972 
1973 const wl_interface* zwp_tablet_tool_v2_interface_button_event[3] = {
1974  NULL,
1975  NULL,
1976  NULL,
1977 };
1978 
1979 const wl_interface* zwp_tablet_tool_v2_interface_frame_event[1] = {
1980  NULL,
1981 };
1982 
1983 const wl_message zwp_tablet_tool_v2_interface_requests[2] = {
1984  {
1985  "set_cursor",
1986  "u?oii",
1987  zwp_tablet_tool_v2_interface_set_cursor_request,
1988  },
1989  {
1990  "destroy",
1991  "",
1992  zwp_tablet_tool_v2_interface_destroy_request,
1993  },
1994 };
1995 
1996 const wl_message zwp_tablet_tool_v2_interface_events[19] = {
1997  {
1998  "type",
1999  "u",
2000  zwp_tablet_tool_v2_interface_type_event,
2001  },
2002  {
2003  "hardware_serial",
2004  "uu",
2005  zwp_tablet_tool_v2_interface_hardware_serial_event,
2006  },
2007  {
2008  "hardware_id_wacom",
2009  "uu",
2010  zwp_tablet_tool_v2_interface_hardware_id_wacom_event,
2011  },
2012  {
2013  "capability",
2014  "u",
2015  zwp_tablet_tool_v2_interface_capability_event,
2016  },
2017  {
2018  "done",
2019  "",
2020  zwp_tablet_tool_v2_interface_done_event,
2021  },
2022  {
2023  "removed",
2024  "",
2025  zwp_tablet_tool_v2_interface_removed_event,
2026  },
2027  {
2028  "proximity_in",
2029  "uoo",
2030  zwp_tablet_tool_v2_interface_proximity_in_event,
2031  },
2032  {
2033  "proximity_out",
2034  "",
2035  zwp_tablet_tool_v2_interface_proximity_out_event,
2036  },
2037  {
2038  "down",
2039  "u",
2040  zwp_tablet_tool_v2_interface_down_event,
2041  },
2042  {
2043  "up",
2044  "",
2045  zwp_tablet_tool_v2_interface_up_event,
2046  },
2047  {
2048  "motion",
2049  "ff",
2050  zwp_tablet_tool_v2_interface_motion_event,
2051  },
2052  {
2053  "pressure",
2054  "u",
2055  zwp_tablet_tool_v2_interface_pressure_event,
2056  },
2057  {
2058  "distance",
2059  "u",
2060  zwp_tablet_tool_v2_interface_distance_event,
2061  },
2062  {
2063  "tilt",
2064  "ff",
2065  zwp_tablet_tool_v2_interface_tilt_event,
2066  },
2067  {
2068  "rotation",
2069  "f",
2070  zwp_tablet_tool_v2_interface_rotation_event,
2071  },
2072  {
2073  "slider",
2074  "i",
2075  zwp_tablet_tool_v2_interface_slider_event,
2076  },
2077  {
2078  "wheel",
2079  "fi",
2080  zwp_tablet_tool_v2_interface_wheel_event,
2081  },
2082  {
2083  "button",
2084  "uuu",
2085  zwp_tablet_tool_v2_interface_button_event,
2086  },
2087  {
2088  "frame",
2089  "u",
2090  zwp_tablet_tool_v2_interface_frame_event,
2091  },
2092 };
2093 
2094 const wl_interface wayland::detail::zwp_tablet_tool_v2_interface =
2095  {
2096  "zwp_tablet_tool_v2",
2097  1,
2098  2,
2099  zwp_tablet_tool_v2_interface_requests,
2100  19,
2101  zwp_tablet_tool_v2_interface_events,
2102  };
2103 
2104 const wl_interface* zwp_tablet_v2_interface_destroy_request[0] = {
2105 };
2106 
2107 const wl_interface* zwp_tablet_v2_interface_name_event[1] = {
2108  NULL,
2109 };
2110 
2111 const wl_interface* zwp_tablet_v2_interface_id_event[2] = {
2112  NULL,
2113  NULL,
2114 };
2115 
2116 const wl_interface* zwp_tablet_v2_interface_path_event[1] = {
2117  NULL,
2118 };
2119 
2120 const wl_interface* zwp_tablet_v2_interface_done_event[0] = {
2121 };
2122 
2123 const wl_interface* zwp_tablet_v2_interface_removed_event[0] = {
2124 };
2125 
2126 const wl_message zwp_tablet_v2_interface_requests[1] = {
2127  {
2128  "destroy",
2129  "",
2130  zwp_tablet_v2_interface_destroy_request,
2131  },
2132 };
2133 
2134 const wl_message zwp_tablet_v2_interface_events[5] = {
2135  {
2136  "name",
2137  "s",
2138  zwp_tablet_v2_interface_name_event,
2139  },
2140  {
2141  "id",
2142  "uu",
2143  zwp_tablet_v2_interface_id_event,
2144  },
2145  {
2146  "path",
2147  "s",
2148  zwp_tablet_v2_interface_path_event,
2149  },
2150  {
2151  "done",
2152  "",
2153  zwp_tablet_v2_interface_done_event,
2154  },
2155  {
2156  "removed",
2157  "",
2158  zwp_tablet_v2_interface_removed_event,
2159  },
2160 };
2161 
2162 const wl_interface wayland::detail::zwp_tablet_v2_interface =
2163  {
2164  "zwp_tablet_v2",
2165  1,
2166  1,
2167  zwp_tablet_v2_interface_requests,
2168  5,
2169  zwp_tablet_v2_interface_events,
2170  };
2171 
2172 const wl_interface* zwp_tablet_pad_ring_v2_interface_set_feedback_request[2] = {
2173  NULL,
2174  NULL,
2175 };
2176 
2177 const wl_interface* zwp_tablet_pad_ring_v2_interface_destroy_request[0] = {
2178 };
2179 
2180 const wl_interface* zwp_tablet_pad_ring_v2_interface_source_event[1] = {
2181  NULL,
2182 };
2183 
2184 const wl_interface* zwp_tablet_pad_ring_v2_interface_angle_event[1] = {
2185  NULL,
2186 };
2187 
2188 const wl_interface* zwp_tablet_pad_ring_v2_interface_stop_event[0] = {
2189 };
2190 
2191 const wl_interface* zwp_tablet_pad_ring_v2_interface_frame_event[1] = {
2192  NULL,
2193 };
2194 
2195 const wl_message zwp_tablet_pad_ring_v2_interface_requests[2] = {
2196  {
2197  "set_feedback",
2198  "su",
2199  zwp_tablet_pad_ring_v2_interface_set_feedback_request,
2200  },
2201  {
2202  "destroy",
2203  "",
2204  zwp_tablet_pad_ring_v2_interface_destroy_request,
2205  },
2206 };
2207 
2208 const wl_message zwp_tablet_pad_ring_v2_interface_events[4] = {
2209  {
2210  "source",
2211  "u",
2212  zwp_tablet_pad_ring_v2_interface_source_event,
2213  },
2214  {
2215  "angle",
2216  "f",
2217  zwp_tablet_pad_ring_v2_interface_angle_event,
2218  },
2219  {
2220  "stop",
2221  "",
2222  zwp_tablet_pad_ring_v2_interface_stop_event,
2223  },
2224  {
2225  "frame",
2226  "u",
2227  zwp_tablet_pad_ring_v2_interface_frame_event,
2228  },
2229 };
2230 
2231 const wl_interface wayland::detail::zwp_tablet_pad_ring_v2_interface =
2232  {
2233  "zwp_tablet_pad_ring_v2",
2234  1,
2235  2,
2236  zwp_tablet_pad_ring_v2_interface_requests,
2237  4,
2238  zwp_tablet_pad_ring_v2_interface_events,
2239  };
2240 
2241 const wl_interface* zwp_tablet_pad_strip_v2_interface_set_feedback_request[2] = {
2242  NULL,
2243  NULL,
2244 };
2245 
2246 const wl_interface* zwp_tablet_pad_strip_v2_interface_destroy_request[0] = {
2247 };
2248 
2249 const wl_interface* zwp_tablet_pad_strip_v2_interface_source_event[1] = {
2250  NULL,
2251 };
2252 
2253 const wl_interface* zwp_tablet_pad_strip_v2_interface_position_event[1] = {
2254  NULL,
2255 };
2256 
2257 const wl_interface* zwp_tablet_pad_strip_v2_interface_stop_event[0] = {
2258 };
2259 
2260 const wl_interface* zwp_tablet_pad_strip_v2_interface_frame_event[1] = {
2261  NULL,
2262 };
2263 
2264 const wl_message zwp_tablet_pad_strip_v2_interface_requests[2] = {
2265  {
2266  "set_feedback",
2267  "su",
2268  zwp_tablet_pad_strip_v2_interface_set_feedback_request,
2269  },
2270  {
2271  "destroy",
2272  "",
2273  zwp_tablet_pad_strip_v2_interface_destroy_request,
2274  },
2275 };
2276 
2277 const wl_message zwp_tablet_pad_strip_v2_interface_events[4] = {
2278  {
2279  "source",
2280  "u",
2281  zwp_tablet_pad_strip_v2_interface_source_event,
2282  },
2283  {
2284  "position",
2285  "u",
2286  zwp_tablet_pad_strip_v2_interface_position_event,
2287  },
2288  {
2289  "stop",
2290  "",
2291  zwp_tablet_pad_strip_v2_interface_stop_event,
2292  },
2293  {
2294  "frame",
2295  "u",
2296  zwp_tablet_pad_strip_v2_interface_frame_event,
2297  },
2298 };
2299 
2300 const wl_interface wayland::detail::zwp_tablet_pad_strip_v2_interface =
2301  {
2302  "zwp_tablet_pad_strip_v2",
2303  1,
2304  2,
2305  zwp_tablet_pad_strip_v2_interface_requests,
2306  4,
2307  zwp_tablet_pad_strip_v2_interface_events,
2308  };
2309 
2310 const wl_interface* zwp_tablet_pad_group_v2_interface_destroy_request[0] = {
2311 };
2312 
2313 const wl_interface* zwp_tablet_pad_group_v2_interface_buttons_event[1] = {
2314  NULL,
2315 };
2316 
2317 const wl_interface* zwp_tablet_pad_group_v2_interface_ring_event[1] = {
2318  &zwp_tablet_pad_ring_v2_interface,
2319 };
2320 
2321 const wl_interface* zwp_tablet_pad_group_v2_interface_strip_event[1] = {
2322  &zwp_tablet_pad_strip_v2_interface,
2323 };
2324 
2325 const wl_interface* zwp_tablet_pad_group_v2_interface_modes_event[1] = {
2326  NULL,
2327 };
2328 
2329 const wl_interface* zwp_tablet_pad_group_v2_interface_done_event[0] = {
2330 };
2331 
2332 const wl_interface* zwp_tablet_pad_group_v2_interface_mode_switch_event[3] = {
2333  NULL,
2334  NULL,
2335  NULL,
2336 };
2337 
2338 const wl_message zwp_tablet_pad_group_v2_interface_requests[1] = {
2339  {
2340  "destroy",
2341  "",
2342  zwp_tablet_pad_group_v2_interface_destroy_request,
2343  },
2344 };
2345 
2346 const wl_message zwp_tablet_pad_group_v2_interface_events[6] = {
2347  {
2348  "buttons",
2349  "a",
2350  zwp_tablet_pad_group_v2_interface_buttons_event,
2351  },
2352  {
2353  "ring",
2354  "n",
2355  zwp_tablet_pad_group_v2_interface_ring_event,
2356  },
2357  {
2358  "strip",
2359  "n",
2360  zwp_tablet_pad_group_v2_interface_strip_event,
2361  },
2362  {
2363  "modes",
2364  "u",
2365  zwp_tablet_pad_group_v2_interface_modes_event,
2366  },
2367  {
2368  "done",
2369  "",
2370  zwp_tablet_pad_group_v2_interface_done_event,
2371  },
2372  {
2373  "mode_switch",
2374  "uuu",
2375  zwp_tablet_pad_group_v2_interface_mode_switch_event,
2376  },
2377 };
2378 
2379 const wl_interface wayland::detail::zwp_tablet_pad_group_v2_interface =
2380  {
2381  "zwp_tablet_pad_group_v2",
2382  1,
2383  1,
2384  zwp_tablet_pad_group_v2_interface_requests,
2385  6,
2386  zwp_tablet_pad_group_v2_interface_events,
2387  };
2388 
2389 const wl_interface* zwp_tablet_pad_v2_interface_set_feedback_request[3] = {
2390  NULL,
2391  NULL,
2392  NULL,
2393 };
2394 
2395 const wl_interface* zwp_tablet_pad_v2_interface_destroy_request[0] = {
2396 };
2397 
2398 const wl_interface* zwp_tablet_pad_v2_interface_group_event[1] = {
2399  &zwp_tablet_pad_group_v2_interface,
2400 };
2401 
2402 const wl_interface* zwp_tablet_pad_v2_interface_path_event[1] = {
2403  NULL,
2404 };
2405 
2406 const wl_interface* zwp_tablet_pad_v2_interface_buttons_event[1] = {
2407  NULL,
2408 };
2409 
2410 const wl_interface* zwp_tablet_pad_v2_interface_done_event[0] = {
2411 };
2412 
2413 const wl_interface* zwp_tablet_pad_v2_interface_button_event[3] = {
2414  NULL,
2415  NULL,
2416  NULL,
2417 };
2418 
2419 const wl_interface* zwp_tablet_pad_v2_interface_enter_event[3] = {
2420  NULL,
2421  &zwp_tablet_v2_interface,
2422  &surface_interface,
2423 };
2424 
2425 const wl_interface* zwp_tablet_pad_v2_interface_leave_event[2] = {
2426  NULL,
2427  &surface_interface,
2428 };
2429 
2430 const wl_interface* zwp_tablet_pad_v2_interface_removed_event[0] = {
2431 };
2432 
2433 const wl_message zwp_tablet_pad_v2_interface_requests[2] = {
2434  {
2435  "set_feedback",
2436  "usu",
2437  zwp_tablet_pad_v2_interface_set_feedback_request,
2438  },
2439  {
2440  "destroy",
2441  "",
2442  zwp_tablet_pad_v2_interface_destroy_request,
2443  },
2444 };
2445 
2446 const wl_message zwp_tablet_pad_v2_interface_events[8] = {
2447  {
2448  "group",
2449  "n",
2450  zwp_tablet_pad_v2_interface_group_event,
2451  },
2452  {
2453  "path",
2454  "s",
2455  zwp_tablet_pad_v2_interface_path_event,
2456  },
2457  {
2458  "buttons",
2459  "u",
2460  zwp_tablet_pad_v2_interface_buttons_event,
2461  },
2462  {
2463  "done",
2464  "",
2465  zwp_tablet_pad_v2_interface_done_event,
2466  },
2467  {
2468  "button",
2469  "uuu",
2470  zwp_tablet_pad_v2_interface_button_event,
2471  },
2472  {
2473  "enter",
2474  "uoo",
2475  zwp_tablet_pad_v2_interface_enter_event,
2476  },
2477  {
2478  "leave",
2479  "uo",
2480  zwp_tablet_pad_v2_interface_leave_event,
2481  },
2482  {
2483  "removed",
2484  "",
2485  zwp_tablet_pad_v2_interface_removed_event,
2486  },
2487 };
2488 
2489 const wl_interface wayland::detail::zwp_tablet_pad_v2_interface =
2490  {
2491  "zwp_tablet_pad_v2",
2492  1,
2493  2,
2494  zwp_tablet_pad_v2_interface_requests,
2495  8,
2496  zwp_tablet_pad_v2_interface_events,
2497  };
2498 
2499 const wl_interface* zwp_text_input_v1_interface_activate_request[2] = {
2500  &seat_interface,
2501  &surface_interface,
2502 };
2503 
2504 const wl_interface* zwp_text_input_v1_interface_deactivate_request[1] = {
2505  &seat_interface,
2506 };
2507 
2508 const wl_interface* zwp_text_input_v1_interface_show_input_panel_request[0] = {
2509 };
2510 
2511 const wl_interface* zwp_text_input_v1_interface_hide_input_panel_request[0] = {
2512 };
2513 
2514 const wl_interface* zwp_text_input_v1_interface_reset_request[0] = {
2515 };
2516 
2517 const wl_interface* zwp_text_input_v1_interface_set_surrounding_text_request[3] = {
2518  NULL,
2519  NULL,
2520  NULL,
2521 };
2522 
2523 const wl_interface* zwp_text_input_v1_interface_set_content_type_request[2] = {
2524  NULL,
2525  NULL,
2526 };
2527 
2528 const wl_interface* zwp_text_input_v1_interface_set_cursor_rectangle_request[4] = {
2529  NULL,
2530  NULL,
2531  NULL,
2532  NULL,
2533 };
2534 
2535 const wl_interface* zwp_text_input_v1_interface_set_preferred_language_request[1] = {
2536  NULL,
2537 };
2538 
2539 const wl_interface* zwp_text_input_v1_interface_commit_state_request[1] = {
2540  NULL,
2541 };
2542 
2543 const wl_interface* zwp_text_input_v1_interface_invoke_action_request[2] = {
2544  NULL,
2545  NULL,
2546 };
2547 
2548 const wl_interface* zwp_text_input_v1_interface_enter_event[1] = {
2549  &surface_interface,
2550 };
2551 
2552 const wl_interface* zwp_text_input_v1_interface_leave_event[0] = {
2553 };
2554 
2555 const wl_interface* zwp_text_input_v1_interface_modifiers_map_event[1] = {
2556  NULL,
2557 };
2558 
2559 const wl_interface* zwp_text_input_v1_interface_input_panel_state_event[1] = {
2560  NULL,
2561 };
2562 
2563 const wl_interface* zwp_text_input_v1_interface_preedit_string_event[3] = {
2564  NULL,
2565  NULL,
2566  NULL,
2567 };
2568 
2569 const wl_interface* zwp_text_input_v1_interface_preedit_styling_event[3] = {
2570  NULL,
2571  NULL,
2572  NULL,
2573 };
2574 
2575 const wl_interface* zwp_text_input_v1_interface_preedit_cursor_event[1] = {
2576  NULL,
2577 };
2578 
2579 const wl_interface* zwp_text_input_v1_interface_commit_string_event[2] = {
2580  NULL,
2581  NULL,
2582 };
2583 
2584 const wl_interface* zwp_text_input_v1_interface_cursor_position_event[2] = {
2585  NULL,
2586  NULL,
2587 };
2588 
2589 const wl_interface* zwp_text_input_v1_interface_delete_surrounding_text_event[2] = {
2590  NULL,
2591  NULL,
2592 };
2593 
2594 const wl_interface* zwp_text_input_v1_interface_keysym_event[5] = {
2595  NULL,
2596  NULL,
2597  NULL,
2598  NULL,
2599  NULL,
2600 };
2601 
2602 const wl_interface* zwp_text_input_v1_interface_language_event[2] = {
2603  NULL,
2604  NULL,
2605 };
2606 
2607 const wl_interface* zwp_text_input_v1_interface_text_direction_event[2] = {
2608  NULL,
2609  NULL,
2610 };
2611 
2612 const wl_message zwp_text_input_v1_interface_requests[11] = {
2613  {
2614  "activate",
2615  "oo",
2616  zwp_text_input_v1_interface_activate_request,
2617  },
2618  {
2619  "deactivate",
2620  "o",
2621  zwp_text_input_v1_interface_deactivate_request,
2622  },
2623  {
2624  "show_input_panel",
2625  "",
2626  zwp_text_input_v1_interface_show_input_panel_request,
2627  },
2628  {
2629  "hide_input_panel",
2630  "",
2631  zwp_text_input_v1_interface_hide_input_panel_request,
2632  },
2633  {
2634  "reset",
2635  "",
2636  zwp_text_input_v1_interface_reset_request,
2637  },
2638  {
2639  "set_surrounding_text",
2640  "suu",
2641  zwp_text_input_v1_interface_set_surrounding_text_request,
2642  },
2643  {
2644  "set_content_type",
2645  "uu",
2646  zwp_text_input_v1_interface_set_content_type_request,
2647  },
2648  {
2649  "set_cursor_rectangle",
2650  "iiii",
2651  zwp_text_input_v1_interface_set_cursor_rectangle_request,
2652  },
2653  {
2654  "set_preferred_language",
2655  "s",
2656  zwp_text_input_v1_interface_set_preferred_language_request,
2657  },
2658  {
2659  "commit_state",
2660  "u",
2661  zwp_text_input_v1_interface_commit_state_request,
2662  },
2663  {
2664  "invoke_action",
2665  "uu",
2666  zwp_text_input_v1_interface_invoke_action_request,
2667  },
2668 };
2669 
2670 const wl_message zwp_text_input_v1_interface_events[13] = {
2671  {
2672  "enter",
2673  "o",
2674  zwp_text_input_v1_interface_enter_event,
2675  },
2676  {
2677  "leave",
2678  "",
2679  zwp_text_input_v1_interface_leave_event,
2680  },
2681  {
2682  "modifiers_map",
2683  "a",
2684  zwp_text_input_v1_interface_modifiers_map_event,
2685  },
2686  {
2687  "input_panel_state",
2688  "u",
2689  zwp_text_input_v1_interface_input_panel_state_event,
2690  },
2691  {
2692  "preedit_string",
2693  "uss",
2694  zwp_text_input_v1_interface_preedit_string_event,
2695  },
2696  {
2697  "preedit_styling",
2698  "uuu",
2699  zwp_text_input_v1_interface_preedit_styling_event,
2700  },
2701  {
2702  "preedit_cursor",
2703  "i",
2704  zwp_text_input_v1_interface_preedit_cursor_event,
2705  },
2706  {
2707  "commit_string",
2708  "us",
2709  zwp_text_input_v1_interface_commit_string_event,
2710  },
2711  {
2712  "cursor_position",
2713  "ii",
2714  zwp_text_input_v1_interface_cursor_position_event,
2715  },
2716  {
2717  "delete_surrounding_text",
2718  "iu",
2719  zwp_text_input_v1_interface_delete_surrounding_text_event,
2720  },
2721  {
2722  "keysym",
2723  "uuuuu",
2724  zwp_text_input_v1_interface_keysym_event,
2725  },
2726  {
2727  "language",
2728  "us",
2729  zwp_text_input_v1_interface_language_event,
2730  },
2731  {
2732  "text_direction",
2733  "uu",
2734  zwp_text_input_v1_interface_text_direction_event,
2735  },
2736 };
2737 
2738 const wl_interface wayland::detail::zwp_text_input_v1_interface =
2739  {
2740  "zwp_text_input_v1",
2741  1,
2742  11,
2743  zwp_text_input_v1_interface_requests,
2744  13,
2745  zwp_text_input_v1_interface_events,
2746  };
2747 
2748 const wl_interface* zwp_text_input_manager_v1_interface_create_text_input_request[1] = {
2749  &zwp_text_input_v1_interface,
2750 };
2751 
2752 const wl_message zwp_text_input_manager_v1_interface_requests[1] = {
2753  {
2754  "create_text_input",
2755  "n",
2756  zwp_text_input_manager_v1_interface_create_text_input_request,
2757  },
2758 };
2759 
2760 const wl_message zwp_text_input_manager_v1_interface_events[0] = {
2761 };
2762 
2763 const wl_interface wayland::detail::zwp_text_input_manager_v1_interface =
2764  {
2765  "zwp_text_input_manager_v1",
2766  1,
2767  1,
2768  zwp_text_input_manager_v1_interface_requests,
2769  0,
2770  zwp_text_input_manager_v1_interface_events,
2771  };
2772 
2773 const wl_interface* zwp_text_input_v3_interface_destroy_request[0] = {
2774 };
2775 
2776 const wl_interface* zwp_text_input_v3_interface_enable_request[0] = {
2777 };
2778 
2779 const wl_interface* zwp_text_input_v3_interface_disable_request[0] = {
2780 };
2781 
2782 const wl_interface* zwp_text_input_v3_interface_set_surrounding_text_request[3] = {
2783  NULL,
2784  NULL,
2785  NULL,
2786 };
2787 
2788 const wl_interface* zwp_text_input_v3_interface_set_text_change_cause_request[1] = {
2789  NULL,
2790 };
2791 
2792 const wl_interface* zwp_text_input_v3_interface_set_content_type_request[2] = {
2793  NULL,
2794  NULL,
2795 };
2796 
2797 const wl_interface* zwp_text_input_v3_interface_set_cursor_rectangle_request[4] = {
2798  NULL,
2799  NULL,
2800  NULL,
2801  NULL,
2802 };
2803 
2804 const wl_interface* zwp_text_input_v3_interface_commit_request[0] = {
2805 };
2806 
2807 const wl_interface* zwp_text_input_v3_interface_enter_event[1] = {
2808  &surface_interface,
2809 };
2810 
2811 const wl_interface* zwp_text_input_v3_interface_leave_event[1] = {
2812  &surface_interface,
2813 };
2814 
2815 const wl_interface* zwp_text_input_v3_interface_preedit_string_event[3] = {
2816  NULL,
2817  NULL,
2818  NULL,
2819 };
2820 
2821 const wl_interface* zwp_text_input_v3_interface_commit_string_event[1] = {
2822  NULL,
2823 };
2824 
2825 const wl_interface* zwp_text_input_v3_interface_delete_surrounding_text_event[2] = {
2826  NULL,
2827  NULL,
2828 };
2829 
2830 const wl_interface* zwp_text_input_v3_interface_done_event[1] = {
2831  NULL,
2832 };
2833 
2834 const wl_message zwp_text_input_v3_interface_requests[8] = {
2835  {
2836  "destroy",
2837  "",
2838  zwp_text_input_v3_interface_destroy_request,
2839  },
2840  {
2841  "enable",
2842  "",
2843  zwp_text_input_v3_interface_enable_request,
2844  },
2845  {
2846  "disable",
2847  "",
2848  zwp_text_input_v3_interface_disable_request,
2849  },
2850  {
2851  "set_surrounding_text",
2852  "sii",
2853  zwp_text_input_v3_interface_set_surrounding_text_request,
2854  },
2855  {
2856  "set_text_change_cause",
2857  "u",
2858  zwp_text_input_v3_interface_set_text_change_cause_request,
2859  },
2860  {
2861  "set_content_type",
2862  "uu",
2863  zwp_text_input_v3_interface_set_content_type_request,
2864  },
2865  {
2866  "set_cursor_rectangle",
2867  "iiii",
2868  zwp_text_input_v3_interface_set_cursor_rectangle_request,
2869  },
2870  {
2871  "commit",
2872  "",
2873  zwp_text_input_v3_interface_commit_request,
2874  },
2875 };
2876 
2877 const wl_message zwp_text_input_v3_interface_events[6] = {
2878  {
2879  "enter",
2880  "o",
2881  zwp_text_input_v3_interface_enter_event,
2882  },
2883  {
2884  "leave",
2885  "o",
2886  zwp_text_input_v3_interface_leave_event,
2887  },
2888  {
2889  "preedit_string",
2890  "?sii",
2891  zwp_text_input_v3_interface_preedit_string_event,
2892  },
2893  {
2894  "commit_string",
2895  "?s",
2896  zwp_text_input_v3_interface_commit_string_event,
2897  },
2898  {
2899  "delete_surrounding_text",
2900  "uu",
2901  zwp_text_input_v3_interface_delete_surrounding_text_event,
2902  },
2903  {
2904  "done",
2905  "u",
2906  zwp_text_input_v3_interface_done_event,
2907  },
2908 };
2909 
2910 const wl_interface wayland::detail::zwp_text_input_v3_interface =
2911  {
2912  "zwp_text_input_v3",
2913  1,
2914  8,
2915  zwp_text_input_v3_interface_requests,
2916  6,
2917  zwp_text_input_v3_interface_events,
2918  };
2919 
2920 const wl_interface* zwp_text_input_manager_v3_interface_destroy_request[0] = {
2921 };
2922 
2923 const wl_interface* zwp_text_input_manager_v3_interface_get_text_input_request[2] = {
2924  &zwp_text_input_v3_interface,
2925  &seat_interface,
2926 };
2927 
2928 const wl_message zwp_text_input_manager_v3_interface_requests[2] = {
2929  {
2930  "destroy",
2931  "",
2932  zwp_text_input_manager_v3_interface_destroy_request,
2933  },
2934  {
2935  "get_text_input",
2936  "no",
2937  zwp_text_input_manager_v3_interface_get_text_input_request,
2938  },
2939 };
2940 
2941 const wl_message zwp_text_input_manager_v3_interface_events[0] = {
2942 };
2943 
2944 const wl_interface wayland::detail::zwp_text_input_manager_v3_interface =
2945  {
2946  "zwp_text_input_manager_v3",
2947  1,
2948  2,
2949  zwp_text_input_manager_v3_interface_requests,
2950  0,
2951  zwp_text_input_manager_v3_interface_events,
2952  };
2953 
2954 const wl_interface* zxdg_decoration_manager_v1_interface_destroy_request[0] = {
2955 };
2956 
2957 const wl_interface* zxdg_decoration_manager_v1_interface_get_toplevel_decoration_request[2] = {
2958  &zxdg_toplevel_decoration_v1_interface,
2959  &xdg_toplevel_interface,
2960 };
2961 
2962 const wl_message zxdg_decoration_manager_v1_interface_requests[2] = {
2963  {
2964  "destroy",
2965  "",
2966  zxdg_decoration_manager_v1_interface_destroy_request,
2967  },
2968  {
2969  "get_toplevel_decoration",
2970  "no",
2971  zxdg_decoration_manager_v1_interface_get_toplevel_decoration_request,
2972  },
2973 };
2974 
2975 const wl_message zxdg_decoration_manager_v1_interface_events[0] = {
2976 };
2977 
2978 const wl_interface wayland::detail::zxdg_decoration_manager_v1_interface =
2979  {
2980  "zxdg_decoration_manager_v1",
2981  1,
2982  2,
2983  zxdg_decoration_manager_v1_interface_requests,
2984  0,
2985  zxdg_decoration_manager_v1_interface_events,
2986  };
2987 
2988 const wl_interface* zxdg_toplevel_decoration_v1_interface_destroy_request[0] = {
2989 };
2990 
2991 const wl_interface* zxdg_toplevel_decoration_v1_interface_set_mode_request[1] = {
2992  NULL,
2993 };
2994 
2995 const wl_interface* zxdg_toplevel_decoration_v1_interface_unset_mode_request[0] = {
2996 };
2997 
2998 const wl_interface* zxdg_toplevel_decoration_v1_interface_configure_event[1] = {
2999  NULL,
3000 };
3001 
3002 const wl_message zxdg_toplevel_decoration_v1_interface_requests[3] = {
3003  {
3004  "destroy",
3005  "",
3006  zxdg_toplevel_decoration_v1_interface_destroy_request,
3007  },
3008  {
3009  "set_mode",
3010  "u",
3011  zxdg_toplevel_decoration_v1_interface_set_mode_request,
3012  },
3013  {
3014  "unset_mode",
3015  "",
3016  zxdg_toplevel_decoration_v1_interface_unset_mode_request,
3017  },
3018 };
3019 
3020 const wl_message zxdg_toplevel_decoration_v1_interface_events[1] = {
3021  {
3022  "configure",
3023  "u",
3024  zxdg_toplevel_decoration_v1_interface_configure_event,
3025  },
3026 };
3027 
3028 const wl_interface wayland::detail::zxdg_toplevel_decoration_v1_interface =
3029  {
3030  "zxdg_toplevel_decoration_v1",
3031  1,
3032  3,
3033  zxdg_toplevel_decoration_v1_interface_requests,
3034  1,
3035  zxdg_toplevel_decoration_v1_interface_events,
3036  };
3037 
3038 const wl_interface* zxdg_exporter_v1_interface_destroy_request[0] = {
3039 };
3040 
3041 const wl_interface* zxdg_exporter_v1_interface_export_request[2] = {
3042  &zxdg_exported_v1_interface,
3043  &surface_interface,
3044 };
3045 
3046 const wl_message zxdg_exporter_v1_interface_requests[2] = {
3047  {
3048  "destroy",
3049  "",
3050  zxdg_exporter_v1_interface_destroy_request,
3051  },
3052  {
3053  "export",
3054  "no",
3055  zxdg_exporter_v1_interface_export_request,
3056  },
3057 };
3058 
3059 const wl_message zxdg_exporter_v1_interface_events[0] = {
3060 };
3061 
3062 const wl_interface wayland::detail::zxdg_exporter_v1_interface =
3063  {
3064  "zxdg_exporter_v1",
3065  1,
3066  2,
3067  zxdg_exporter_v1_interface_requests,
3068  0,
3069  zxdg_exporter_v1_interface_events,
3070  };
3071 
3072 const wl_interface* zxdg_importer_v1_interface_destroy_request[0] = {
3073 };
3074 
3075 const wl_interface* zxdg_importer_v1_interface_import_request[2] = {
3076  &zxdg_imported_v1_interface,
3077  NULL,
3078 };
3079 
3080 const wl_message zxdg_importer_v1_interface_requests[2] = {
3081  {
3082  "destroy",
3083  "",
3084  zxdg_importer_v1_interface_destroy_request,
3085  },
3086  {
3087  "import",
3088  "ns",
3089  zxdg_importer_v1_interface_import_request,
3090  },
3091 };
3092 
3093 const wl_message zxdg_importer_v1_interface_events[0] = {
3094 };
3095 
3096 const wl_interface wayland::detail::zxdg_importer_v1_interface =
3097  {
3098  "zxdg_importer_v1",
3099  1,
3100  2,
3101  zxdg_importer_v1_interface_requests,
3102  0,
3103  zxdg_importer_v1_interface_events,
3104  };
3105 
3106 const wl_interface* zxdg_exported_v1_interface_destroy_request[0] = {
3107 };
3108 
3109 const wl_interface* zxdg_exported_v1_interface_handle_event[1] = {
3110  NULL,
3111 };
3112 
3113 const wl_message zxdg_exported_v1_interface_requests[1] = {
3114  {
3115  "destroy",
3116  "",
3117  zxdg_exported_v1_interface_destroy_request,
3118  },
3119 };
3120 
3121 const wl_message zxdg_exported_v1_interface_events[1] = {
3122  {
3123  "handle",
3124  "s",
3125  zxdg_exported_v1_interface_handle_event,
3126  },
3127 };
3128 
3129 const wl_interface wayland::detail::zxdg_exported_v1_interface =
3130  {
3131  "zxdg_exported_v1",
3132  1,
3133  1,
3134  zxdg_exported_v1_interface_requests,
3135  1,
3136  zxdg_exported_v1_interface_events,
3137  };
3138 
3139 const wl_interface* zxdg_imported_v1_interface_destroy_request[0] = {
3140 };
3141 
3142 const wl_interface* zxdg_imported_v1_interface_set_parent_of_request[1] = {
3143  &surface_interface,
3144 };
3145 
3146 const wl_interface* zxdg_imported_v1_interface_destroyed_event[0] = {
3147 };
3148 
3149 const wl_message zxdg_imported_v1_interface_requests[2] = {
3150  {
3151  "destroy",
3152  "",
3153  zxdg_imported_v1_interface_destroy_request,
3154  },
3155  {
3156  "set_parent_of",
3157  "o",
3158  zxdg_imported_v1_interface_set_parent_of_request,
3159  },
3160 };
3161 
3162 const wl_message zxdg_imported_v1_interface_events[1] = {
3163  {
3164  "destroyed",
3165  "",
3166  zxdg_imported_v1_interface_destroyed_event,
3167  },
3168 };
3169 
3170 const wl_interface wayland::detail::zxdg_imported_v1_interface =
3171  {
3172  "zxdg_imported_v1",
3173  1,
3174  2,
3175  zxdg_imported_v1_interface_requests,
3176  1,
3177  zxdg_imported_v1_interface_events,
3178  };
3179 
3180 const wl_interface* zxdg_exporter_v2_interface_destroy_request[0] = {
3181 };
3182 
3183 const wl_interface* zxdg_exporter_v2_interface_export_toplevel_request[2] = {
3184  &zxdg_exported_v2_interface,
3185  &surface_interface,
3186 };
3187 
3188 const wl_message zxdg_exporter_v2_interface_requests[2] = {
3189  {
3190  "destroy",
3191  "",
3192  zxdg_exporter_v2_interface_destroy_request,
3193  },
3194  {
3195  "export_toplevel",
3196  "no",
3197  zxdg_exporter_v2_interface_export_toplevel_request,
3198  },
3199 };
3200 
3201 const wl_message zxdg_exporter_v2_interface_events[0] = {
3202 };
3203 
3204 const wl_interface wayland::detail::zxdg_exporter_v2_interface =
3205  {
3206  "zxdg_exporter_v2",
3207  1,
3208  2,
3209  zxdg_exporter_v2_interface_requests,
3210  0,
3211  zxdg_exporter_v2_interface_events,
3212  };
3213 
3214 const wl_interface* zxdg_importer_v2_interface_destroy_request[0] = {
3215 };
3216 
3217 const wl_interface* zxdg_importer_v2_interface_import_toplevel_request[2] = {
3218  &zxdg_imported_v2_interface,
3219  NULL,
3220 };
3221 
3222 const wl_message zxdg_importer_v2_interface_requests[2] = {
3223  {
3224  "destroy",
3225  "",
3226  zxdg_importer_v2_interface_destroy_request,
3227  },
3228  {
3229  "import_toplevel",
3230  "ns",
3231  zxdg_importer_v2_interface_import_toplevel_request,
3232  },
3233 };
3234 
3235 const wl_message zxdg_importer_v2_interface_events[0] = {
3236 };
3237 
3238 const wl_interface wayland::detail::zxdg_importer_v2_interface =
3239  {
3240  "zxdg_importer_v2",
3241  1,
3242  2,
3243  zxdg_importer_v2_interface_requests,
3244  0,
3245  zxdg_importer_v2_interface_events,
3246  };
3247 
3248 const wl_interface* zxdg_exported_v2_interface_destroy_request[0] = {
3249 };
3250 
3251 const wl_interface* zxdg_exported_v2_interface_handle_event[1] = {
3252  NULL,
3253 };
3254 
3255 const wl_message zxdg_exported_v2_interface_requests[1] = {
3256  {
3257  "destroy",
3258  "",
3259  zxdg_exported_v2_interface_destroy_request,
3260  },
3261 };
3262 
3263 const wl_message zxdg_exported_v2_interface_events[1] = {
3264  {
3265  "handle",
3266  "s",
3267  zxdg_exported_v2_interface_handle_event,
3268  },
3269 };
3270 
3271 const wl_interface wayland::detail::zxdg_exported_v2_interface =
3272  {
3273  "zxdg_exported_v2",
3274  1,
3275  1,
3276  zxdg_exported_v2_interface_requests,
3277  1,
3278  zxdg_exported_v2_interface_events,
3279  };
3280 
3281 const wl_interface* zxdg_imported_v2_interface_destroy_request[0] = {
3282 };
3283 
3284 const wl_interface* zxdg_imported_v2_interface_set_parent_of_request[1] = {
3285  &surface_interface,
3286 };
3287 
3288 const wl_interface* zxdg_imported_v2_interface_destroyed_event[0] = {
3289 };
3290 
3291 const wl_message zxdg_imported_v2_interface_requests[2] = {
3292  {
3293  "destroy",
3294  "",
3295  zxdg_imported_v2_interface_destroy_request,
3296  },
3297  {
3298  "set_parent_of",
3299  "o",
3300  zxdg_imported_v2_interface_set_parent_of_request,
3301  },
3302 };
3303 
3304 const wl_message zxdg_imported_v2_interface_events[1] = {
3305  {
3306  "destroyed",
3307  "",
3308  zxdg_imported_v2_interface_destroyed_event,
3309  },
3310 };
3311 
3312 const wl_interface wayland::detail::zxdg_imported_v2_interface =
3313  {
3314  "zxdg_imported_v2",
3315  1,
3316  2,
3317  zxdg_imported_v2_interface_requests,
3318  1,
3319  zxdg_imported_v2_interface_events,
3320  };
3321 
3322 const wl_interface* zxdg_output_manager_v1_interface_destroy_request[0] = {
3323 };
3324 
3325 const wl_interface* zxdg_output_manager_v1_interface_get_xdg_output_request[2] = {
3326  &zxdg_output_v1_interface,
3327  &output_interface,
3328 };
3329 
3330 const wl_message zxdg_output_manager_v1_interface_requests[2] = {
3331  {
3332  "destroy",
3333  "",
3334  zxdg_output_manager_v1_interface_destroy_request,
3335  },
3336  {
3337  "get_xdg_output",
3338  "no",
3339  zxdg_output_manager_v1_interface_get_xdg_output_request,
3340  },
3341 };
3342 
3343 const wl_message zxdg_output_manager_v1_interface_events[0] = {
3344 };
3345 
3346 const wl_interface wayland::detail::zxdg_output_manager_v1_interface =
3347  {
3348  "zxdg_output_manager_v1",
3349  2,
3350  2,
3351  zxdg_output_manager_v1_interface_requests,
3352  0,
3353  zxdg_output_manager_v1_interface_events,
3354  };
3355 
3356 const wl_interface* zxdg_output_v1_interface_destroy_request[0] = {
3357 };
3358 
3359 const wl_interface* zxdg_output_v1_interface_logical_position_event[2] = {
3360  NULL,
3361  NULL,
3362 };
3363 
3364 const wl_interface* zxdg_output_v1_interface_logical_size_event[2] = {
3365  NULL,
3366  NULL,
3367 };
3368 
3369 const wl_interface* zxdg_output_v1_interface_done_event[0] = {
3370 };
3371 
3372 const wl_interface* zxdg_output_v1_interface_name_event[1] = {
3373  NULL,
3374 };
3375 
3376 const wl_interface* zxdg_output_v1_interface_description_event[1] = {
3377  NULL,
3378 };
3379 
3380 const wl_message zxdg_output_v1_interface_requests[1] = {
3381  {
3382  "destroy",
3383  "",
3384  zxdg_output_v1_interface_destroy_request,
3385  },
3386 };
3387 
3388 const wl_message zxdg_output_v1_interface_events[5] = {
3389  {
3390  "logical_position",
3391  "ii",
3392  zxdg_output_v1_interface_logical_position_event,
3393  },
3394  {
3395  "logical_size",
3396  "ii",
3397  zxdg_output_v1_interface_logical_size_event,
3398  },
3399  {
3400  "done",
3401  "",
3402  zxdg_output_v1_interface_done_event,
3403  },
3404  {
3405  "name",
3406  "2s",
3407  zxdg_output_v1_interface_name_event,
3408  },
3409  {
3410  "description",
3411  "2s",
3412  zxdg_output_v1_interface_description_event,
3413  },
3414 };
3415 
3416 const wl_interface wayland::detail::zxdg_output_v1_interface =
3417  {
3418  "zxdg_output_v1",
3419  2,
3420  1,
3421  zxdg_output_v1_interface_requests,
3422  5,
3423  zxdg_output_v1_interface_events,
3424  };
3425 
3426 const wl_interface* zxdg_shell_v6_interface_destroy_request[0] = {
3427 };
3428 
3429 const wl_interface* zxdg_shell_v6_interface_create_positioner_request[1] = {
3430  &zxdg_positioner_v6_interface,
3431 };
3432 
3433 const wl_interface* zxdg_shell_v6_interface_get_xdg_surface_request[2] = {
3434  &zxdg_surface_v6_interface,
3435  &surface_interface,
3436 };
3437 
3438 const wl_interface* zxdg_shell_v6_interface_pong_request[1] = {
3439  NULL,
3440 };
3441 
3442 const wl_interface* zxdg_shell_v6_interface_ping_event[1] = {
3443  NULL,
3444 };
3445 
3446 const wl_message zxdg_shell_v6_interface_requests[4] = {
3447  {
3448  "destroy",
3449  "",
3450  zxdg_shell_v6_interface_destroy_request,
3451  },
3452  {
3453  "create_positioner",
3454  "n",
3455  zxdg_shell_v6_interface_create_positioner_request,
3456  },
3457  {
3458  "get_xdg_surface",
3459  "no",
3460  zxdg_shell_v6_interface_get_xdg_surface_request,
3461  },
3462  {
3463  "pong",
3464  "u",
3465  zxdg_shell_v6_interface_pong_request,
3466  },
3467 };
3468 
3469 const wl_message zxdg_shell_v6_interface_events[1] = {
3470  {
3471  "ping",
3472  "u",
3473  zxdg_shell_v6_interface_ping_event,
3474  },
3475 };
3476 
3477 const wl_interface wayland::detail::zxdg_shell_v6_interface =
3478  {
3479  "zxdg_shell_v6",
3480  1,
3481  4,
3482  zxdg_shell_v6_interface_requests,
3483  1,
3484  zxdg_shell_v6_interface_events,
3485  };
3486 
3487 const wl_interface* zxdg_positioner_v6_interface_destroy_request[0] = {
3488 };
3489 
3490 const wl_interface* zxdg_positioner_v6_interface_set_size_request[2] = {
3491  NULL,
3492  NULL,
3493 };
3494 
3495 const wl_interface* zxdg_positioner_v6_interface_set_anchor_rect_request[4] = {
3496  NULL,
3497  NULL,
3498  NULL,
3499  NULL,
3500 };
3501 
3502 const wl_interface* zxdg_positioner_v6_interface_set_anchor_request[1] = {
3503  NULL,
3504 };
3505 
3506 const wl_interface* zxdg_positioner_v6_interface_set_gravity_request[1] = {
3507  NULL,
3508 };
3509 
3510 const wl_interface* zxdg_positioner_v6_interface_set_constraint_adjustment_request[1] = {
3511  NULL,
3512 };
3513 
3514 const wl_interface* zxdg_positioner_v6_interface_set_offset_request[2] = {
3515  NULL,
3516  NULL,
3517 };
3518 
3519 const wl_message zxdg_positioner_v6_interface_requests[7] = {
3520  {
3521  "destroy",
3522  "",
3523  zxdg_positioner_v6_interface_destroy_request,
3524  },
3525  {
3526  "set_size",
3527  "ii",
3528  zxdg_positioner_v6_interface_set_size_request,
3529  },
3530  {
3531  "set_anchor_rect",
3532  "iiii",
3533  zxdg_positioner_v6_interface_set_anchor_rect_request,
3534  },
3535  {
3536  "set_anchor",
3537  "u",
3538  zxdg_positioner_v6_interface_set_anchor_request,
3539  },
3540  {
3541  "set_gravity",
3542  "u",
3543  zxdg_positioner_v6_interface_set_gravity_request,
3544  },
3545  {
3546  "set_constraint_adjustment",
3547  "u",
3548  zxdg_positioner_v6_interface_set_constraint_adjustment_request,
3549  },
3550  {
3551  "set_offset",
3552  "ii",
3553  zxdg_positioner_v6_interface_set_offset_request,
3554  },
3555 };
3556 
3557 const wl_message zxdg_positioner_v6_interface_events[0] = {
3558 };
3559 
3560 const wl_interface wayland::detail::zxdg_positioner_v6_interface =
3561  {
3562  "zxdg_positioner_v6",
3563  1,
3564  7,
3565  zxdg_positioner_v6_interface_requests,
3566  0,
3567  zxdg_positioner_v6_interface_events,
3568  };
3569 
3570 const wl_interface* zxdg_surface_v6_interface_destroy_request[0] = {
3571 };
3572 
3573 const wl_interface* zxdg_surface_v6_interface_get_toplevel_request[1] = {
3574  &zxdg_toplevel_v6_interface,
3575 };
3576 
3577 const wl_interface* zxdg_surface_v6_interface_get_popup_request[3] = {
3578  &zxdg_popup_v6_interface,
3579  &zxdg_surface_v6_interface,
3580  &zxdg_positioner_v6_interface,
3581 };
3582 
3583 const wl_interface* zxdg_surface_v6_interface_set_window_geometry_request[4] = {
3584  NULL,
3585  NULL,
3586  NULL,
3587  NULL,
3588 };
3589 
3590 const wl_interface* zxdg_surface_v6_interface_ack_configure_request[1] = {
3591  NULL,
3592 };
3593 
3594 const wl_interface* zxdg_surface_v6_interface_configure_event[1] = {
3595  NULL,
3596 };
3597 
3598 const wl_message zxdg_surface_v6_interface_requests[5] = {
3599  {
3600  "destroy",
3601  "",
3602  zxdg_surface_v6_interface_destroy_request,
3603  },
3604  {
3605  "get_toplevel",
3606  "n",
3607  zxdg_surface_v6_interface_get_toplevel_request,
3608  },
3609  {
3610  "get_popup",
3611  "noo",
3612  zxdg_surface_v6_interface_get_popup_request,
3613  },
3614  {
3615  "set_window_geometry",
3616  "iiii",
3617  zxdg_surface_v6_interface_set_window_geometry_request,
3618  },
3619  {
3620  "ack_configure",
3621  "u",
3622  zxdg_surface_v6_interface_ack_configure_request,
3623  },
3624 };
3625 
3626 const wl_message zxdg_surface_v6_interface_events[1] = {
3627  {
3628  "configure",
3629  "u",
3630  zxdg_surface_v6_interface_configure_event,
3631  },
3632 };
3633 
3634 const wl_interface wayland::detail::zxdg_surface_v6_interface =
3635  {
3636  "zxdg_surface_v6",
3637  1,
3638  5,
3639  zxdg_surface_v6_interface_requests,
3640  1,
3641  zxdg_surface_v6_interface_events,
3642  };
3643 
3644 const wl_interface* zxdg_toplevel_v6_interface_destroy_request[0] = {
3645 };
3646 
3647 const wl_interface* zxdg_toplevel_v6_interface_set_parent_request[1] = {
3648  &zxdg_toplevel_v6_interface,
3649 };
3650 
3651 const wl_interface* zxdg_toplevel_v6_interface_set_title_request[1] = {
3652  NULL,
3653 };
3654 
3655 const wl_interface* zxdg_toplevel_v6_interface_set_app_id_request[1] = {
3656  NULL,
3657 };
3658 
3659 const wl_interface* zxdg_toplevel_v6_interface_show_window_menu_request[4] = {
3660  &seat_interface,
3661  NULL,
3662  NULL,
3663  NULL,
3664 };
3665 
3666 const wl_interface* zxdg_toplevel_v6_interface_move_request[2] = {
3667  &seat_interface,
3668  NULL,
3669 };
3670 
3671 const wl_interface* zxdg_toplevel_v6_interface_resize_request[3] = {
3672  &seat_interface,
3673  NULL,
3674  NULL,
3675 };
3676 
3677 const wl_interface* zxdg_toplevel_v6_interface_set_max_size_request[2] = {
3678  NULL,
3679  NULL,
3680 };
3681 
3682 const wl_interface* zxdg_toplevel_v6_interface_set_min_size_request[2] = {
3683  NULL,
3684  NULL,
3685 };
3686 
3687 const wl_interface* zxdg_toplevel_v6_interface_set_maximized_request[0] = {
3688 };
3689 
3690 const wl_interface* zxdg_toplevel_v6_interface_unset_maximized_request[0] = {
3691 };
3692 
3693 const wl_interface* zxdg_toplevel_v6_interface_set_fullscreen_request[1] = {
3694  &output_interface,
3695 };
3696 
3697 const wl_interface* zxdg_toplevel_v6_interface_unset_fullscreen_request[0] = {
3698 };
3699 
3700 const wl_interface* zxdg_toplevel_v6_interface_set_minimized_request[0] = {
3701 };
3702 
3703 const wl_interface* zxdg_toplevel_v6_interface_configure_event[3] = {
3704  NULL,
3705  NULL,
3706  NULL,
3707 };
3708 
3709 const wl_interface* zxdg_toplevel_v6_interface_close_event[0] = {
3710 };
3711 
3712 const wl_message zxdg_toplevel_v6_interface_requests[14] = {
3713  {
3714  "destroy",
3715  "",
3716  zxdg_toplevel_v6_interface_destroy_request,
3717  },
3718  {
3719  "set_parent",
3720  "?o",
3721  zxdg_toplevel_v6_interface_set_parent_request,
3722  },
3723  {
3724  "set_title",
3725  "s",
3726  zxdg_toplevel_v6_interface_set_title_request,
3727  },
3728  {
3729  "set_app_id",
3730  "s",
3731  zxdg_toplevel_v6_interface_set_app_id_request,
3732  },
3733  {
3734  "show_window_menu",
3735  "ouii",
3736  zxdg_toplevel_v6_interface_show_window_menu_request,
3737  },
3738  {
3739  "move",
3740  "ou",
3741  zxdg_toplevel_v6_interface_move_request,
3742  },
3743  {
3744  "resize",
3745  "ouu",
3746  zxdg_toplevel_v6_interface_resize_request,
3747  },
3748  {
3749  "set_max_size",
3750  "ii",
3751  zxdg_toplevel_v6_interface_set_max_size_request,
3752  },
3753  {
3754  "set_min_size",
3755  "ii",
3756  zxdg_toplevel_v6_interface_set_min_size_request,
3757  },
3758  {
3759  "set_maximized",
3760  "",
3761  zxdg_toplevel_v6_interface_set_maximized_request,
3762  },
3763  {
3764  "unset_maximized",
3765  "",
3766  zxdg_toplevel_v6_interface_unset_maximized_request,
3767  },
3768  {
3769  "set_fullscreen",
3770  "?o",
3771  zxdg_toplevel_v6_interface_set_fullscreen_request,
3772  },
3773  {
3774  "unset_fullscreen",
3775  "",
3776  zxdg_toplevel_v6_interface_unset_fullscreen_request,
3777  },
3778  {
3779  "set_minimized",
3780  "",
3781  zxdg_toplevel_v6_interface_set_minimized_request,
3782  },
3783 };
3784 
3785 const wl_message zxdg_toplevel_v6_interface_events[2] = {
3786  {
3787  "configure",
3788  "iia",
3789  zxdg_toplevel_v6_interface_configure_event,
3790  },
3791  {
3792  "close",
3793  "",
3794  zxdg_toplevel_v6_interface_close_event,
3795  },
3796 };
3797 
3798 const wl_interface wayland::detail::zxdg_toplevel_v6_interface =
3799  {
3800  "zxdg_toplevel_v6",
3801  1,
3802  14,
3803  zxdg_toplevel_v6_interface_requests,
3804  2,
3805  zxdg_toplevel_v6_interface_events,
3806  };
3807 
3808 const wl_interface* zxdg_popup_v6_interface_destroy_request[0] = {
3809 };
3810 
3811 const wl_interface* zxdg_popup_v6_interface_grab_request[2] = {
3812  &seat_interface,
3813  NULL,
3814 };
3815 
3816 const wl_interface* zxdg_popup_v6_interface_configure_event[4] = {
3817  NULL,
3818  NULL,
3819  NULL,
3820  NULL,
3821 };
3822 
3823 const wl_interface* zxdg_popup_v6_interface_popup_done_event[0] = {
3824 };
3825 
3826 const wl_message zxdg_popup_v6_interface_requests[2] = {
3827  {
3828  "destroy",
3829  "",
3830  zxdg_popup_v6_interface_destroy_request,
3831  },
3832  {
3833  "grab",
3834  "ou",
3835  zxdg_popup_v6_interface_grab_request,
3836  },
3837 };
3838 
3839 const wl_message zxdg_popup_v6_interface_events[2] = {
3840  {
3841  "configure",
3842  "iiii",
3843  zxdg_popup_v6_interface_configure_event,
3844  },
3845  {
3846  "popup_done",
3847  "",
3848  zxdg_popup_v6_interface_popup_done_event,
3849  },
3850 };
3851 
3852 const wl_interface wayland::detail::zxdg_popup_v6_interface =
3853  {
3854  "zxdg_popup_v6",
3855  1,
3856  2,
3857  zxdg_popup_v6_interface_requests,
3858  2,
3859  zxdg_popup_v6_interface_events,
3860  };
3861 
3862 const wl_interface* zwp_xwayland_keyboard_grab_manager_v1_interface_destroy_request[0] = {
3863 };
3864 
3865 const wl_interface* zwp_xwayland_keyboard_grab_manager_v1_interface_grab_keyboard_request[3] = {
3866  &zwp_xwayland_keyboard_grab_v1_interface,
3867  &surface_interface,
3868  &seat_interface,
3869 };
3870 
3871 const wl_message zwp_xwayland_keyboard_grab_manager_v1_interface_requests[2] = {
3872  {
3873  "destroy",
3874  "",
3875  zwp_xwayland_keyboard_grab_manager_v1_interface_destroy_request,
3876  },
3877  {
3878  "grab_keyboard",
3879  "noo",
3880  zwp_xwayland_keyboard_grab_manager_v1_interface_grab_keyboard_request,
3881  },
3882 };
3883 
3884 const wl_message zwp_xwayland_keyboard_grab_manager_v1_interface_events[0] = {
3885 };
3886 
3887 const wl_interface wayland::detail::zwp_xwayland_keyboard_grab_manager_v1_interface =
3888  {
3889  "zwp_xwayland_keyboard_grab_manager_v1",
3890  1,
3891  2,
3892  zwp_xwayland_keyboard_grab_manager_v1_interface_requests,
3893  0,
3894  zwp_xwayland_keyboard_grab_manager_v1_interface_events,
3895  };
3896 
3897 const wl_interface* zwp_xwayland_keyboard_grab_v1_interface_destroy_request[0] = {
3898 };
3899 
3900 const wl_message zwp_xwayland_keyboard_grab_v1_interface_requests[1] = {
3901  {
3902  "destroy",
3903  "",
3904  zwp_xwayland_keyboard_grab_v1_interface_destroy_request,
3905  },
3906 };
3907 
3908 const wl_message zwp_xwayland_keyboard_grab_v1_interface_events[0] = {
3909 };
3910 
3911 const wl_interface wayland::detail::zwp_xwayland_keyboard_grab_v1_interface =
3912  {
3913  "zwp_xwayland_keyboard_grab_v1",
3914  1,
3915  1,
3916  zwp_xwayland_keyboard_grab_v1_interface_requests,
3917  0,
3918  zwp_xwayland_keyboard_grab_v1_interface_events,
3919  };
3920 
3921 zwp_fullscreen_shell_v1_t::zwp_fullscreen_shell_v1_t(const proxy_t &p)
3922  : proxy_t(p)
3923 {
3925  {
3926  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
3927  }
3928  interface = &zwp_fullscreen_shell_v1_interface;
3929  copy_constructor = [] (const proxy_t &p) -> proxy_t
3930  { return zwp_fullscreen_shell_v1_t(p); };
3931 }
3932 
3933 zwp_fullscreen_shell_v1_t::zwp_fullscreen_shell_v1_t()
3934 {
3935  interface = &zwp_fullscreen_shell_v1_interface;
3936  copy_constructor = [] (const proxy_t &p) -> proxy_t
3937  { return zwp_fullscreen_shell_v1_t(p); };
3938 }
3939 
3940 zwp_fullscreen_shell_v1_t::zwp_fullscreen_shell_v1_t(zwp_fullscreen_shell_v1 *p, wrapper_type t)
3941  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
3943  {
3944  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
3945  }
3946  interface = &zwp_fullscreen_shell_v1_interface;
3947  copy_constructor = [] (const proxy_t &p) -> proxy_t
3948  { return zwp_fullscreen_shell_v1_t(p); };
3949 }
3950 
3951 zwp_fullscreen_shell_v1_t::zwp_fullscreen_shell_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
3952  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
3953  interface = &zwp_fullscreen_shell_v1_interface;
3954  copy_constructor = [] (const proxy_t &p) -> proxy_t
3955  { return zwp_fullscreen_shell_v1_t(p); };
3956 }
3957 
3958 zwp_fullscreen_shell_v1_t zwp_fullscreen_shell_v1_t::proxy_create_wrapper()
3959 {
3960  return {*this, construct_proxy_wrapper_tag()};
3961 }
3962 
3963 const std::string zwp_fullscreen_shell_v1_t::interface_name = "zwp_fullscreen_shell_v1";
3964 
3965 zwp_fullscreen_shell_v1_t::operator zwp_fullscreen_shell_v1*() const
3966 {
3967  return reinterpret_cast<zwp_fullscreen_shell_v1*> (c_ptr());
3968 }
3969 
3971 {
3972  marshal(0u);
3973 }
3974 
3975 void zwp_fullscreen_shell_v1_t::present_surface(surface_t surface, zwp_fullscreen_shell_v1_present_method method, output_t output)
3976 {
3977  marshal(1u, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, static_cast<uint32_t>(method), output.proxy_has_object() ? reinterpret_cast<wl_object*>(output.c_ptr()) : nullptr);
3978 }
3979 
3980 zwp_fullscreen_shell_mode_feedback_v1_t zwp_fullscreen_shell_v1_t::present_surface_for_mode(surface_t surface, output_t output, int32_t framerate)
3981 {
3982  proxy_t p = marshal_constructor(2u, &zwp_fullscreen_shell_mode_feedback_v1_interface, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, output.proxy_has_object() ? reinterpret_cast<wl_object*>(output.c_ptr()) : nullptr, framerate, nullptr);
3983  return zwp_fullscreen_shell_mode_feedback_v1_t(p);
3984 }
3985 
3986 std::function<void(zwp_fullscreen_shell_v1_capability)> &zwp_fullscreen_shell_v1_t::on_capability()
3987 {
3988  return std::static_pointer_cast<events_t>(get_events())->capability;
3989 }
3990 
3991 int zwp_fullscreen_shell_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
3992 {
3993  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
3994  switch(opcode)
3995  {
3996  case 0:
3997  if(events->capability) events->capability(zwp_fullscreen_shell_v1_capability(args[0].get<uint32_t>()));
3998  break;
3999  }
4000  return 0;
4001 }
4002 
4003 
4004 
4005 
4006 zwp_fullscreen_shell_mode_feedback_v1_t::zwp_fullscreen_shell_mode_feedback_v1_t(const proxy_t &p)
4007  : proxy_t(p)
4008 {
4010  {
4011  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4012  }
4013  interface = &zwp_fullscreen_shell_mode_feedback_v1_interface;
4014  copy_constructor = [] (const proxy_t &p) -> proxy_t
4015  { return zwp_fullscreen_shell_mode_feedback_v1_t(p); };
4016 }
4017 
4018 zwp_fullscreen_shell_mode_feedback_v1_t::zwp_fullscreen_shell_mode_feedback_v1_t()
4019 {
4020  interface = &zwp_fullscreen_shell_mode_feedback_v1_interface;
4021  copy_constructor = [] (const proxy_t &p) -> proxy_t
4022  { return zwp_fullscreen_shell_mode_feedback_v1_t(p); };
4023 }
4024 
4025 zwp_fullscreen_shell_mode_feedback_v1_t::zwp_fullscreen_shell_mode_feedback_v1_t(zwp_fullscreen_shell_mode_feedback_v1 *p, wrapper_type t)
4026  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4028  {
4029  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4030  }
4031  interface = &zwp_fullscreen_shell_mode_feedback_v1_interface;
4032  copy_constructor = [] (const proxy_t &p) -> proxy_t
4033  { return zwp_fullscreen_shell_mode_feedback_v1_t(p); };
4034 }
4035 
4036 zwp_fullscreen_shell_mode_feedback_v1_t::zwp_fullscreen_shell_mode_feedback_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4037  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4038  interface = &zwp_fullscreen_shell_mode_feedback_v1_interface;
4039  copy_constructor = [] (const proxy_t &p) -> proxy_t
4040  { return zwp_fullscreen_shell_mode_feedback_v1_t(p); };
4041 }
4042 
4043 zwp_fullscreen_shell_mode_feedback_v1_t zwp_fullscreen_shell_mode_feedback_v1_t::proxy_create_wrapper()
4044 {
4045  return {*this, construct_proxy_wrapper_tag()};
4046 }
4047 
4048 const std::string zwp_fullscreen_shell_mode_feedback_v1_t::interface_name = "zwp_fullscreen_shell_mode_feedback_v1";
4049 
4050 zwp_fullscreen_shell_mode_feedback_v1_t::operator zwp_fullscreen_shell_mode_feedback_v1*() const
4051 {
4052  return reinterpret_cast<zwp_fullscreen_shell_mode_feedback_v1*> (c_ptr());
4053 }
4054 
4055 std::function<void()> &zwp_fullscreen_shell_mode_feedback_v1_t::on_mode_successful()
4056 {
4057  return std::static_pointer_cast<events_t>(get_events())->mode_successful;
4058 }
4059 
4060 std::function<void()> &zwp_fullscreen_shell_mode_feedback_v1_t::on_mode_failed()
4061 {
4062  return std::static_pointer_cast<events_t>(get_events())->mode_failed;
4063 }
4064 
4065 std::function<void()> &zwp_fullscreen_shell_mode_feedback_v1_t::on_present_cancelled()
4066 {
4067  return std::static_pointer_cast<events_t>(get_events())->present_cancelled;
4068 }
4069 
4070 int zwp_fullscreen_shell_mode_feedback_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4071 {
4072  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4073  switch(opcode)
4074  {
4075  case 0:
4076  if(events->mode_successful) events->mode_successful();
4077  break;
4078  case 1:
4079  if(events->mode_failed) events->mode_failed();
4080  break;
4081  case 2:
4082  if(events->present_cancelled) events->present_cancelled();
4083  break;
4084  }
4085  return 0;
4086 }
4087 
4088 zwp_idle_inhibit_manager_v1_t::zwp_idle_inhibit_manager_v1_t(const proxy_t &p)
4089  : proxy_t(p)
4090 {
4092  {
4093  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4094  set_destroy_opcode(0u);
4095  }
4096  interface = &zwp_idle_inhibit_manager_v1_interface;
4097  copy_constructor = [] (const proxy_t &p) -> proxy_t
4098  { return zwp_idle_inhibit_manager_v1_t(p); };
4099 }
4100 
4101 zwp_idle_inhibit_manager_v1_t::zwp_idle_inhibit_manager_v1_t()
4102 {
4103  interface = &zwp_idle_inhibit_manager_v1_interface;
4104  copy_constructor = [] (const proxy_t &p) -> proxy_t
4105  { return zwp_idle_inhibit_manager_v1_t(p); };
4106 }
4107 
4108 zwp_idle_inhibit_manager_v1_t::zwp_idle_inhibit_manager_v1_t(zwp_idle_inhibit_manager_v1 *p, wrapper_type t)
4109  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4111  {
4112  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4113  set_destroy_opcode(0u);
4114  }
4115  interface = &zwp_idle_inhibit_manager_v1_interface;
4116  copy_constructor = [] (const proxy_t &p) -> proxy_t
4117  { return zwp_idle_inhibit_manager_v1_t(p); };
4118 }
4119 
4120 zwp_idle_inhibit_manager_v1_t::zwp_idle_inhibit_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4121  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4122  interface = &zwp_idle_inhibit_manager_v1_interface;
4123  copy_constructor = [] (const proxy_t &p) -> proxy_t
4124  { return zwp_idle_inhibit_manager_v1_t(p); };
4125 }
4126 
4127 zwp_idle_inhibit_manager_v1_t zwp_idle_inhibit_manager_v1_t::proxy_create_wrapper()
4128 {
4129  return {*this, construct_proxy_wrapper_tag()};
4130 }
4131 
4132 const std::string zwp_idle_inhibit_manager_v1_t::interface_name = "zwp_idle_inhibit_manager_v1";
4133 
4134 zwp_idle_inhibit_manager_v1_t::operator zwp_idle_inhibit_manager_v1*() const
4135 {
4136  return reinterpret_cast<zwp_idle_inhibit_manager_v1*> (c_ptr());
4137 }
4138 
4140 {
4141  proxy_t p = marshal_constructor(1u, &zwp_idle_inhibitor_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
4142  return zwp_idle_inhibitor_v1_t(p);
4143 }
4144 
4145 int zwp_idle_inhibit_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4146 {
4147  return 0;
4148 }
4149 
4150 zwp_idle_inhibitor_v1_t::zwp_idle_inhibitor_v1_t(const proxy_t &p)
4151  : proxy_t(p)
4152 {
4154  {
4155  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4156  set_destroy_opcode(0u);
4157  }
4158  interface = &zwp_idle_inhibitor_v1_interface;
4159  copy_constructor = [] (const proxy_t &p) -> proxy_t
4160  { return zwp_idle_inhibitor_v1_t(p); };
4161 }
4162 
4163 zwp_idle_inhibitor_v1_t::zwp_idle_inhibitor_v1_t()
4164 {
4165  interface = &zwp_idle_inhibitor_v1_interface;
4166  copy_constructor = [] (const proxy_t &p) -> proxy_t
4167  { return zwp_idle_inhibitor_v1_t(p); };
4168 }
4169 
4170 zwp_idle_inhibitor_v1_t::zwp_idle_inhibitor_v1_t(zwp_idle_inhibitor_v1 *p, wrapper_type t)
4171  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4173  {
4174  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4175  set_destroy_opcode(0u);
4176  }
4177  interface = &zwp_idle_inhibitor_v1_interface;
4178  copy_constructor = [] (const proxy_t &p) -> proxy_t
4179  { return zwp_idle_inhibitor_v1_t(p); };
4180 }
4181 
4182 zwp_idle_inhibitor_v1_t::zwp_idle_inhibitor_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4183  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4184  interface = &zwp_idle_inhibitor_v1_interface;
4185  copy_constructor = [] (const proxy_t &p) -> proxy_t
4186  { return zwp_idle_inhibitor_v1_t(p); };
4187 }
4188 
4189 zwp_idle_inhibitor_v1_t zwp_idle_inhibitor_v1_t::proxy_create_wrapper()
4190 {
4191  return {*this, construct_proxy_wrapper_tag()};
4192 }
4193 
4194 const std::string zwp_idle_inhibitor_v1_t::interface_name = "zwp_idle_inhibitor_v1";
4195 
4196 zwp_idle_inhibitor_v1_t::operator zwp_idle_inhibitor_v1*() const
4197 {
4198  return reinterpret_cast<zwp_idle_inhibitor_v1*> (c_ptr());
4199 }
4200 
4201 int zwp_idle_inhibitor_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4202 {
4203  return 0;
4204 }
4205 
4206 zwp_input_method_context_v1_t::zwp_input_method_context_v1_t(const proxy_t &p)
4207  : proxy_t(p)
4208 {
4210  {
4211  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4212  set_destroy_opcode(0u);
4213  }
4214  interface = &zwp_input_method_context_v1_interface;
4215  copy_constructor = [] (const proxy_t &p) -> proxy_t
4216  { return zwp_input_method_context_v1_t(p); };
4217 }
4218 
4219 zwp_input_method_context_v1_t::zwp_input_method_context_v1_t()
4220 {
4221  interface = &zwp_input_method_context_v1_interface;
4222  copy_constructor = [] (const proxy_t &p) -> proxy_t
4223  { return zwp_input_method_context_v1_t(p); };
4224 }
4225 
4226 zwp_input_method_context_v1_t::zwp_input_method_context_v1_t(zwp_input_method_context_v1 *p, wrapper_type t)
4227  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4229  {
4230  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4231  set_destroy_opcode(0u);
4232  }
4233  interface = &zwp_input_method_context_v1_interface;
4234  copy_constructor = [] (const proxy_t &p) -> proxy_t
4235  { return zwp_input_method_context_v1_t(p); };
4236 }
4237 
4238 zwp_input_method_context_v1_t::zwp_input_method_context_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4239  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4240  interface = &zwp_input_method_context_v1_interface;
4241  copy_constructor = [] (const proxy_t &p) -> proxy_t
4242  { return zwp_input_method_context_v1_t(p); };
4243 }
4244 
4245 zwp_input_method_context_v1_t zwp_input_method_context_v1_t::proxy_create_wrapper()
4246 {
4247  return {*this, construct_proxy_wrapper_tag()};
4248 }
4249 
4250 const std::string zwp_input_method_context_v1_t::interface_name = "zwp_input_method_context_v1";
4251 
4252 zwp_input_method_context_v1_t::operator zwp_input_method_context_v1*() const
4253 {
4254  return reinterpret_cast<zwp_input_method_context_v1*> (c_ptr());
4255 }
4256 
4257 void zwp_input_method_context_v1_t::commit_string(uint32_t serial, std::string text)
4258 {
4259  marshal(1u, serial, text);
4260 }
4261 
4262 void zwp_input_method_context_v1_t::preedit_string(uint32_t serial, std::string text, std::string commit)
4263 {
4264  marshal(2u, serial, text, commit);
4265 }
4266 
4267 void zwp_input_method_context_v1_t::preedit_styling(uint32_t index, uint32_t length, zwp_text_input_v1_preedit_style style)
4268 {
4269  marshal(3u, index, length, static_cast<uint32_t>(style));
4270 }
4271 
4273 {
4274  marshal(4u, index);
4275 }
4276 
4278 {
4279  marshal(5u, index, length);
4280 }
4281 
4282 void zwp_input_method_context_v1_t::cursor_position(int32_t index, int32_t anchor)
4283 {
4284  marshal(6u, index, anchor);
4285 }
4286 
4288 {
4289  marshal(7u, map);
4290 }
4291 
4292 void zwp_input_method_context_v1_t::keysym(uint32_t serial, uint32_t time, uint32_t sym, keyboard_key_state state, uint32_t modifiers)
4293 {
4294  marshal(8u, serial, time, sym, static_cast<uint32_t>(state), modifiers);
4295 }
4296 
4298 {
4299  proxy_t p = marshal_constructor(9u, &keyboard_interface, nullptr);
4300  return keyboard_t(p);
4301 }
4302 
4303 void zwp_input_method_context_v1_t::key(uint32_t serial, uint32_t time, uint32_t key, keyboard_key_state state)
4304 {
4305  marshal(10u, serial, time, key, static_cast<uint32_t>(state));
4306 }
4307 
4308 void zwp_input_method_context_v1_t::modifiers(uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
4309 {
4310  marshal(11u, serial, mods_depressed, mods_latched, mods_locked, group);
4311 }
4312 
4313 void zwp_input_method_context_v1_t::language(uint32_t serial, std::string language)
4314 {
4315  marshal(12u, serial, language);
4316 }
4317 
4318 void zwp_input_method_context_v1_t::text_direction(uint32_t serial, uint32_t direction)
4319 {
4320  marshal(13u, serial, direction);
4321 }
4322 
4323 std::function<void(std::string, uint32_t, uint32_t)> &zwp_input_method_context_v1_t::on_surrounding_text()
4324 {
4325  return std::static_pointer_cast<events_t>(get_events())->surrounding_text;
4326 }
4327 
4328 std::function<void()> &zwp_input_method_context_v1_t::on_reset()
4329 {
4330  return std::static_pointer_cast<events_t>(get_events())->reset;
4331 }
4332 
4333 std::function<void(zwp_text_input_v1_content_hint, zwp_text_input_v1_content_purpose)> &zwp_input_method_context_v1_t::on_content_type()
4334 {
4335  return std::static_pointer_cast<events_t>(get_events())->content_type;
4336 }
4337 
4338 std::function<void(uint32_t, uint32_t)> &zwp_input_method_context_v1_t::on_invoke_action()
4339 {
4340  return std::static_pointer_cast<events_t>(get_events())->invoke_action;
4341 }
4342 
4343 std::function<void(uint32_t)> &zwp_input_method_context_v1_t::on_commit_state()
4344 {
4345  return std::static_pointer_cast<events_t>(get_events())->commit_state;
4346 }
4347 
4348 std::function<void(std::string)> &zwp_input_method_context_v1_t::on_preferred_language()
4349 {
4350  return std::static_pointer_cast<events_t>(get_events())->preferred_language;
4351 }
4352 
4353 int zwp_input_method_context_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4354 {
4355  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4356  switch(opcode)
4357  {
4358  case 0:
4359  if(events->surrounding_text) events->surrounding_text(args[0].get<std::string>(), args[1].get<uint32_t>(), args[2].get<uint32_t>());
4360  break;
4361  case 1:
4362  if(events->reset) events->reset();
4363  break;
4364  case 2:
4365  if(events->content_type) events->content_type(zwp_text_input_v1_content_hint(args[0].get<uint32_t>()), zwp_text_input_v1_content_purpose(args[1].get<uint32_t>()));
4366  break;
4367  case 3:
4368  if(events->invoke_action) events->invoke_action(args[0].get<uint32_t>(), args[1].get<uint32_t>());
4369  break;
4370  case 4:
4371  if(events->commit_state) events->commit_state(args[0].get<uint32_t>());
4372  break;
4373  case 5:
4374  if(events->preferred_language) events->preferred_language(args[0].get<std::string>());
4375  break;
4376  }
4377  return 0;
4378 }
4379 
4380 zwp_input_method_v1_t::zwp_input_method_v1_t(const proxy_t &p)
4381  : proxy_t(p)
4382 {
4384  {
4385  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4386  }
4387  interface = &zwp_input_method_v1_interface;
4388  copy_constructor = [] (const proxy_t &p) -> proxy_t
4389  { return zwp_input_method_v1_t(p); };
4390 }
4391 
4392 zwp_input_method_v1_t::zwp_input_method_v1_t()
4393 {
4394  interface = &zwp_input_method_v1_interface;
4395  copy_constructor = [] (const proxy_t &p) -> proxy_t
4396  { return zwp_input_method_v1_t(p); };
4397 }
4398 
4399 zwp_input_method_v1_t::zwp_input_method_v1_t(zwp_input_method_v1 *p, wrapper_type t)
4400  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4402  {
4403  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4404  }
4405  interface = &zwp_input_method_v1_interface;
4406  copy_constructor = [] (const proxy_t &p) -> proxy_t
4407  { return zwp_input_method_v1_t(p); };
4408 }
4409 
4410 zwp_input_method_v1_t::zwp_input_method_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4411  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4412  interface = &zwp_input_method_v1_interface;
4413  copy_constructor = [] (const proxy_t &p) -> proxy_t
4414  { return zwp_input_method_v1_t(p); };
4415 }
4416 
4417 zwp_input_method_v1_t zwp_input_method_v1_t::proxy_create_wrapper()
4418 {
4419  return {*this, construct_proxy_wrapper_tag()};
4420 }
4421 
4422 const std::string zwp_input_method_v1_t::interface_name = "zwp_input_method_v1";
4423 
4424 zwp_input_method_v1_t::operator zwp_input_method_v1*() const
4425 {
4426  return reinterpret_cast<zwp_input_method_v1*> (c_ptr());
4427 }
4428 
4430 {
4431  return std::static_pointer_cast<events_t>(get_events())->activate;
4432 }
4433 
4435 {
4436  return std::static_pointer_cast<events_t>(get_events())->deactivate;
4437 }
4438 
4439 int zwp_input_method_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4440 {
4441  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4442  switch(opcode)
4443  {
4444  case 0:
4445  if(events->activate) events->activate(zwp_input_method_context_v1_t(args[0].get<proxy_t>()));
4446  break;
4447  case 1:
4448  if(events->deactivate) events->deactivate(zwp_input_method_context_v1_t(args[0].get<proxy_t>()));
4449  break;
4450  }
4451  return 0;
4452 }
4453 
4454 zwp_input_panel_v1_t::zwp_input_panel_v1_t(const proxy_t &p)
4455  : proxy_t(p)
4456 {
4458  {
4459  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4460  }
4461  interface = &zwp_input_panel_v1_interface;
4462  copy_constructor = [] (const proxy_t &p) -> proxy_t
4463  { return zwp_input_panel_v1_t(p); };
4464 }
4465 
4466 zwp_input_panel_v1_t::zwp_input_panel_v1_t()
4467 {
4468  interface = &zwp_input_panel_v1_interface;
4469  copy_constructor = [] (const proxy_t &p) -> proxy_t
4470  { return zwp_input_panel_v1_t(p); };
4471 }
4472 
4473 zwp_input_panel_v1_t::zwp_input_panel_v1_t(zwp_input_panel_v1 *p, wrapper_type t)
4474  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4476  {
4477  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4478  }
4479  interface = &zwp_input_panel_v1_interface;
4480  copy_constructor = [] (const proxy_t &p) -> proxy_t
4481  { return zwp_input_panel_v1_t(p); };
4482 }
4483 
4484 zwp_input_panel_v1_t::zwp_input_panel_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4485  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4486  interface = &zwp_input_panel_v1_interface;
4487  copy_constructor = [] (const proxy_t &p) -> proxy_t
4488  { return zwp_input_panel_v1_t(p); };
4489 }
4490 
4491 zwp_input_panel_v1_t zwp_input_panel_v1_t::proxy_create_wrapper()
4492 {
4493  return {*this, construct_proxy_wrapper_tag()};
4494 }
4495 
4496 const std::string zwp_input_panel_v1_t::interface_name = "zwp_input_panel_v1";
4497 
4498 zwp_input_panel_v1_t::operator zwp_input_panel_v1*() const
4499 {
4500  return reinterpret_cast<zwp_input_panel_v1*> (c_ptr());
4501 }
4502 
4503 zwp_input_panel_surface_v1_t zwp_input_panel_v1_t::get_input_panel_surface(surface_t surface)
4504 {
4505  proxy_t p = marshal_constructor(0u, &zwp_input_panel_surface_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
4506  return zwp_input_panel_surface_v1_t(p);
4507 }
4508 
4509 int zwp_input_panel_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4510 {
4511  return 0;
4512 }
4513 
4514 zwp_input_panel_surface_v1_t::zwp_input_panel_surface_v1_t(const proxy_t &p)
4515  : proxy_t(p)
4516 {
4518  {
4519  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4520  }
4521  interface = &zwp_input_panel_surface_v1_interface;
4522  copy_constructor = [] (const proxy_t &p) -> proxy_t
4523  { return zwp_input_panel_surface_v1_t(p); };
4524 }
4525 
4526 zwp_input_panel_surface_v1_t::zwp_input_panel_surface_v1_t()
4527 {
4528  interface = &zwp_input_panel_surface_v1_interface;
4529  copy_constructor = [] (const proxy_t &p) -> proxy_t
4530  { return zwp_input_panel_surface_v1_t(p); };
4531 }
4532 
4533 zwp_input_panel_surface_v1_t::zwp_input_panel_surface_v1_t(zwp_input_panel_surface_v1 *p, wrapper_type t)
4534  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4536  {
4537  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4538  }
4539  interface = &zwp_input_panel_surface_v1_interface;
4540  copy_constructor = [] (const proxy_t &p) -> proxy_t
4541  { return zwp_input_panel_surface_v1_t(p); };
4542 }
4543 
4544 zwp_input_panel_surface_v1_t::zwp_input_panel_surface_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4545  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4546  interface = &zwp_input_panel_surface_v1_interface;
4547  copy_constructor = [] (const proxy_t &p) -> proxy_t
4548  { return zwp_input_panel_surface_v1_t(p); };
4549 }
4550 
4551 zwp_input_panel_surface_v1_t zwp_input_panel_surface_v1_t::proxy_create_wrapper()
4552 {
4553  return {*this, construct_proxy_wrapper_tag()};
4554 }
4555 
4556 const std::string zwp_input_panel_surface_v1_t::interface_name = "zwp_input_panel_surface_v1";
4557 
4558 zwp_input_panel_surface_v1_t::operator zwp_input_panel_surface_v1*() const
4559 {
4560  return reinterpret_cast<zwp_input_panel_surface_v1*> (c_ptr());
4561 }
4562 
4563 void zwp_input_panel_surface_v1_t::set_toplevel(output_t output, zwp_input_panel_surface_v1_position position)
4564 {
4565  marshal(0u, output.proxy_has_object() ? reinterpret_cast<wl_object*>(output.c_ptr()) : nullptr, static_cast<uint32_t>(position));
4566 }
4567 
4568 void zwp_input_panel_surface_v1_t::set_overlay_panel()
4569 {
4570  marshal(1u);
4571 }
4572 
4573 int zwp_input_panel_surface_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4574 {
4575  return 0;
4576 }
4577 
4578 
4579 zwp_input_timestamps_manager_v1_t::zwp_input_timestamps_manager_v1_t(const proxy_t &p)
4580  : proxy_t(p)
4581 {
4583  {
4584  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4585  set_destroy_opcode(0u);
4586  }
4587  interface = &zwp_input_timestamps_manager_v1_interface;
4588  copy_constructor = [] (const proxy_t &p) -> proxy_t
4589  { return zwp_input_timestamps_manager_v1_t(p); };
4590 }
4591 
4592 zwp_input_timestamps_manager_v1_t::zwp_input_timestamps_manager_v1_t()
4593 {
4594  interface = &zwp_input_timestamps_manager_v1_interface;
4595  copy_constructor = [] (const proxy_t &p) -> proxy_t
4596  { return zwp_input_timestamps_manager_v1_t(p); };
4597 }
4598 
4599 zwp_input_timestamps_manager_v1_t::zwp_input_timestamps_manager_v1_t(zwp_input_timestamps_manager_v1 *p, wrapper_type t)
4600  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4602  {
4603  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4604  set_destroy_opcode(0u);
4605  }
4606  interface = &zwp_input_timestamps_manager_v1_interface;
4607  copy_constructor = [] (const proxy_t &p) -> proxy_t
4608  { return zwp_input_timestamps_manager_v1_t(p); };
4609 }
4610 
4611 zwp_input_timestamps_manager_v1_t::zwp_input_timestamps_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4612  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4613  interface = &zwp_input_timestamps_manager_v1_interface;
4614  copy_constructor = [] (const proxy_t &p) -> proxy_t
4615  { return zwp_input_timestamps_manager_v1_t(p); };
4616 }
4617 
4618 zwp_input_timestamps_manager_v1_t zwp_input_timestamps_manager_v1_t::proxy_create_wrapper()
4619 {
4620  return {*this, construct_proxy_wrapper_tag()};
4621 }
4622 
4623 const std::string zwp_input_timestamps_manager_v1_t::interface_name = "zwp_input_timestamps_manager_v1";
4624 
4625 zwp_input_timestamps_manager_v1_t::operator zwp_input_timestamps_manager_v1*() const
4626 {
4627  return reinterpret_cast<zwp_input_timestamps_manager_v1*> (c_ptr());
4628 }
4629 
4631 {
4632  proxy_t p = marshal_constructor(1u, &zwp_input_timestamps_v1_interface, nullptr, keyboard.proxy_has_object() ? reinterpret_cast<wl_object*>(keyboard.c_ptr()) : nullptr);
4633  return zwp_input_timestamps_v1_t(p);
4634 }
4635 
4637 {
4638  proxy_t p = marshal_constructor(2u, &zwp_input_timestamps_v1_interface, nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr);
4639  return zwp_input_timestamps_v1_t(p);
4640 }
4641 
4643 {
4644  proxy_t p = marshal_constructor(3u, &zwp_input_timestamps_v1_interface, nullptr, touch.proxy_has_object() ? reinterpret_cast<wl_object*>(touch.c_ptr()) : nullptr);
4645  return zwp_input_timestamps_v1_t(p);
4646 }
4647 
4648 int zwp_input_timestamps_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4649 {
4650  return 0;
4651 }
4652 
4653 zwp_input_timestamps_v1_t::zwp_input_timestamps_v1_t(const proxy_t &p)
4654  : proxy_t(p)
4655 {
4657  {
4658  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4659  set_destroy_opcode(0u);
4660  }
4661  interface = &zwp_input_timestamps_v1_interface;
4662  copy_constructor = [] (const proxy_t &p) -> proxy_t
4663  { return zwp_input_timestamps_v1_t(p); };
4664 }
4665 
4666 zwp_input_timestamps_v1_t::zwp_input_timestamps_v1_t()
4667 {
4668  interface = &zwp_input_timestamps_v1_interface;
4669  copy_constructor = [] (const proxy_t &p) -> proxy_t
4670  { return zwp_input_timestamps_v1_t(p); };
4671 }
4672 
4673 zwp_input_timestamps_v1_t::zwp_input_timestamps_v1_t(zwp_input_timestamps_v1 *p, wrapper_type t)
4674  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4676  {
4677  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4678  set_destroy_opcode(0u);
4679  }
4680  interface = &zwp_input_timestamps_v1_interface;
4681  copy_constructor = [] (const proxy_t &p) -> proxy_t
4682  { return zwp_input_timestamps_v1_t(p); };
4683 }
4684 
4685 zwp_input_timestamps_v1_t::zwp_input_timestamps_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4686  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4687  interface = &zwp_input_timestamps_v1_interface;
4688  copy_constructor = [] (const proxy_t &p) -> proxy_t
4689  { return zwp_input_timestamps_v1_t(p); };
4690 }
4691 
4692 zwp_input_timestamps_v1_t zwp_input_timestamps_v1_t::proxy_create_wrapper()
4693 {
4694  return {*this, construct_proxy_wrapper_tag()};
4695 }
4696 
4697 const std::string zwp_input_timestamps_v1_t::interface_name = "zwp_input_timestamps_v1";
4698 
4699 zwp_input_timestamps_v1_t::operator zwp_input_timestamps_v1*() const
4700 {
4701  return reinterpret_cast<zwp_input_timestamps_v1*> (c_ptr());
4702 }
4703 
4704 std::function<void(uint32_t, uint32_t, uint32_t)> &zwp_input_timestamps_v1_t::on_timestamp()
4705 {
4706  return std::static_pointer_cast<events_t>(get_events())->timestamp;
4707 }
4708 
4709 int zwp_input_timestamps_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4710 {
4711  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4712  switch(opcode)
4713  {
4714  case 0:
4715  if(events->timestamp) events->timestamp(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<uint32_t>());
4716  break;
4717  }
4718  return 0;
4719 }
4720 
4721 zwp_keyboard_shortcuts_inhibit_manager_v1_t::zwp_keyboard_shortcuts_inhibit_manager_v1_t(const proxy_t &p)
4722  : proxy_t(p)
4723 {
4725  {
4726  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4727  set_destroy_opcode(0u);
4728  }
4729  interface = &zwp_keyboard_shortcuts_inhibit_manager_v1_interface;
4730  copy_constructor = [] (const proxy_t &p) -> proxy_t
4732 }
4733 
4734 zwp_keyboard_shortcuts_inhibit_manager_v1_t::zwp_keyboard_shortcuts_inhibit_manager_v1_t()
4735 {
4736  interface = &zwp_keyboard_shortcuts_inhibit_manager_v1_interface;
4737  copy_constructor = [] (const proxy_t &p) -> proxy_t
4739 }
4740 
4741 zwp_keyboard_shortcuts_inhibit_manager_v1_t::zwp_keyboard_shortcuts_inhibit_manager_v1_t(zwp_keyboard_shortcuts_inhibit_manager_v1 *p, wrapper_type t)
4742  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4744  {
4745  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4746  set_destroy_opcode(0u);
4747  }
4748  interface = &zwp_keyboard_shortcuts_inhibit_manager_v1_interface;
4749  copy_constructor = [] (const proxy_t &p) -> proxy_t
4751 }
4752 
4753 zwp_keyboard_shortcuts_inhibit_manager_v1_t::zwp_keyboard_shortcuts_inhibit_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4754  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4755  interface = &zwp_keyboard_shortcuts_inhibit_manager_v1_interface;
4756  copy_constructor = [] (const proxy_t &p) -> proxy_t
4758 }
4759 
4760 zwp_keyboard_shortcuts_inhibit_manager_v1_t zwp_keyboard_shortcuts_inhibit_manager_v1_t::proxy_create_wrapper()
4761 {
4762  return {*this, construct_proxy_wrapper_tag()};
4763 }
4764 
4765 const std::string zwp_keyboard_shortcuts_inhibit_manager_v1_t::interface_name = "zwp_keyboard_shortcuts_inhibit_manager_v1";
4766 
4767 zwp_keyboard_shortcuts_inhibit_manager_v1_t::operator zwp_keyboard_shortcuts_inhibit_manager_v1*() const
4768 {
4769  return reinterpret_cast<zwp_keyboard_shortcuts_inhibit_manager_v1*> (c_ptr());
4770 }
4771 
4773 {
4774  proxy_t p = marshal_constructor(1u, &zwp_keyboard_shortcuts_inhibitor_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
4776 }
4777 
4778 int zwp_keyboard_shortcuts_inhibit_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4779 {
4780  return 0;
4781 }
4782 
4783 
4784 zwp_keyboard_shortcuts_inhibitor_v1_t::zwp_keyboard_shortcuts_inhibitor_v1_t(const proxy_t &p)
4785  : proxy_t(p)
4786 {
4788  {
4789  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4790  set_destroy_opcode(0u);
4791  }
4792  interface = &zwp_keyboard_shortcuts_inhibitor_v1_interface;
4793  copy_constructor = [] (const proxy_t &p) -> proxy_t
4795 }
4796 
4797 zwp_keyboard_shortcuts_inhibitor_v1_t::zwp_keyboard_shortcuts_inhibitor_v1_t()
4798 {
4799  interface = &zwp_keyboard_shortcuts_inhibitor_v1_interface;
4800  copy_constructor = [] (const proxy_t &p) -> proxy_t
4802 }
4803 
4804 zwp_keyboard_shortcuts_inhibitor_v1_t::zwp_keyboard_shortcuts_inhibitor_v1_t(zwp_keyboard_shortcuts_inhibitor_v1 *p, wrapper_type t)
4805  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4807  {
4808  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4809  set_destroy_opcode(0u);
4810  }
4811  interface = &zwp_keyboard_shortcuts_inhibitor_v1_interface;
4812  copy_constructor = [] (const proxy_t &p) -> proxy_t
4814 }
4815 
4816 zwp_keyboard_shortcuts_inhibitor_v1_t::zwp_keyboard_shortcuts_inhibitor_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4817  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4818  interface = &zwp_keyboard_shortcuts_inhibitor_v1_interface;
4819  copy_constructor = [] (const proxy_t &p) -> proxy_t
4821 }
4822 
4823 zwp_keyboard_shortcuts_inhibitor_v1_t zwp_keyboard_shortcuts_inhibitor_v1_t::proxy_create_wrapper()
4824 {
4825  return {*this, construct_proxy_wrapper_tag()};
4826 }
4827 
4828 const std::string zwp_keyboard_shortcuts_inhibitor_v1_t::interface_name = "zwp_keyboard_shortcuts_inhibitor_v1";
4829 
4830 zwp_keyboard_shortcuts_inhibitor_v1_t::operator zwp_keyboard_shortcuts_inhibitor_v1*() const
4831 {
4832  return reinterpret_cast<zwp_keyboard_shortcuts_inhibitor_v1*> (c_ptr());
4833 }
4834 
4836 {
4837  return std::static_pointer_cast<events_t>(get_events())->active;
4838 }
4839 
4841 {
4842  return std::static_pointer_cast<events_t>(get_events())->inactive;
4843 }
4844 
4845 int zwp_keyboard_shortcuts_inhibitor_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4846 {
4847  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4848  switch(opcode)
4849  {
4850  case 0:
4851  if(events->active) events->active();
4852  break;
4853  case 1:
4854  if(events->inactive) events->inactive();
4855  break;
4856  }
4857  return 0;
4858 }
4859 
4860 zwp_linux_dmabuf_v1_t::zwp_linux_dmabuf_v1_t(const proxy_t &p)
4861  : proxy_t(p)
4862 {
4864  {
4865  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4866  set_destroy_opcode(0u);
4867  }
4868  interface = &zwp_linux_dmabuf_v1_interface;
4869  copy_constructor = [] (const proxy_t &p) -> proxy_t
4870  { return zwp_linux_dmabuf_v1_t(p); };
4871 }
4872 
4873 zwp_linux_dmabuf_v1_t::zwp_linux_dmabuf_v1_t()
4874 {
4875  interface = &zwp_linux_dmabuf_v1_interface;
4876  copy_constructor = [] (const proxy_t &p) -> proxy_t
4877  { return zwp_linux_dmabuf_v1_t(p); };
4878 }
4879 
4880 zwp_linux_dmabuf_v1_t::zwp_linux_dmabuf_v1_t(zwp_linux_dmabuf_v1 *p, wrapper_type t)
4881  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4883  {
4884  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4885  set_destroy_opcode(0u);
4886  }
4887  interface = &zwp_linux_dmabuf_v1_interface;
4888  copy_constructor = [] (const proxy_t &p) -> proxy_t
4889  { return zwp_linux_dmabuf_v1_t(p); };
4890 }
4891 
4892 zwp_linux_dmabuf_v1_t::zwp_linux_dmabuf_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4893  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4894  interface = &zwp_linux_dmabuf_v1_interface;
4895  copy_constructor = [] (const proxy_t &p) -> proxy_t
4896  { return zwp_linux_dmabuf_v1_t(p); };
4897 }
4898 
4899 zwp_linux_dmabuf_v1_t zwp_linux_dmabuf_v1_t::proxy_create_wrapper()
4900 {
4901  return {*this, construct_proxy_wrapper_tag()};
4902 }
4903 
4904 const std::string zwp_linux_dmabuf_v1_t::interface_name = "zwp_linux_dmabuf_v1";
4905 
4906 zwp_linux_dmabuf_v1_t::operator zwp_linux_dmabuf_v1*() const
4907 {
4908  return reinterpret_cast<zwp_linux_dmabuf_v1*> (c_ptr());
4909 }
4910 
4912 {
4913  proxy_t p = marshal_constructor(1u, &zwp_linux_buffer_params_v1_interface, nullptr);
4914  return zwp_linux_buffer_params_v1_t(p);
4915 }
4916 
4917 std::function<void(uint32_t)> &zwp_linux_dmabuf_v1_t::on_format()
4918 {
4919  return std::static_pointer_cast<events_t>(get_events())->format;
4920 }
4921 
4922 std::function<void(uint32_t, uint32_t, uint32_t)> &zwp_linux_dmabuf_v1_t::on_modifier()
4923 {
4924  return std::static_pointer_cast<events_t>(get_events())->modifier;
4925 }
4926 
4927 int zwp_linux_dmabuf_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
4928 {
4929  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
4930  switch(opcode)
4931  {
4932  case 0:
4933  if(events->format) events->format(args[0].get<uint32_t>());
4934  break;
4935  case 1:
4936  if(events->modifier) events->modifier(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<uint32_t>());
4937  break;
4938  }
4939  return 0;
4940 }
4941 
4942 zwp_linux_buffer_params_v1_t::zwp_linux_buffer_params_v1_t(const proxy_t &p)
4943  : proxy_t(p)
4944 {
4946  {
4947  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4948  set_destroy_opcode(0u);
4949  }
4950  interface = &zwp_linux_buffer_params_v1_interface;
4951  copy_constructor = [] (const proxy_t &p) -> proxy_t
4952  { return zwp_linux_buffer_params_v1_t(p); };
4953 }
4954 
4955 zwp_linux_buffer_params_v1_t::zwp_linux_buffer_params_v1_t()
4956 {
4957  interface = &zwp_linux_buffer_params_v1_interface;
4958  copy_constructor = [] (const proxy_t &p) -> proxy_t
4959  { return zwp_linux_buffer_params_v1_t(p); };
4960 }
4961 
4962 zwp_linux_buffer_params_v1_t::zwp_linux_buffer_params_v1_t(zwp_linux_buffer_params_v1 *p, wrapper_type t)
4963  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
4965  {
4966  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
4967  set_destroy_opcode(0u);
4968  }
4969  interface = &zwp_linux_buffer_params_v1_interface;
4970  copy_constructor = [] (const proxy_t &p) -> proxy_t
4971  { return zwp_linux_buffer_params_v1_t(p); };
4972 }
4973 
4974 zwp_linux_buffer_params_v1_t::zwp_linux_buffer_params_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
4975  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
4976  interface = &zwp_linux_buffer_params_v1_interface;
4977  copy_constructor = [] (const proxy_t &p) -> proxy_t
4978  { return zwp_linux_buffer_params_v1_t(p); };
4979 }
4980 
4981 zwp_linux_buffer_params_v1_t zwp_linux_buffer_params_v1_t::proxy_create_wrapper()
4982 {
4983  return {*this, construct_proxy_wrapper_tag()};
4984 }
4985 
4986 const std::string zwp_linux_buffer_params_v1_t::interface_name = "zwp_linux_buffer_params_v1";
4987 
4988 zwp_linux_buffer_params_v1_t::operator zwp_linux_buffer_params_v1*() const
4989 {
4990  return reinterpret_cast<zwp_linux_buffer_params_v1*> (c_ptr());
4991 }
4992 
4993 void zwp_linux_buffer_params_v1_t::add(int fd, uint32_t plane_idx, uint32_t offset, uint32_t stride, uint32_t modifier_hi, uint32_t modifier_lo)
4994 {
4995  marshal(1u, argument_t::fd(fd), plane_idx, offset, stride, modifier_hi, modifier_lo);
4996 }
4997 
4998 void zwp_linux_buffer_params_v1_t::create(int32_t width, int32_t height, uint32_t format, zwp_linux_buffer_params_v1_flags flags)
4999 {
5000  marshal(2u, width, height, format, static_cast<uint32_t>(flags));
5001 }
5002 
5003 buffer_t zwp_linux_buffer_params_v1_t::create_immed(int32_t width, int32_t height, uint32_t format, zwp_linux_buffer_params_v1_flags flags)
5004 {
5005  proxy_t p = marshal_constructor(3u, &buffer_interface, nullptr, width, height, format, static_cast<uint32_t>(flags));
5006  return buffer_t(p);
5007 }
5009 {
5011 }
5012 
5014 {
5015  return std::static_pointer_cast<events_t>(get_events())->created;
5016 }
5017 
5019 {
5020  return std::static_pointer_cast<events_t>(get_events())->failed;
5021 }
5022 
5023 int zwp_linux_buffer_params_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5024 {
5025  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5026  switch(opcode)
5027  {
5028  case 0:
5029  if(events->created) events->created(buffer_t(args[0].get<proxy_t>()));
5030  break;
5031  case 1:
5032  if(events->failed) events->failed();
5033  break;
5034  }
5035  return 0;
5036 }
5037 
5038 
5039 
5040 zwp_linux_explicit_synchronization_v1_t::zwp_linux_explicit_synchronization_v1_t(const proxy_t &p)
5041  : proxy_t(p)
5042 {
5044  {
5045  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5046  set_destroy_opcode(0u);
5047  }
5048  interface = &zwp_linux_explicit_synchronization_v1_interface;
5049  copy_constructor = [] (const proxy_t &p) -> proxy_t
5051 }
5052 
5053 zwp_linux_explicit_synchronization_v1_t::zwp_linux_explicit_synchronization_v1_t()
5054 {
5055  interface = &zwp_linux_explicit_synchronization_v1_interface;
5056  copy_constructor = [] (const proxy_t &p) -> proxy_t
5058 }
5059 
5060 zwp_linux_explicit_synchronization_v1_t::zwp_linux_explicit_synchronization_v1_t(zwp_linux_explicit_synchronization_v1 *p, wrapper_type t)
5061  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5063  {
5064  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5065  set_destroy_opcode(0u);
5066  }
5067  interface = &zwp_linux_explicit_synchronization_v1_interface;
5068  copy_constructor = [] (const proxy_t &p) -> proxy_t
5070 }
5071 
5072 zwp_linux_explicit_synchronization_v1_t::zwp_linux_explicit_synchronization_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5073  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5074  interface = &zwp_linux_explicit_synchronization_v1_interface;
5075  copy_constructor = [] (const proxy_t &p) -> proxy_t
5077 }
5078 
5079 zwp_linux_explicit_synchronization_v1_t zwp_linux_explicit_synchronization_v1_t::proxy_create_wrapper()
5080 {
5081  return {*this, construct_proxy_wrapper_tag()};
5082 }
5083 
5084 const std::string zwp_linux_explicit_synchronization_v1_t::interface_name = "zwp_linux_explicit_synchronization_v1";
5085 
5086 zwp_linux_explicit_synchronization_v1_t::operator zwp_linux_explicit_synchronization_v1*() const
5087 {
5088  return reinterpret_cast<zwp_linux_explicit_synchronization_v1*> (c_ptr());
5089 }
5090 
5092 {
5093  proxy_t p = marshal_constructor(1u, &zwp_linux_surface_synchronization_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
5095 }
5096 
5097 int zwp_linux_explicit_synchronization_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5098 {
5099  return 0;
5100 }
5101 
5102 
5103 zwp_linux_surface_synchronization_v1_t::zwp_linux_surface_synchronization_v1_t(const proxy_t &p)
5104  : proxy_t(p)
5105 {
5107  {
5108  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5109  set_destroy_opcode(0u);
5110  }
5111  interface = &zwp_linux_surface_synchronization_v1_interface;
5112  copy_constructor = [] (const proxy_t &p) -> proxy_t
5114 }
5115 
5116 zwp_linux_surface_synchronization_v1_t::zwp_linux_surface_synchronization_v1_t()
5117 {
5118  interface = &zwp_linux_surface_synchronization_v1_interface;
5119  copy_constructor = [] (const proxy_t &p) -> proxy_t
5121 }
5122 
5123 zwp_linux_surface_synchronization_v1_t::zwp_linux_surface_synchronization_v1_t(zwp_linux_surface_synchronization_v1 *p, wrapper_type t)
5124  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5126  {
5127  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5128  set_destroy_opcode(0u);
5129  }
5130  interface = &zwp_linux_surface_synchronization_v1_interface;
5131  copy_constructor = [] (const proxy_t &p) -> proxy_t
5133 }
5134 
5135 zwp_linux_surface_synchronization_v1_t::zwp_linux_surface_synchronization_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5136  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5137  interface = &zwp_linux_surface_synchronization_v1_interface;
5138  copy_constructor = [] (const proxy_t &p) -> proxy_t
5140 }
5141 
5142 zwp_linux_surface_synchronization_v1_t zwp_linux_surface_synchronization_v1_t::proxy_create_wrapper()
5143 {
5144  return {*this, construct_proxy_wrapper_tag()};
5145 }
5146 
5147 const std::string zwp_linux_surface_synchronization_v1_t::interface_name = "zwp_linux_surface_synchronization_v1";
5148 
5149 zwp_linux_surface_synchronization_v1_t::operator zwp_linux_surface_synchronization_v1*() const
5150 {
5151  return reinterpret_cast<zwp_linux_surface_synchronization_v1*> (c_ptr());
5152 }
5153 
5155 {
5156  marshal(1u, argument_t::fd(fd));
5157 }
5158 
5160 {
5161  proxy_t p = marshal_constructor(2u, &zwp_linux_buffer_release_v1_interface, nullptr);
5163 }
5164 
5165 int zwp_linux_surface_synchronization_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5166 {
5167  return 0;
5168 }
5169 
5170 
5171 zwp_linux_buffer_release_v1_t::zwp_linux_buffer_release_v1_t(const proxy_t &p)
5172  : proxy_t(p)
5173 {
5175  {
5176  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5177  }
5178  interface = &zwp_linux_buffer_release_v1_interface;
5179  copy_constructor = [] (const proxy_t &p) -> proxy_t
5180  { return zwp_linux_buffer_release_v1_t(p); };
5181 }
5182 
5183 zwp_linux_buffer_release_v1_t::zwp_linux_buffer_release_v1_t()
5184 {
5185  interface = &zwp_linux_buffer_release_v1_interface;
5186  copy_constructor = [] (const proxy_t &p) -> proxy_t
5187  { return zwp_linux_buffer_release_v1_t(p); };
5188 }
5189 
5190 zwp_linux_buffer_release_v1_t::zwp_linux_buffer_release_v1_t(zwp_linux_buffer_release_v1 *p, wrapper_type t)
5191  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5193  {
5194  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5195  }
5196  interface = &zwp_linux_buffer_release_v1_interface;
5197  copy_constructor = [] (const proxy_t &p) -> proxy_t
5198  { return zwp_linux_buffer_release_v1_t(p); };
5199 }
5200 
5201 zwp_linux_buffer_release_v1_t::zwp_linux_buffer_release_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5202  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5203  interface = &zwp_linux_buffer_release_v1_interface;
5204  copy_constructor = [] (const proxy_t &p) -> proxy_t
5205  { return zwp_linux_buffer_release_v1_t(p); };
5206 }
5207 
5208 zwp_linux_buffer_release_v1_t zwp_linux_buffer_release_v1_t::proxy_create_wrapper()
5209 {
5210  return {*this, construct_proxy_wrapper_tag()};
5211 }
5212 
5213 const std::string zwp_linux_buffer_release_v1_t::interface_name = "zwp_linux_buffer_release_v1";
5214 
5215 zwp_linux_buffer_release_v1_t::operator zwp_linux_buffer_release_v1*() const
5216 {
5217  return reinterpret_cast<zwp_linux_buffer_release_v1*> (c_ptr());
5218 }
5219 
5221 {
5222  return std::static_pointer_cast<events_t>(get_events())->fenced_release;
5223 }
5224 
5226 {
5227  return std::static_pointer_cast<events_t>(get_events())->immediate_release;
5228 }
5229 
5230 int zwp_linux_buffer_release_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5231 {
5232  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5233  switch(opcode)
5234  {
5235  case 0:
5236  if(events->fenced_release) events->fenced_release(args[0].get<int>());
5237  break;
5238  case 1:
5239  if(events->immediate_release) events->immediate_release();
5240  break;
5241  }
5242  return 0;
5243 }
5244 
5245 zwp_pointer_constraints_v1_t::zwp_pointer_constraints_v1_t(const proxy_t &p)
5246  : proxy_t(p)
5247 {
5249  {
5250  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5251  set_destroy_opcode(0u);
5252  }
5253  interface = &zwp_pointer_constraints_v1_interface;
5254  copy_constructor = [] (const proxy_t &p) -> proxy_t
5255  { return zwp_pointer_constraints_v1_t(p); };
5256 }
5257 
5258 zwp_pointer_constraints_v1_t::zwp_pointer_constraints_v1_t()
5259 {
5260  interface = &zwp_pointer_constraints_v1_interface;
5261  copy_constructor = [] (const proxy_t &p) -> proxy_t
5262  { return zwp_pointer_constraints_v1_t(p); };
5263 }
5264 
5265 zwp_pointer_constraints_v1_t::zwp_pointer_constraints_v1_t(zwp_pointer_constraints_v1 *p, wrapper_type t)
5266  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5268  {
5269  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5270  set_destroy_opcode(0u);
5271  }
5272  interface = &zwp_pointer_constraints_v1_interface;
5273  copy_constructor = [] (const proxy_t &p) -> proxy_t
5274  { return zwp_pointer_constraints_v1_t(p); };
5275 }
5276 
5277 zwp_pointer_constraints_v1_t::zwp_pointer_constraints_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5278  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5279  interface = &zwp_pointer_constraints_v1_interface;
5280  copy_constructor = [] (const proxy_t &p) -> proxy_t
5281  { return zwp_pointer_constraints_v1_t(p); };
5282 }
5283 
5284 zwp_pointer_constraints_v1_t zwp_pointer_constraints_v1_t::proxy_create_wrapper()
5285 {
5286  return {*this, construct_proxy_wrapper_tag()};
5287 }
5288 
5289 const std::string zwp_pointer_constraints_v1_t::interface_name = "zwp_pointer_constraints_v1";
5290 
5291 zwp_pointer_constraints_v1_t::operator zwp_pointer_constraints_v1*() const
5292 {
5293  return reinterpret_cast<zwp_pointer_constraints_v1*> (c_ptr());
5294 }
5295 
5296 zwp_locked_pointer_v1_t zwp_pointer_constraints_v1_t::lock_pointer(surface_t surface, pointer_t pointer, region_t region, zwp_pointer_constraints_v1_lifetime lifetime)
5297 {
5298  proxy_t p = marshal_constructor(1u, &zwp_locked_pointer_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr, region.proxy_has_object() ? reinterpret_cast<wl_object*>(region.c_ptr()) : nullptr, static_cast<uint32_t>(lifetime));
5299  return zwp_locked_pointer_v1_t(p);
5300 }
5301 
5302 zwp_confined_pointer_v1_t zwp_pointer_constraints_v1_t::confine_pointer(surface_t surface, pointer_t pointer, region_t region, zwp_pointer_constraints_v1_lifetime lifetime)
5303 {
5304  proxy_t p = marshal_constructor(2u, &zwp_confined_pointer_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr, region.proxy_has_object() ? reinterpret_cast<wl_object*>(region.c_ptr()) : nullptr, static_cast<uint32_t>(lifetime));
5305  return zwp_confined_pointer_v1_t(p);
5306 }
5307 
5308 int zwp_pointer_constraints_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5309 {
5310  return 0;
5311 }
5312 
5313 
5314 
5315 zwp_locked_pointer_v1_t::zwp_locked_pointer_v1_t(const proxy_t &p)
5316  : proxy_t(p)
5317 {
5319  {
5320  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5321  set_destroy_opcode(0u);
5322  }
5323  interface = &zwp_locked_pointer_v1_interface;
5324  copy_constructor = [] (const proxy_t &p) -> proxy_t
5325  { return zwp_locked_pointer_v1_t(p); };
5326 }
5327 
5328 zwp_locked_pointer_v1_t::zwp_locked_pointer_v1_t()
5329 {
5330  interface = &zwp_locked_pointer_v1_interface;
5331  copy_constructor = [] (const proxy_t &p) -> proxy_t
5332  { return zwp_locked_pointer_v1_t(p); };
5333 }
5334 
5335 zwp_locked_pointer_v1_t::zwp_locked_pointer_v1_t(zwp_locked_pointer_v1 *p, wrapper_type t)
5336  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5338  {
5339  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5340  set_destroy_opcode(0u);
5341  }
5342  interface = &zwp_locked_pointer_v1_interface;
5343  copy_constructor = [] (const proxy_t &p) -> proxy_t
5344  { return zwp_locked_pointer_v1_t(p); };
5345 }
5346 
5347 zwp_locked_pointer_v1_t::zwp_locked_pointer_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5348  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5349  interface = &zwp_locked_pointer_v1_interface;
5350  copy_constructor = [] (const proxy_t &p) -> proxy_t
5351  { return zwp_locked_pointer_v1_t(p); };
5352 }
5353 
5354 zwp_locked_pointer_v1_t zwp_locked_pointer_v1_t::proxy_create_wrapper()
5355 {
5356  return {*this, construct_proxy_wrapper_tag()};
5357 }
5358 
5359 const std::string zwp_locked_pointer_v1_t::interface_name = "zwp_locked_pointer_v1";
5360 
5361 zwp_locked_pointer_v1_t::operator zwp_locked_pointer_v1*() const
5362 {
5363  return reinterpret_cast<zwp_locked_pointer_v1*> (c_ptr());
5364 }
5365 
5366 void zwp_locked_pointer_v1_t::set_cursor_position_hint(double surface_x, double surface_y)
5367 {
5368  marshal(1u, surface_x, surface_y);
5369 }
5370 
5372 {
5373  marshal(2u, region.proxy_has_object() ? reinterpret_cast<wl_object*>(region.c_ptr()) : nullptr);
5374 }
5375 
5376 std::function<void()> &zwp_locked_pointer_v1_t::on_locked()
5377 {
5378  return std::static_pointer_cast<events_t>(get_events())->locked;
5379 }
5380 
5382 {
5383  return std::static_pointer_cast<events_t>(get_events())->unlocked;
5384 }
5385 
5386 int zwp_locked_pointer_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5387 {
5388  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5389  switch(opcode)
5390  {
5391  case 0:
5392  if(events->locked) events->locked();
5393  break;
5394  case 1:
5395  if(events->unlocked) events->unlocked();
5396  break;
5397  }
5398  return 0;
5399 }
5400 
5401 zwp_confined_pointer_v1_t::zwp_confined_pointer_v1_t(const proxy_t &p)
5402  : proxy_t(p)
5403 {
5405  {
5406  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5407  set_destroy_opcode(0u);
5408  }
5409  interface = &zwp_confined_pointer_v1_interface;
5410  copy_constructor = [] (const proxy_t &p) -> proxy_t
5411  { return zwp_confined_pointer_v1_t(p); };
5412 }
5413 
5414 zwp_confined_pointer_v1_t::zwp_confined_pointer_v1_t()
5415 {
5416  interface = &zwp_confined_pointer_v1_interface;
5417  copy_constructor = [] (const proxy_t &p) -> proxy_t
5418  { return zwp_confined_pointer_v1_t(p); };
5419 }
5420 
5421 zwp_confined_pointer_v1_t::zwp_confined_pointer_v1_t(zwp_confined_pointer_v1 *p, wrapper_type t)
5422  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5424  {
5425  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5426  set_destroy_opcode(0u);
5427  }
5428  interface = &zwp_confined_pointer_v1_interface;
5429  copy_constructor = [] (const proxy_t &p) -> proxy_t
5430  { return zwp_confined_pointer_v1_t(p); };
5431 }
5432 
5433 zwp_confined_pointer_v1_t::zwp_confined_pointer_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5434  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5435  interface = &zwp_confined_pointer_v1_interface;
5436  copy_constructor = [] (const proxy_t &p) -> proxy_t
5437  { return zwp_confined_pointer_v1_t(p); };
5438 }
5439 
5440 zwp_confined_pointer_v1_t zwp_confined_pointer_v1_t::proxy_create_wrapper()
5441 {
5442  return {*this, construct_proxy_wrapper_tag()};
5443 }
5444 
5445 const std::string zwp_confined_pointer_v1_t::interface_name = "zwp_confined_pointer_v1";
5446 
5447 zwp_confined_pointer_v1_t::operator zwp_confined_pointer_v1*() const
5448 {
5449  return reinterpret_cast<zwp_confined_pointer_v1*> (c_ptr());
5450 }
5451 
5453 {
5454  marshal(1u, region.proxy_has_object() ? reinterpret_cast<wl_object*>(region.c_ptr()) : nullptr);
5455 }
5456 
5458 {
5459  return std::static_pointer_cast<events_t>(get_events())->confined;
5460 }
5461 
5463 {
5464  return std::static_pointer_cast<events_t>(get_events())->unconfined;
5465 }
5466 
5467 int zwp_confined_pointer_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5468 {
5469  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5470  switch(opcode)
5471  {
5472  case 0:
5473  if(events->confined) events->confined();
5474  break;
5475  case 1:
5476  if(events->unconfined) events->unconfined();
5477  break;
5478  }
5479  return 0;
5480 }
5481 
5482 zwp_pointer_gestures_v1_t::zwp_pointer_gestures_v1_t(const proxy_t &p)
5483  : proxy_t(p)
5484 {
5486  {
5487  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5488  }
5489  interface = &zwp_pointer_gestures_v1_interface;
5490  copy_constructor = [] (const proxy_t &p) -> proxy_t
5491  { return zwp_pointer_gestures_v1_t(p); };
5492 }
5493 
5494 zwp_pointer_gestures_v1_t::zwp_pointer_gestures_v1_t()
5495 {
5496  interface = &zwp_pointer_gestures_v1_interface;
5497  copy_constructor = [] (const proxy_t &p) -> proxy_t
5498  { return zwp_pointer_gestures_v1_t(p); };
5499 }
5500 
5501 zwp_pointer_gestures_v1_t::zwp_pointer_gestures_v1_t(zwp_pointer_gestures_v1 *p, wrapper_type t)
5502  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5504  {
5505  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5506  }
5507  interface = &zwp_pointer_gestures_v1_interface;
5508  copy_constructor = [] (const proxy_t &p) -> proxy_t
5509  { return zwp_pointer_gestures_v1_t(p); };
5510 }
5511 
5512 zwp_pointer_gestures_v1_t::zwp_pointer_gestures_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5513  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5514  interface = &zwp_pointer_gestures_v1_interface;
5515  copy_constructor = [] (const proxy_t &p) -> proxy_t
5516  { return zwp_pointer_gestures_v1_t(p); };
5517 }
5518 
5519 zwp_pointer_gestures_v1_t zwp_pointer_gestures_v1_t::proxy_create_wrapper()
5520 {
5521  return {*this, construct_proxy_wrapper_tag()};
5522 }
5523 
5524 const std::string zwp_pointer_gestures_v1_t::interface_name = "zwp_pointer_gestures_v1";
5525 
5526 zwp_pointer_gestures_v1_t::operator zwp_pointer_gestures_v1*() const
5527 {
5528  return reinterpret_cast<zwp_pointer_gestures_v1*> (c_ptr());
5529 }
5530 
5532 {
5533  proxy_t p = marshal_constructor(0u, &zwp_pointer_gesture_swipe_v1_interface, nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr);
5535 }
5536 
5538 {
5539  proxy_t p = marshal_constructor(1u, &zwp_pointer_gesture_pinch_v1_interface, nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr);
5541 }
5542 
5543 int zwp_pointer_gestures_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5544 {
5545  return 0;
5546 }
5547 
5548 zwp_pointer_gesture_swipe_v1_t::zwp_pointer_gesture_swipe_v1_t(const proxy_t &p)
5549  : proxy_t(p)
5550 {
5552  {
5553  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5554  set_destroy_opcode(0u);
5555  }
5556  interface = &zwp_pointer_gesture_swipe_v1_interface;
5557  copy_constructor = [] (const proxy_t &p) -> proxy_t
5558  { return zwp_pointer_gesture_swipe_v1_t(p); };
5559 }
5560 
5561 zwp_pointer_gesture_swipe_v1_t::zwp_pointer_gesture_swipe_v1_t()
5562 {
5563  interface = &zwp_pointer_gesture_swipe_v1_interface;
5564  copy_constructor = [] (const proxy_t &p) -> proxy_t
5565  { return zwp_pointer_gesture_swipe_v1_t(p); };
5566 }
5567 
5568 zwp_pointer_gesture_swipe_v1_t::zwp_pointer_gesture_swipe_v1_t(zwp_pointer_gesture_swipe_v1 *p, wrapper_type t)
5569  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5571  {
5572  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5573  set_destroy_opcode(0u);
5574  }
5575  interface = &zwp_pointer_gesture_swipe_v1_interface;
5576  copy_constructor = [] (const proxy_t &p) -> proxy_t
5577  { return zwp_pointer_gesture_swipe_v1_t(p); };
5578 }
5579 
5580 zwp_pointer_gesture_swipe_v1_t::zwp_pointer_gesture_swipe_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5581  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5582  interface = &zwp_pointer_gesture_swipe_v1_interface;
5583  copy_constructor = [] (const proxy_t &p) -> proxy_t
5584  { return zwp_pointer_gesture_swipe_v1_t(p); };
5585 }
5586 
5587 zwp_pointer_gesture_swipe_v1_t zwp_pointer_gesture_swipe_v1_t::proxy_create_wrapper()
5588 {
5589  return {*this, construct_proxy_wrapper_tag()};
5590 }
5591 
5592 const std::string zwp_pointer_gesture_swipe_v1_t::interface_name = "zwp_pointer_gesture_swipe_v1";
5593 
5594 zwp_pointer_gesture_swipe_v1_t::operator zwp_pointer_gesture_swipe_v1*() const
5595 {
5596  return reinterpret_cast<zwp_pointer_gesture_swipe_v1*> (c_ptr());
5597 }
5598 
5599 std::function<void(uint32_t, uint32_t, surface_t, uint32_t)> &zwp_pointer_gesture_swipe_v1_t::on_begin()
5600 {
5601  return std::static_pointer_cast<events_t>(get_events())->begin;
5602 }
5603 
5604 std::function<void(uint32_t, double, double)> &zwp_pointer_gesture_swipe_v1_t::on_update()
5605 {
5606  return std::static_pointer_cast<events_t>(get_events())->update;
5607 }
5608 
5609 std::function<void(uint32_t, uint32_t, int32_t)> &zwp_pointer_gesture_swipe_v1_t::on_end()
5610 {
5611  return std::static_pointer_cast<events_t>(get_events())->end;
5612 }
5613 
5614 int zwp_pointer_gesture_swipe_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5615 {
5616  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5617  switch(opcode)
5618  {
5619  case 0:
5620  if(events->begin) events->begin(args[0].get<uint32_t>(), args[1].get<uint32_t>(), surface_t(args[2].get<proxy_t>()), args[3].get<uint32_t>());
5621  break;
5622  case 1:
5623  if(events->update) events->update(args[0].get<uint32_t>(), args[1].get<double>(), args[2].get<double>());
5624  break;
5625  case 2:
5626  if(events->end) events->end(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<int32_t>());
5627  break;
5628  }
5629  return 0;
5630 }
5631 
5632 zwp_pointer_gesture_pinch_v1_t::zwp_pointer_gesture_pinch_v1_t(const proxy_t &p)
5633  : proxy_t(p)
5634 {
5636  {
5637  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5638  set_destroy_opcode(0u);
5639  }
5640  interface = &zwp_pointer_gesture_pinch_v1_interface;
5641  copy_constructor = [] (const proxy_t &p) -> proxy_t
5642  { return zwp_pointer_gesture_pinch_v1_t(p); };
5643 }
5644 
5645 zwp_pointer_gesture_pinch_v1_t::zwp_pointer_gesture_pinch_v1_t()
5646 {
5647  interface = &zwp_pointer_gesture_pinch_v1_interface;
5648  copy_constructor = [] (const proxy_t &p) -> proxy_t
5649  { return zwp_pointer_gesture_pinch_v1_t(p); };
5650 }
5651 
5652 zwp_pointer_gesture_pinch_v1_t::zwp_pointer_gesture_pinch_v1_t(zwp_pointer_gesture_pinch_v1 *p, wrapper_type t)
5653  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5655  {
5656  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5657  set_destroy_opcode(0u);
5658  }
5659  interface = &zwp_pointer_gesture_pinch_v1_interface;
5660  copy_constructor = [] (const proxy_t &p) -> proxy_t
5661  { return zwp_pointer_gesture_pinch_v1_t(p); };
5662 }
5663 
5664 zwp_pointer_gesture_pinch_v1_t::zwp_pointer_gesture_pinch_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5665  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5666  interface = &zwp_pointer_gesture_pinch_v1_interface;
5667  copy_constructor = [] (const proxy_t &p) -> proxy_t
5668  { return zwp_pointer_gesture_pinch_v1_t(p); };
5669 }
5670 
5671 zwp_pointer_gesture_pinch_v1_t zwp_pointer_gesture_pinch_v1_t::proxy_create_wrapper()
5672 {
5673  return {*this, construct_proxy_wrapper_tag()};
5674 }
5675 
5676 const std::string zwp_pointer_gesture_pinch_v1_t::interface_name = "zwp_pointer_gesture_pinch_v1";
5677 
5678 zwp_pointer_gesture_pinch_v1_t::operator zwp_pointer_gesture_pinch_v1*() const
5679 {
5680  return reinterpret_cast<zwp_pointer_gesture_pinch_v1*> (c_ptr());
5681 }
5682 
5683 std::function<void(uint32_t, uint32_t, surface_t, uint32_t)> &zwp_pointer_gesture_pinch_v1_t::on_begin()
5684 {
5685  return std::static_pointer_cast<events_t>(get_events())->begin;
5686 }
5687 
5688 std::function<void(uint32_t, double, double, double, double)> &zwp_pointer_gesture_pinch_v1_t::on_update()
5689 {
5690  return std::static_pointer_cast<events_t>(get_events())->update;
5691 }
5692 
5693 std::function<void(uint32_t, uint32_t, int32_t)> &zwp_pointer_gesture_pinch_v1_t::on_end()
5694 {
5695  return std::static_pointer_cast<events_t>(get_events())->end;
5696 }
5697 
5698 int zwp_pointer_gesture_pinch_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5699 {
5700  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5701  switch(opcode)
5702  {
5703  case 0:
5704  if(events->begin) events->begin(args[0].get<uint32_t>(), args[1].get<uint32_t>(), surface_t(args[2].get<proxy_t>()), args[3].get<uint32_t>());
5705  break;
5706  case 1:
5707  if(events->update) events->update(args[0].get<uint32_t>(), args[1].get<double>(), args[2].get<double>(), args[3].get<double>(), args[4].get<double>());
5708  break;
5709  case 2:
5710  if(events->end) events->end(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<int32_t>());
5711  break;
5712  }
5713  return 0;
5714 }
5715 
5716 zwp_primary_selection_device_manager_v1_t::zwp_primary_selection_device_manager_v1_t(const proxy_t &p)
5717  : proxy_t(p)
5718 {
5720  {
5721  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5722  set_destroy_opcode(2u);
5723  }
5724  interface = &zwp_primary_selection_device_manager_v1_interface;
5725  copy_constructor = [] (const proxy_t &p) -> proxy_t
5727 }
5728 
5729 zwp_primary_selection_device_manager_v1_t::zwp_primary_selection_device_manager_v1_t()
5730 {
5731  interface = &zwp_primary_selection_device_manager_v1_interface;
5732  copy_constructor = [] (const proxy_t &p) -> proxy_t
5734 }
5735 
5736 zwp_primary_selection_device_manager_v1_t::zwp_primary_selection_device_manager_v1_t(zwp_primary_selection_device_manager_v1 *p, wrapper_type t)
5737  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5739  {
5740  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5741  set_destroy_opcode(2u);
5742  }
5743  interface = &zwp_primary_selection_device_manager_v1_interface;
5744  copy_constructor = [] (const proxy_t &p) -> proxy_t
5746 }
5747 
5748 zwp_primary_selection_device_manager_v1_t::zwp_primary_selection_device_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5749  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5750  interface = &zwp_primary_selection_device_manager_v1_interface;
5751  copy_constructor = [] (const proxy_t &p) -> proxy_t
5753 }
5754 
5755 zwp_primary_selection_device_manager_v1_t zwp_primary_selection_device_manager_v1_t::proxy_create_wrapper()
5756 {
5757  return {*this, construct_proxy_wrapper_tag()};
5758 }
5759 
5760 const std::string zwp_primary_selection_device_manager_v1_t::interface_name = "zwp_primary_selection_device_manager_v1";
5761 
5762 zwp_primary_selection_device_manager_v1_t::operator zwp_primary_selection_device_manager_v1*() const
5763 {
5764  return reinterpret_cast<zwp_primary_selection_device_manager_v1*> (c_ptr());
5765 }
5766 
5768 {
5769  proxy_t p = marshal_constructor(0u, &zwp_primary_selection_source_v1_interface, nullptr);
5771 }
5772 
5773 zwp_primary_selection_device_v1_t zwp_primary_selection_device_manager_v1_t::get_device(seat_t seat)
5774 {
5775  proxy_t p = marshal_constructor(1u, &zwp_primary_selection_device_v1_interface, nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
5776  return zwp_primary_selection_device_v1_t(p);
5777 }
5778 
5779 int zwp_primary_selection_device_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5780 {
5781  return 0;
5782 }
5783 
5784 zwp_primary_selection_device_v1_t::zwp_primary_selection_device_v1_t(const proxy_t &p)
5785  : proxy_t(p)
5786 {
5788  {
5789  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5790  set_destroy_opcode(1u);
5791  }
5792  interface = &zwp_primary_selection_device_v1_interface;
5793  copy_constructor = [] (const proxy_t &p) -> proxy_t
5794  { return zwp_primary_selection_device_v1_t(p); };
5795 }
5796 
5797 zwp_primary_selection_device_v1_t::zwp_primary_selection_device_v1_t()
5798 {
5799  interface = &zwp_primary_selection_device_v1_interface;
5800  copy_constructor = [] (const proxy_t &p) -> proxy_t
5801  { return zwp_primary_selection_device_v1_t(p); };
5802 }
5803 
5804 zwp_primary_selection_device_v1_t::zwp_primary_selection_device_v1_t(zwp_primary_selection_device_v1 *p, wrapper_type t)
5805  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5807  {
5808  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5809  set_destroy_opcode(1u);
5810  }
5811  interface = &zwp_primary_selection_device_v1_interface;
5812  copy_constructor = [] (const proxy_t &p) -> proxy_t
5813  { return zwp_primary_selection_device_v1_t(p); };
5814 }
5815 
5816 zwp_primary_selection_device_v1_t::zwp_primary_selection_device_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5817  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5818  interface = &zwp_primary_selection_device_v1_interface;
5819  copy_constructor = [] (const proxy_t &p) -> proxy_t
5820  { return zwp_primary_selection_device_v1_t(p); };
5821 }
5822 
5823 zwp_primary_selection_device_v1_t zwp_primary_selection_device_v1_t::proxy_create_wrapper()
5824 {
5825  return {*this, construct_proxy_wrapper_tag()};
5826 }
5827 
5828 const std::string zwp_primary_selection_device_v1_t::interface_name = "zwp_primary_selection_device_v1";
5829 
5830 zwp_primary_selection_device_v1_t::operator zwp_primary_selection_device_v1*() const
5831 {
5832  return reinterpret_cast<zwp_primary_selection_device_v1*> (c_ptr());
5833 }
5834 
5835 void zwp_primary_selection_device_v1_t::set_selection(zwp_primary_selection_source_v1_t source, uint32_t serial)
5836 {
5837  marshal(0u, source.proxy_has_object() ? reinterpret_cast<wl_object*>(source.c_ptr()) : nullptr, serial);
5838 }
5839 
5840 std::function<void(zwp_primary_selection_offer_v1_t)> &zwp_primary_selection_device_v1_t::on_data_offer()
5841 {
5842  return std::static_pointer_cast<events_t>(get_events())->data_offer;
5843 }
5844 
5845 std::function<void(zwp_primary_selection_offer_v1_t)> &zwp_primary_selection_device_v1_t::on_selection()
5846 {
5847  return std::static_pointer_cast<events_t>(get_events())->selection;
5848 }
5849 
5850 int zwp_primary_selection_device_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5851 {
5852  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5853  switch(opcode)
5854  {
5855  case 0:
5856  if(events->data_offer) events->data_offer(zwp_primary_selection_offer_v1_t(args[0].get<proxy_t>()));
5857  break;
5858  case 1:
5859  if(events->selection) events->selection(zwp_primary_selection_offer_v1_t(args[0].get<proxy_t>()));
5860  break;
5861  }
5862  return 0;
5863 }
5864 
5865 zwp_primary_selection_offer_v1_t::zwp_primary_selection_offer_v1_t(const proxy_t &p)
5866  : proxy_t(p)
5867 {
5869  {
5870  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5871  set_destroy_opcode(1u);
5872  }
5873  interface = &zwp_primary_selection_offer_v1_interface;
5874  copy_constructor = [] (const proxy_t &p) -> proxy_t
5875  { return zwp_primary_selection_offer_v1_t(p); };
5876 }
5877 
5878 zwp_primary_selection_offer_v1_t::zwp_primary_selection_offer_v1_t()
5879 {
5880  interface = &zwp_primary_selection_offer_v1_interface;
5881  copy_constructor = [] (const proxy_t &p) -> proxy_t
5882  { return zwp_primary_selection_offer_v1_t(p); };
5883 }
5884 
5885 zwp_primary_selection_offer_v1_t::zwp_primary_selection_offer_v1_t(zwp_primary_selection_offer_v1 *p, wrapper_type t)
5886  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5888  {
5889  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5890  set_destroy_opcode(1u);
5891  }
5892  interface = &zwp_primary_selection_offer_v1_interface;
5893  copy_constructor = [] (const proxy_t &p) -> proxy_t
5894  { return zwp_primary_selection_offer_v1_t(p); };
5895 }
5896 
5897 zwp_primary_selection_offer_v1_t::zwp_primary_selection_offer_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5898  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5899  interface = &zwp_primary_selection_offer_v1_interface;
5900  copy_constructor = [] (const proxy_t &p) -> proxy_t
5901  { return zwp_primary_selection_offer_v1_t(p); };
5902 }
5903 
5904 zwp_primary_selection_offer_v1_t zwp_primary_selection_offer_v1_t::proxy_create_wrapper()
5905 {
5906  return {*this, construct_proxy_wrapper_tag()};
5907 }
5908 
5909 const std::string zwp_primary_selection_offer_v1_t::interface_name = "zwp_primary_selection_offer_v1";
5910 
5911 zwp_primary_selection_offer_v1_t::operator zwp_primary_selection_offer_v1*() const
5912 {
5913  return reinterpret_cast<zwp_primary_selection_offer_v1*> (c_ptr());
5914 }
5915 
5916 void zwp_primary_selection_offer_v1_t::receive(std::string mime_type, int fd)
5917 {
5918  marshal(0u, mime_type, argument_t::fd(fd));
5919 }
5920 
5921 std::function<void(std::string)> &zwp_primary_selection_offer_v1_t::on_offer()
5922 {
5923  return std::static_pointer_cast<events_t>(get_events())->offer;
5924 }
5925 
5926 int zwp_primary_selection_offer_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
5927 {
5928  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
5929  switch(opcode)
5930  {
5931  case 0:
5932  if(events->offer) events->offer(args[0].get<std::string>());
5933  break;
5934  }
5935  return 0;
5936 }
5937 
5938 zwp_primary_selection_source_v1_t::zwp_primary_selection_source_v1_t(const proxy_t &p)
5939  : proxy_t(p)
5940 {
5942  {
5943  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5944  set_destroy_opcode(1u);
5945  }
5946  interface = &zwp_primary_selection_source_v1_interface;
5947  copy_constructor = [] (const proxy_t &p) -> proxy_t
5948  { return zwp_primary_selection_source_v1_t(p); };
5949 }
5950 
5951 zwp_primary_selection_source_v1_t::zwp_primary_selection_source_v1_t()
5952 {
5953  interface = &zwp_primary_selection_source_v1_interface;
5954  copy_constructor = [] (const proxy_t &p) -> proxy_t
5955  { return zwp_primary_selection_source_v1_t(p); };
5956 }
5957 
5958 zwp_primary_selection_source_v1_t::zwp_primary_selection_source_v1_t(zwp_primary_selection_source_v1 *p, wrapper_type t)
5959  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
5961  {
5962  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
5963  set_destroy_opcode(1u);
5964  }
5965  interface = &zwp_primary_selection_source_v1_interface;
5966  copy_constructor = [] (const proxy_t &p) -> proxy_t
5967  { return zwp_primary_selection_source_v1_t(p); };
5968 }
5969 
5970 zwp_primary_selection_source_v1_t::zwp_primary_selection_source_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
5971  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
5972  interface = &zwp_primary_selection_source_v1_interface;
5973  copy_constructor = [] (const proxy_t &p) -> proxy_t
5974  { return zwp_primary_selection_source_v1_t(p); };
5975 }
5976 
5977 zwp_primary_selection_source_v1_t zwp_primary_selection_source_v1_t::proxy_create_wrapper()
5978 {
5979  return {*this, construct_proxy_wrapper_tag()};
5980 }
5981 
5982 const std::string zwp_primary_selection_source_v1_t::interface_name = "zwp_primary_selection_source_v1";
5983 
5984 zwp_primary_selection_source_v1_t::operator zwp_primary_selection_source_v1*() const
5985 {
5986  return reinterpret_cast<zwp_primary_selection_source_v1*> (c_ptr());
5987 }
5988 
5989 void zwp_primary_selection_source_v1_t::offer(std::string mime_type)
5990 {
5991  marshal(0u, mime_type);
5992 }
5993 
5994 std::function<void(std::string, int)> &zwp_primary_selection_source_v1_t::on_send()
5995 {
5996  return std::static_pointer_cast<events_t>(get_events())->send;
5997 }
5998 
6000 {
6001  return std::static_pointer_cast<events_t>(get_events())->cancelled;
6002 }
6003 
6004 int zwp_primary_selection_source_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6005 {
6006  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6007  switch(opcode)
6008  {
6009  case 0:
6010  if(events->send) events->send(args[0].get<std::string>(), args[1].get<int>());
6011  break;
6012  case 1:
6013  if(events->cancelled) events->cancelled();
6014  break;
6015  }
6016  return 0;
6017 }
6018 
6019 zwp_relative_pointer_manager_v1_t::zwp_relative_pointer_manager_v1_t(const proxy_t &p)
6020  : proxy_t(p)
6021 {
6023  {
6024  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6025  set_destroy_opcode(0u);
6026  }
6027  interface = &zwp_relative_pointer_manager_v1_interface;
6028  copy_constructor = [] (const proxy_t &p) -> proxy_t
6029  { return zwp_relative_pointer_manager_v1_t(p); };
6030 }
6031 
6032 zwp_relative_pointer_manager_v1_t::zwp_relative_pointer_manager_v1_t()
6033 {
6034  interface = &zwp_relative_pointer_manager_v1_interface;
6035  copy_constructor = [] (const proxy_t &p) -> proxy_t
6036  { return zwp_relative_pointer_manager_v1_t(p); };
6037 }
6038 
6039 zwp_relative_pointer_manager_v1_t::zwp_relative_pointer_manager_v1_t(zwp_relative_pointer_manager_v1 *p, wrapper_type t)
6040  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6042  {
6043  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6044  set_destroy_opcode(0u);
6045  }
6046  interface = &zwp_relative_pointer_manager_v1_interface;
6047  copy_constructor = [] (const proxy_t &p) -> proxy_t
6048  { return zwp_relative_pointer_manager_v1_t(p); };
6049 }
6050 
6051 zwp_relative_pointer_manager_v1_t::zwp_relative_pointer_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6052  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6053  interface = &zwp_relative_pointer_manager_v1_interface;
6054  copy_constructor = [] (const proxy_t &p) -> proxy_t
6055  { return zwp_relative_pointer_manager_v1_t(p); };
6056 }
6057 
6058 zwp_relative_pointer_manager_v1_t zwp_relative_pointer_manager_v1_t::proxy_create_wrapper()
6059 {
6060  return {*this, construct_proxy_wrapper_tag()};
6061 }
6062 
6063 const std::string zwp_relative_pointer_manager_v1_t::interface_name = "zwp_relative_pointer_manager_v1";
6064 
6065 zwp_relative_pointer_manager_v1_t::operator zwp_relative_pointer_manager_v1*() const
6066 {
6067  return reinterpret_cast<zwp_relative_pointer_manager_v1*> (c_ptr());
6068 }
6069 
6071 {
6072  proxy_t p = marshal_constructor(1u, &zwp_relative_pointer_v1_interface, nullptr, pointer.proxy_has_object() ? reinterpret_cast<wl_object*>(pointer.c_ptr()) : nullptr);
6073  return zwp_relative_pointer_v1_t(p);
6074 }
6075 
6076 int zwp_relative_pointer_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6077 {
6078  return 0;
6079 }
6080 
6081 zwp_relative_pointer_v1_t::zwp_relative_pointer_v1_t(const proxy_t &p)
6082  : proxy_t(p)
6083 {
6085  {
6086  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6087  set_destroy_opcode(0u);
6088  }
6089  interface = &zwp_relative_pointer_v1_interface;
6090  copy_constructor = [] (const proxy_t &p) -> proxy_t
6091  { return zwp_relative_pointer_v1_t(p); };
6092 }
6093 
6094 zwp_relative_pointer_v1_t::zwp_relative_pointer_v1_t()
6095 {
6096  interface = &zwp_relative_pointer_v1_interface;
6097  copy_constructor = [] (const proxy_t &p) -> proxy_t
6098  { return zwp_relative_pointer_v1_t(p); };
6099 }
6100 
6101 zwp_relative_pointer_v1_t::zwp_relative_pointer_v1_t(zwp_relative_pointer_v1 *p, wrapper_type t)
6102  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6104  {
6105  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6106  set_destroy_opcode(0u);
6107  }
6108  interface = &zwp_relative_pointer_v1_interface;
6109  copy_constructor = [] (const proxy_t &p) -> proxy_t
6110  { return zwp_relative_pointer_v1_t(p); };
6111 }
6112 
6113 zwp_relative_pointer_v1_t::zwp_relative_pointer_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6114  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6115  interface = &zwp_relative_pointer_v1_interface;
6116  copy_constructor = [] (const proxy_t &p) -> proxy_t
6117  { return zwp_relative_pointer_v1_t(p); };
6118 }
6119 
6120 zwp_relative_pointer_v1_t zwp_relative_pointer_v1_t::proxy_create_wrapper()
6121 {
6122  return {*this, construct_proxy_wrapper_tag()};
6123 }
6124 
6125 const std::string zwp_relative_pointer_v1_t::interface_name = "zwp_relative_pointer_v1";
6126 
6127 zwp_relative_pointer_v1_t::operator zwp_relative_pointer_v1*() const
6128 {
6129  return reinterpret_cast<zwp_relative_pointer_v1*> (c_ptr());
6130 }
6131 
6132 std::function<void(uint32_t, uint32_t, double, double, double, double)> &zwp_relative_pointer_v1_t::on_relative_motion()
6133 {
6134  return std::static_pointer_cast<events_t>(get_events())->relative_motion;
6135 }
6136 
6137 int zwp_relative_pointer_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6138 {
6139  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6140  switch(opcode)
6141  {
6142  case 0:
6143  if(events->relative_motion) events->relative_motion(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<double>(), args[3].get<double>(), args[4].get<double>(), args[5].get<double>());
6144  break;
6145  }
6146  return 0;
6147 }
6148 
6149 zwp_tablet_manager_v1_t::zwp_tablet_manager_v1_t(const proxy_t &p)
6150  : proxy_t(p)
6151 {
6153  {
6154  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6155  set_destroy_opcode(1u);
6156  }
6157  interface = &zwp_tablet_manager_v1_interface;
6158  copy_constructor = [] (const proxy_t &p) -> proxy_t
6159  { return zwp_tablet_manager_v1_t(p); };
6160 }
6161 
6162 zwp_tablet_manager_v1_t::zwp_tablet_manager_v1_t()
6163 {
6164  interface = &zwp_tablet_manager_v1_interface;
6165  copy_constructor = [] (const proxy_t &p) -> proxy_t
6166  { return zwp_tablet_manager_v1_t(p); };
6167 }
6168 
6169 zwp_tablet_manager_v1_t::zwp_tablet_manager_v1_t(zwp_tablet_manager_v1 *p, wrapper_type t)
6170  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6172  {
6173  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6174  set_destroy_opcode(1u);
6175  }
6176  interface = &zwp_tablet_manager_v1_interface;
6177  copy_constructor = [] (const proxy_t &p) -> proxy_t
6178  { return zwp_tablet_manager_v1_t(p); };
6179 }
6180 
6181 zwp_tablet_manager_v1_t::zwp_tablet_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6182  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6183  interface = &zwp_tablet_manager_v1_interface;
6184  copy_constructor = [] (const proxy_t &p) -> proxy_t
6185  { return zwp_tablet_manager_v1_t(p); };
6186 }
6187 
6188 zwp_tablet_manager_v1_t zwp_tablet_manager_v1_t::proxy_create_wrapper()
6189 {
6190  return {*this, construct_proxy_wrapper_tag()};
6191 }
6192 
6193 const std::string zwp_tablet_manager_v1_t::interface_name = "zwp_tablet_manager_v1";
6194 
6195 zwp_tablet_manager_v1_t::operator zwp_tablet_manager_v1*() const
6196 {
6197  return reinterpret_cast<zwp_tablet_manager_v1*> (c_ptr());
6198 }
6199 
6201 {
6202  proxy_t p = marshal_constructor(0u, &zwp_tablet_seat_v1_interface, nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
6203  return zwp_tablet_seat_v1_t(p);
6204 }
6205 
6206 int zwp_tablet_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6207 {
6208  return 0;
6209 }
6210 
6211 zwp_tablet_seat_v1_t::zwp_tablet_seat_v1_t(const proxy_t &p)
6212  : proxy_t(p)
6213 {
6215  {
6216  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6217  set_destroy_opcode(0u);
6218  }
6219  interface = &zwp_tablet_seat_v1_interface;
6220  copy_constructor = [] (const proxy_t &p) -> proxy_t
6221  { return zwp_tablet_seat_v1_t(p); };
6222 }
6223 
6224 zwp_tablet_seat_v1_t::zwp_tablet_seat_v1_t()
6225 {
6226  interface = &zwp_tablet_seat_v1_interface;
6227  copy_constructor = [] (const proxy_t &p) -> proxy_t
6228  { return zwp_tablet_seat_v1_t(p); };
6229 }
6230 
6231 zwp_tablet_seat_v1_t::zwp_tablet_seat_v1_t(zwp_tablet_seat_v1 *p, wrapper_type t)
6232  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6234  {
6235  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6236  set_destroy_opcode(0u);
6237  }
6238  interface = &zwp_tablet_seat_v1_interface;
6239  copy_constructor = [] (const proxy_t &p) -> proxy_t
6240  { return zwp_tablet_seat_v1_t(p); };
6241 }
6242 
6243 zwp_tablet_seat_v1_t::zwp_tablet_seat_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6244  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6245  interface = &zwp_tablet_seat_v1_interface;
6246  copy_constructor = [] (const proxy_t &p) -> proxy_t
6247  { return zwp_tablet_seat_v1_t(p); };
6248 }
6249 
6250 zwp_tablet_seat_v1_t zwp_tablet_seat_v1_t::proxy_create_wrapper()
6251 {
6252  return {*this, construct_proxy_wrapper_tag()};
6253 }
6254 
6255 const std::string zwp_tablet_seat_v1_t::interface_name = "zwp_tablet_seat_v1";
6256 
6257 zwp_tablet_seat_v1_t::operator zwp_tablet_seat_v1*() const
6258 {
6259  return reinterpret_cast<zwp_tablet_seat_v1*> (c_ptr());
6260 }
6261 
6263 {
6264  return std::static_pointer_cast<events_t>(get_events())->tablet_added;
6265 }
6266 
6268 {
6269  return std::static_pointer_cast<events_t>(get_events())->tool_added;
6270 }
6271 
6272 int zwp_tablet_seat_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6273 {
6274  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6275  switch(opcode)
6276  {
6277  case 0:
6278  if(events->tablet_added) events->tablet_added(zwp_tablet_v1_t(args[0].get<proxy_t>()));
6279  break;
6280  case 1:
6281  if(events->tool_added) events->tool_added(zwp_tablet_tool_v1_t(args[0].get<proxy_t>()));
6282  break;
6283  }
6284  return 0;
6285 }
6286 
6287 zwp_tablet_tool_v1_t::zwp_tablet_tool_v1_t(const proxy_t &p)
6288  : proxy_t(p)
6289 {
6291  {
6292  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6293  set_destroy_opcode(1u);
6294  }
6295  interface = &zwp_tablet_tool_v1_interface;
6296  copy_constructor = [] (const proxy_t &p) -> proxy_t
6297  { return zwp_tablet_tool_v1_t(p); };
6298 }
6299 
6300 zwp_tablet_tool_v1_t::zwp_tablet_tool_v1_t()
6301 {
6302  interface = &zwp_tablet_tool_v1_interface;
6303  copy_constructor = [] (const proxy_t &p) -> proxy_t
6304  { return zwp_tablet_tool_v1_t(p); };
6305 }
6306 
6307 zwp_tablet_tool_v1_t::zwp_tablet_tool_v1_t(zwp_tablet_tool_v1 *p, wrapper_type t)
6308  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6310  {
6311  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6312  set_destroy_opcode(1u);
6313  }
6314  interface = &zwp_tablet_tool_v1_interface;
6315  copy_constructor = [] (const proxy_t &p) -> proxy_t
6316  { return zwp_tablet_tool_v1_t(p); };
6317 }
6318 
6319 zwp_tablet_tool_v1_t::zwp_tablet_tool_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6320  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6321  interface = &zwp_tablet_tool_v1_interface;
6322  copy_constructor = [] (const proxy_t &p) -> proxy_t
6323  { return zwp_tablet_tool_v1_t(p); };
6324 }
6325 
6326 zwp_tablet_tool_v1_t zwp_tablet_tool_v1_t::proxy_create_wrapper()
6327 {
6328  return {*this, construct_proxy_wrapper_tag()};
6329 }
6330 
6331 const std::string zwp_tablet_tool_v1_t::interface_name = "zwp_tablet_tool_v1";
6332 
6333 zwp_tablet_tool_v1_t::operator zwp_tablet_tool_v1*() const
6334 {
6335  return reinterpret_cast<zwp_tablet_tool_v1*> (c_ptr());
6336 }
6337 
6338 void zwp_tablet_tool_v1_t::set_cursor(uint32_t serial, surface_t surface, int32_t hotspot_x, int32_t hotspot_y)
6339 {
6340  marshal(0u, serial, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, hotspot_x, hotspot_y);
6341 }
6342 
6343 std::function<void(zwp_tablet_tool_v1_type)> &zwp_tablet_tool_v1_t::on_type()
6344 {
6345  return std::static_pointer_cast<events_t>(get_events())->type;
6346 }
6347 
6348 std::function<void(uint32_t, uint32_t)> &zwp_tablet_tool_v1_t::on_hardware_serial()
6349 {
6350  return std::static_pointer_cast<events_t>(get_events())->hardware_serial;
6351 }
6352 
6353 std::function<void(uint32_t, uint32_t)> &zwp_tablet_tool_v1_t::on_hardware_id_wacom()
6354 {
6355  return std::static_pointer_cast<events_t>(get_events())->hardware_id_wacom;
6356 }
6357 
6358 std::function<void(zwp_tablet_tool_v1_capability)> &zwp_tablet_tool_v1_t::on_capability()
6359 {
6360  return std::static_pointer_cast<events_t>(get_events())->capability;
6361 }
6362 
6363 std::function<void()> &zwp_tablet_tool_v1_t::on_done()
6364 {
6365  return std::static_pointer_cast<events_t>(get_events())->done;
6366 }
6367 
6368 std::function<void()> &zwp_tablet_tool_v1_t::on_removed()
6369 {
6370  return std::static_pointer_cast<events_t>(get_events())->removed;
6371 }
6372 
6374 {
6375  return std::static_pointer_cast<events_t>(get_events())->proximity_in;
6376 }
6377 
6379 {
6380  return std::static_pointer_cast<events_t>(get_events())->proximity_out;
6381 }
6382 
6383 std::function<void(uint32_t)> &zwp_tablet_tool_v1_t::on_down()
6384 {
6385  return std::static_pointer_cast<events_t>(get_events())->down;
6386 }
6387 
6388 std::function<void()> &zwp_tablet_tool_v1_t::on_up()
6389 {
6390  return std::static_pointer_cast<events_t>(get_events())->up;
6391 }
6392 
6393 std::function<void(double, double)> &zwp_tablet_tool_v1_t::on_motion()
6394 {
6395  return std::static_pointer_cast<events_t>(get_events())->motion;
6396 }
6397 
6398 std::function<void(uint32_t)> &zwp_tablet_tool_v1_t::on_pressure()
6399 {
6400  return std::static_pointer_cast<events_t>(get_events())->pressure;
6401 }
6402 
6403 std::function<void(uint32_t)> &zwp_tablet_tool_v1_t::on_distance()
6404 {
6405  return std::static_pointer_cast<events_t>(get_events())->distance;
6406 }
6407 
6408 std::function<void(int32_t, int32_t)> &zwp_tablet_tool_v1_t::on_tilt()
6409 {
6410  return std::static_pointer_cast<events_t>(get_events())->tilt;
6411 }
6412 
6413 std::function<void(int32_t)> &zwp_tablet_tool_v1_t::on_rotation()
6414 {
6415  return std::static_pointer_cast<events_t>(get_events())->rotation;
6416 }
6417 
6418 std::function<void(int32_t)> &zwp_tablet_tool_v1_t::on_slider()
6419 {
6420  return std::static_pointer_cast<events_t>(get_events())->slider;
6421 }
6422 
6423 std::function<void(int32_t, int32_t)> &zwp_tablet_tool_v1_t::on_wheel()
6424 {
6425  return std::static_pointer_cast<events_t>(get_events())->wheel;
6426 }
6427 
6428 std::function<void(uint32_t, uint32_t, zwp_tablet_tool_v1_button_state)> &zwp_tablet_tool_v1_t::on_button()
6429 {
6430  return std::static_pointer_cast<events_t>(get_events())->button;
6431 }
6432 
6433 std::function<void(uint32_t)> &zwp_tablet_tool_v1_t::on_frame()
6434 {
6435  return std::static_pointer_cast<events_t>(get_events())->frame;
6436 }
6437 
6438 int zwp_tablet_tool_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6439 {
6440  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6441  switch(opcode)
6442  {
6443  case 0:
6444  if(events->type) events->type(zwp_tablet_tool_v1_type(args[0].get<uint32_t>()));
6445  break;
6446  case 1:
6447  if(events->hardware_serial) events->hardware_serial(args[0].get<uint32_t>(), args[1].get<uint32_t>());
6448  break;
6449  case 2:
6450  if(events->hardware_id_wacom) events->hardware_id_wacom(args[0].get<uint32_t>(), args[1].get<uint32_t>());
6451  break;
6452  case 3:
6453  if(events->capability) events->capability(zwp_tablet_tool_v1_capability(args[0].get<uint32_t>()));
6454  break;
6455  case 4:
6456  if(events->done) events->done();
6457  break;
6458  case 5:
6459  if(events->removed) events->removed();
6460  break;
6461  case 6:
6462  if(events->proximity_in) events->proximity_in(args[0].get<uint32_t>(), zwp_tablet_v1_t(args[1].get<proxy_t>()), surface_t(args[2].get<proxy_t>()));
6463  break;
6464  case 7:
6465  if(events->proximity_out) events->proximity_out();
6466  break;
6467  case 8:
6468  if(events->down) events->down(args[0].get<uint32_t>());
6469  break;
6470  case 9:
6471  if(events->up) events->up();
6472  break;
6473  case 10:
6474  if(events->motion) events->motion(args[0].get<double>(), args[1].get<double>());
6475  break;
6476  case 11:
6477  if(events->pressure) events->pressure(args[0].get<uint32_t>());
6478  break;
6479  case 12:
6480  if(events->distance) events->distance(args[0].get<uint32_t>());
6481  break;
6482  case 13:
6483  if(events->tilt) events->tilt(args[0].get<int32_t>(), args[1].get<int32_t>());
6484  break;
6485  case 14:
6486  if(events->rotation) events->rotation(args[0].get<int32_t>());
6487  break;
6488  case 15:
6489  if(events->slider) events->slider(args[0].get<int32_t>());
6490  break;
6491  case 16:
6492  if(events->wheel) events->wheel(args[0].get<int32_t>(), args[1].get<int32_t>());
6493  break;
6494  case 17:
6495  if(events->button) events->button(args[0].get<uint32_t>(), args[1].get<uint32_t>(), zwp_tablet_tool_v1_button_state(args[2].get<uint32_t>()));
6496  break;
6497  case 18:
6498  if(events->frame) events->frame(args[0].get<uint32_t>());
6499  break;
6500  }
6501  return 0;
6502 }
6503 
6504 
6505 
6506 
6507 
6508 zwp_tablet_v1_t::zwp_tablet_v1_t(const proxy_t &p)
6509  : proxy_t(p)
6510 {
6512  {
6513  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6514  set_destroy_opcode(0u);
6515  }
6516  interface = &zwp_tablet_v1_interface;
6517  copy_constructor = [] (const proxy_t &p) -> proxy_t
6518  { return zwp_tablet_v1_t(p); };
6519 }
6520 
6521 zwp_tablet_v1_t::zwp_tablet_v1_t()
6522 {
6523  interface = &zwp_tablet_v1_interface;
6524  copy_constructor = [] (const proxy_t &p) -> proxy_t
6525  { return zwp_tablet_v1_t(p); };
6526 }
6527 
6528 zwp_tablet_v1_t::zwp_tablet_v1_t(zwp_tablet_v1 *p, wrapper_type t)
6529  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6531  {
6532  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6533  set_destroy_opcode(0u);
6534  }
6535  interface = &zwp_tablet_v1_interface;
6536  copy_constructor = [] (const proxy_t &p) -> proxy_t
6537  { return zwp_tablet_v1_t(p); };
6538 }
6539 
6540 zwp_tablet_v1_t::zwp_tablet_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6541  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6542  interface = &zwp_tablet_v1_interface;
6543  copy_constructor = [] (const proxy_t &p) -> proxy_t
6544  { return zwp_tablet_v1_t(p); };
6545 }
6546 
6547 zwp_tablet_v1_t zwp_tablet_v1_t::proxy_create_wrapper()
6548 {
6549  return {*this, construct_proxy_wrapper_tag()};
6550 }
6551 
6552 const std::string zwp_tablet_v1_t::interface_name = "zwp_tablet_v1";
6553 
6554 zwp_tablet_v1_t::operator zwp_tablet_v1*() const
6555 {
6556  return reinterpret_cast<zwp_tablet_v1*> (c_ptr());
6557 }
6558 
6559 std::function<void(std::string)> &zwp_tablet_v1_t::on_name()
6560 {
6561  return std::static_pointer_cast<events_t>(get_events())->name;
6562 }
6563 
6564 std::function<void(uint32_t, uint32_t)> &zwp_tablet_v1_t::on_id()
6565 {
6566  return std::static_pointer_cast<events_t>(get_events())->id;
6567 }
6568 
6569 std::function<void(std::string)> &zwp_tablet_v1_t::on_path()
6570 {
6571  return std::static_pointer_cast<events_t>(get_events())->path;
6572 }
6573 
6574 std::function<void()> &zwp_tablet_v1_t::on_done()
6575 {
6576  return std::static_pointer_cast<events_t>(get_events())->done;
6577 }
6578 
6579 std::function<void()> &zwp_tablet_v1_t::on_removed()
6580 {
6581  return std::static_pointer_cast<events_t>(get_events())->removed;
6582 }
6583 
6584 int zwp_tablet_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6585 {
6586  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6587  switch(opcode)
6588  {
6589  case 0:
6590  if(events->name) events->name(args[0].get<std::string>());
6591  break;
6592  case 1:
6593  if(events->id) events->id(args[0].get<uint32_t>(), args[1].get<uint32_t>());
6594  break;
6595  case 2:
6596  if(events->path) events->path(args[0].get<std::string>());
6597  break;
6598  case 3:
6599  if(events->done) events->done();
6600  break;
6601  case 4:
6602  if(events->removed) events->removed();
6603  break;
6604  }
6605  return 0;
6606 }
6607 
6608 zwp_tablet_manager_v2_t::zwp_tablet_manager_v2_t(const proxy_t &p)
6609  : proxy_t(p)
6610 {
6612  {
6613  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6614  set_destroy_opcode(1u);
6615  }
6616  interface = &zwp_tablet_manager_v2_interface;
6617  copy_constructor = [] (const proxy_t &p) -> proxy_t
6618  { return zwp_tablet_manager_v2_t(p); };
6619 }
6620 
6621 zwp_tablet_manager_v2_t::zwp_tablet_manager_v2_t()
6622 {
6623  interface = &zwp_tablet_manager_v2_interface;
6624  copy_constructor = [] (const proxy_t &p) -> proxy_t
6625  { return zwp_tablet_manager_v2_t(p); };
6626 }
6627 
6628 zwp_tablet_manager_v2_t::zwp_tablet_manager_v2_t(zwp_tablet_manager_v2 *p, wrapper_type t)
6629  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6631  {
6632  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6633  set_destroy_opcode(1u);
6634  }
6635  interface = &zwp_tablet_manager_v2_interface;
6636  copy_constructor = [] (const proxy_t &p) -> proxy_t
6637  { return zwp_tablet_manager_v2_t(p); };
6638 }
6639 
6640 zwp_tablet_manager_v2_t::zwp_tablet_manager_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6641  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6642  interface = &zwp_tablet_manager_v2_interface;
6643  copy_constructor = [] (const proxy_t &p) -> proxy_t
6644  { return zwp_tablet_manager_v2_t(p); };
6645 }
6646 
6647 zwp_tablet_manager_v2_t zwp_tablet_manager_v2_t::proxy_create_wrapper()
6648 {
6649  return {*this, construct_proxy_wrapper_tag()};
6650 }
6651 
6652 const std::string zwp_tablet_manager_v2_t::interface_name = "zwp_tablet_manager_v2";
6653 
6654 zwp_tablet_manager_v2_t::operator zwp_tablet_manager_v2*() const
6655 {
6656  return reinterpret_cast<zwp_tablet_manager_v2*> (c_ptr());
6657 }
6658 
6660 {
6661  proxy_t p = marshal_constructor(0u, &zwp_tablet_seat_v2_interface, nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
6662  return zwp_tablet_seat_v2_t(p);
6663 }
6664 
6665 int zwp_tablet_manager_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6666 {
6667  return 0;
6668 }
6669 
6670 zwp_tablet_seat_v2_t::zwp_tablet_seat_v2_t(const proxy_t &p)
6671  : proxy_t(p)
6672 {
6674  {
6675  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6676  set_destroy_opcode(0u);
6677  }
6678  interface = &zwp_tablet_seat_v2_interface;
6679  copy_constructor = [] (const proxy_t &p) -> proxy_t
6680  { return zwp_tablet_seat_v2_t(p); };
6681 }
6682 
6683 zwp_tablet_seat_v2_t::zwp_tablet_seat_v2_t()
6684 {
6685  interface = &zwp_tablet_seat_v2_interface;
6686  copy_constructor = [] (const proxy_t &p) -> proxy_t
6687  { return zwp_tablet_seat_v2_t(p); };
6688 }
6689 
6690 zwp_tablet_seat_v2_t::zwp_tablet_seat_v2_t(zwp_tablet_seat_v2 *p, wrapper_type t)
6691  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6693  {
6694  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6695  set_destroy_opcode(0u);
6696  }
6697  interface = &zwp_tablet_seat_v2_interface;
6698  copy_constructor = [] (const proxy_t &p) -> proxy_t
6699  { return zwp_tablet_seat_v2_t(p); };
6700 }
6701 
6702 zwp_tablet_seat_v2_t::zwp_tablet_seat_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6703  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6704  interface = &zwp_tablet_seat_v2_interface;
6705  copy_constructor = [] (const proxy_t &p) -> proxy_t
6706  { return zwp_tablet_seat_v2_t(p); };
6707 }
6708 
6709 zwp_tablet_seat_v2_t zwp_tablet_seat_v2_t::proxy_create_wrapper()
6710 {
6711  return {*this, construct_proxy_wrapper_tag()};
6712 }
6713 
6714 const std::string zwp_tablet_seat_v2_t::interface_name = "zwp_tablet_seat_v2";
6715 
6716 zwp_tablet_seat_v2_t::operator zwp_tablet_seat_v2*() const
6717 {
6718  return reinterpret_cast<zwp_tablet_seat_v2*> (c_ptr());
6719 }
6720 
6722 {
6723  return std::static_pointer_cast<events_t>(get_events())->tablet_added;
6724 }
6725 
6727 {
6728  return std::static_pointer_cast<events_t>(get_events())->tool_added;
6729 }
6730 
6732 {
6733  return std::static_pointer_cast<events_t>(get_events())->pad_added;
6734 }
6735 
6736 int zwp_tablet_seat_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6737 {
6738  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6739  switch(opcode)
6740  {
6741  case 0:
6742  if(events->tablet_added) events->tablet_added(zwp_tablet_v2_t(args[0].get<proxy_t>()));
6743  break;
6744  case 1:
6745  if(events->tool_added) events->tool_added(zwp_tablet_tool_v2_t(args[0].get<proxy_t>()));
6746  break;
6747  case 2:
6748  if(events->pad_added) events->pad_added(zwp_tablet_pad_v2_t(args[0].get<proxy_t>()));
6749  break;
6750  }
6751  return 0;
6752 }
6753 
6754 zwp_tablet_tool_v2_t::zwp_tablet_tool_v2_t(const proxy_t &p)
6755  : proxy_t(p)
6756 {
6758  {
6759  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6760  set_destroy_opcode(1u);
6761  }
6762  interface = &zwp_tablet_tool_v2_interface;
6763  copy_constructor = [] (const proxy_t &p) -> proxy_t
6764  { return zwp_tablet_tool_v2_t(p); };
6765 }
6766 
6767 zwp_tablet_tool_v2_t::zwp_tablet_tool_v2_t()
6768 {
6769  interface = &zwp_tablet_tool_v2_interface;
6770  copy_constructor = [] (const proxy_t &p) -> proxy_t
6771  { return zwp_tablet_tool_v2_t(p); };
6772 }
6773 
6774 zwp_tablet_tool_v2_t::zwp_tablet_tool_v2_t(zwp_tablet_tool_v2 *p, wrapper_type t)
6775  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6777  {
6778  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6779  set_destroy_opcode(1u);
6780  }
6781  interface = &zwp_tablet_tool_v2_interface;
6782  copy_constructor = [] (const proxy_t &p) -> proxy_t
6783  { return zwp_tablet_tool_v2_t(p); };
6784 }
6785 
6786 zwp_tablet_tool_v2_t::zwp_tablet_tool_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
6787  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
6788  interface = &zwp_tablet_tool_v2_interface;
6789  copy_constructor = [] (const proxy_t &p) -> proxy_t
6790  { return zwp_tablet_tool_v2_t(p); };
6791 }
6792 
6793 zwp_tablet_tool_v2_t zwp_tablet_tool_v2_t::proxy_create_wrapper()
6794 {
6795  return {*this, construct_proxy_wrapper_tag()};
6796 }
6797 
6798 const std::string zwp_tablet_tool_v2_t::interface_name = "zwp_tablet_tool_v2";
6799 
6800 zwp_tablet_tool_v2_t::operator zwp_tablet_tool_v2*() const
6801 {
6802  return reinterpret_cast<zwp_tablet_tool_v2*> (c_ptr());
6803 }
6804 
6805 void zwp_tablet_tool_v2_t::set_cursor(uint32_t serial, surface_t surface, int32_t hotspot_x, int32_t hotspot_y)
6806 {
6807  marshal(0u, serial, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, hotspot_x, hotspot_y);
6808 }
6809 
6810 std::function<void(zwp_tablet_tool_v2_type)> &zwp_tablet_tool_v2_t::on_type()
6811 {
6812  return std::static_pointer_cast<events_t>(get_events())->type;
6813 }
6814 
6815 std::function<void(uint32_t, uint32_t)> &zwp_tablet_tool_v2_t::on_hardware_serial()
6816 {
6817  return std::static_pointer_cast<events_t>(get_events())->hardware_serial;
6818 }
6819 
6820 std::function<void(uint32_t, uint32_t)> &zwp_tablet_tool_v2_t::on_hardware_id_wacom()
6821 {
6822  return std::static_pointer_cast<events_t>(get_events())->hardware_id_wacom;
6823 }
6824 
6825 std::function<void(zwp_tablet_tool_v2_capability)> &zwp_tablet_tool_v2_t::on_capability()
6826 {
6827  return std::static_pointer_cast<events_t>(get_events())->capability;
6828 }
6829 
6830 std::function<void()> &zwp_tablet_tool_v2_t::on_done()
6831 {
6832  return std::static_pointer_cast<events_t>(get_events())->done;
6833 }
6834 
6835 std::function<void()> &zwp_tablet_tool_v2_t::on_removed()
6836 {
6837  return std::static_pointer_cast<events_t>(get_events())->removed;
6838 }
6839 
6841 {
6842  return std::static_pointer_cast<events_t>(get_events())->proximity_in;
6843 }
6844 
6846 {
6847  return std::static_pointer_cast<events_t>(get_events())->proximity_out;
6848 }
6849 
6850 std::function<void(uint32_t)> &zwp_tablet_tool_v2_t::on_down()
6851 {
6852  return std::static_pointer_cast<events_t>(get_events())->down;
6853 }
6854 
6855 std::function<void()> &zwp_tablet_tool_v2_t::on_up()
6856 {
6857  return std::static_pointer_cast<events_t>(get_events())->up;
6858 }
6859 
6860 std::function<void(double, double)> &zwp_tablet_tool_v2_t::on_motion()
6861 {
6862  return std::static_pointer_cast<events_t>(get_events())->motion;
6863 }
6864 
6865 std::function<void(uint32_t)> &zwp_tablet_tool_v2_t::on_pressure()
6866 {
6867  return std::static_pointer_cast<events_t>(get_events())->pressure;
6868 }
6869 
6870 std::function<void(uint32_t)> &zwp_tablet_tool_v2_t::on_distance()
6871 {
6872  return std::static_pointer_cast<events_t>(get_events())->distance;
6873 }
6874 
6875 std::function<void(double, double)> &zwp_tablet_tool_v2_t::on_tilt()
6876 {
6877  return std::static_pointer_cast<events_t>(get_events())->tilt;
6878 }
6879 
6880 std::function<void(double)> &zwp_tablet_tool_v2_t::on_rotation()
6881 {
6882  return std::static_pointer_cast<events_t>(get_events())->rotation;
6883 }
6884 
6885 std::function<void(int32_t)> &zwp_tablet_tool_v2_t::on_slider()
6886 {
6887  return std::static_pointer_cast<events_t>(get_events())->slider;
6888 }
6889 
6890 std::function<void(double, int32_t)> &zwp_tablet_tool_v2_t::on_wheel()
6891 {
6892  return std::static_pointer_cast<events_t>(get_events())->wheel;
6893 }
6894 
6895 std::function<void(uint32_t, uint32_t, zwp_tablet_tool_v2_button_state)> &zwp_tablet_tool_v2_t::on_button()
6896 {
6897  return std::static_pointer_cast<events_t>(get_events())->button;
6898 }
6899 
6900 std::function<void(uint32_t)> &zwp_tablet_tool_v2_t::on_frame()
6901 {
6902  return std::static_pointer_cast<events_t>(get_events())->frame;
6903 }
6904 
6905 int zwp_tablet_tool_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
6906 {
6907  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
6908  switch(opcode)
6909  {
6910  case 0:
6911  if(events->type) events->type(zwp_tablet_tool_v2_type(args[0].get<uint32_t>()));
6912  break;
6913  case 1:
6914  if(events->hardware_serial) events->hardware_serial(args[0].get<uint32_t>(), args[1].get<uint32_t>());
6915  break;
6916  case 2:
6917  if(events->hardware_id_wacom) events->hardware_id_wacom(args[0].get<uint32_t>(), args[1].get<uint32_t>());
6918  break;
6919  case 3:
6920  if(events->capability) events->capability(zwp_tablet_tool_v2_capability(args[0].get<uint32_t>()));
6921  break;
6922  case 4:
6923  if(events->done) events->done();
6924  break;
6925  case 5:
6926  if(events->removed) events->removed();
6927  break;
6928  case 6:
6929  if(events->proximity_in) events->proximity_in(args[0].get<uint32_t>(), zwp_tablet_v2_t(args[1].get<proxy_t>()), surface_t(args[2].get<proxy_t>()));
6930  break;
6931  case 7:
6932  if(events->proximity_out) events->proximity_out();
6933  break;
6934  case 8:
6935  if(events->down) events->down(args[0].get<uint32_t>());
6936  break;
6937  case 9:
6938  if(events->up) events->up();
6939  break;
6940  case 10:
6941  if(events->motion) events->motion(args[0].get<double>(), args[1].get<double>());
6942  break;
6943  case 11:
6944  if(events->pressure) events->pressure(args[0].get<uint32_t>());
6945  break;
6946  case 12:
6947  if(events->distance) events->distance(args[0].get<uint32_t>());
6948  break;
6949  case 13:
6950  if(events->tilt) events->tilt(args[0].get<double>(), args[1].get<double>());
6951  break;
6952  case 14:
6953  if(events->rotation) events->rotation(args[0].get<double>());
6954  break;
6955  case 15:
6956  if(events->slider) events->slider(args[0].get<int32_t>());
6957  break;
6958  case 16:
6959  if(events->wheel) events->wheel(args[0].get<double>(), args[1].get<int32_t>());
6960  break;
6961  case 17:
6962  if(events->button) events->button(args[0].get<uint32_t>(), args[1].get<uint32_t>(), zwp_tablet_tool_v2_button_state(args[2].get<uint32_t>()));
6963  break;
6964  case 18:
6965  if(events->frame) events->frame(args[0].get<uint32_t>());
6966  break;
6967  }
6968  return 0;
6969 }
6970 
6971 
6972 
6973 
6974 
6975 zwp_tablet_v2_t::zwp_tablet_v2_t(const proxy_t &p)
6976  : proxy_t(p)
6977 {
6979  {
6980  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
6981  set_destroy_opcode(0u);
6982  }
6983  interface = &zwp_tablet_v2_interface;
6984  copy_constructor = [] (const proxy_t &p) -> proxy_t
6985  { return zwp_tablet_v2_t(p); };
6986 }
6987 
6988 zwp_tablet_v2_t::zwp_tablet_v2_t()
6989 {
6990  interface = &zwp_tablet_v2_interface;
6991  copy_constructor = [] (const proxy_t &p) -> proxy_t
6992  { return zwp_tablet_v2_t(p); };
6993 }
6994 
6995 zwp_tablet_v2_t::zwp_tablet_v2_t(zwp_tablet_v2 *p, wrapper_type t)
6996  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
6998  {
6999  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7000  set_destroy_opcode(0u);
7001  }
7002  interface = &zwp_tablet_v2_interface;
7003  copy_constructor = [] (const proxy_t &p) -> proxy_t
7004  { return zwp_tablet_v2_t(p); };
7005 }
7006 
7007 zwp_tablet_v2_t::zwp_tablet_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7008  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7009  interface = &zwp_tablet_v2_interface;
7010  copy_constructor = [] (const proxy_t &p) -> proxy_t
7011  { return zwp_tablet_v2_t(p); };
7012 }
7013 
7014 zwp_tablet_v2_t zwp_tablet_v2_t::proxy_create_wrapper()
7015 {
7016  return {*this, construct_proxy_wrapper_tag()};
7017 }
7018 
7019 const std::string zwp_tablet_v2_t::interface_name = "zwp_tablet_v2";
7020 
7021 zwp_tablet_v2_t::operator zwp_tablet_v2*() const
7022 {
7023  return reinterpret_cast<zwp_tablet_v2*> (c_ptr());
7024 }
7025 
7026 std::function<void(std::string)> &zwp_tablet_v2_t::on_name()
7027 {
7028  return std::static_pointer_cast<events_t>(get_events())->name;
7029 }
7030 
7031 std::function<void(uint32_t, uint32_t)> &zwp_tablet_v2_t::on_id()
7032 {
7033  return std::static_pointer_cast<events_t>(get_events())->id;
7034 }
7035 
7036 std::function<void(std::string)> &zwp_tablet_v2_t::on_path()
7037 {
7038  return std::static_pointer_cast<events_t>(get_events())->path;
7039 }
7040 
7041 std::function<void()> &zwp_tablet_v2_t::on_done()
7042 {
7043  return std::static_pointer_cast<events_t>(get_events())->done;
7044 }
7045 
7046 std::function<void()> &zwp_tablet_v2_t::on_removed()
7047 {
7048  return std::static_pointer_cast<events_t>(get_events())->removed;
7049 }
7050 
7051 int zwp_tablet_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7052 {
7053  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7054  switch(opcode)
7055  {
7056  case 0:
7057  if(events->name) events->name(args[0].get<std::string>());
7058  break;
7059  case 1:
7060  if(events->id) events->id(args[0].get<uint32_t>(), args[1].get<uint32_t>());
7061  break;
7062  case 2:
7063  if(events->path) events->path(args[0].get<std::string>());
7064  break;
7065  case 3:
7066  if(events->done) events->done();
7067  break;
7068  case 4:
7069  if(events->removed) events->removed();
7070  break;
7071  }
7072  return 0;
7073 }
7074 
7075 zwp_tablet_pad_ring_v2_t::zwp_tablet_pad_ring_v2_t(const proxy_t &p)
7076  : proxy_t(p)
7077 {
7079  {
7080  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7081  set_destroy_opcode(1u);
7082  }
7083  interface = &zwp_tablet_pad_ring_v2_interface;
7084  copy_constructor = [] (const proxy_t &p) -> proxy_t
7085  { return zwp_tablet_pad_ring_v2_t(p); };
7086 }
7087 
7088 zwp_tablet_pad_ring_v2_t::zwp_tablet_pad_ring_v2_t()
7089 {
7090  interface = &zwp_tablet_pad_ring_v2_interface;
7091  copy_constructor = [] (const proxy_t &p) -> proxy_t
7092  { return zwp_tablet_pad_ring_v2_t(p); };
7093 }
7094 
7095 zwp_tablet_pad_ring_v2_t::zwp_tablet_pad_ring_v2_t(zwp_tablet_pad_ring_v2 *p, wrapper_type t)
7096  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7098  {
7099  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7100  set_destroy_opcode(1u);
7101  }
7102  interface = &zwp_tablet_pad_ring_v2_interface;
7103  copy_constructor = [] (const proxy_t &p) -> proxy_t
7104  { return zwp_tablet_pad_ring_v2_t(p); };
7105 }
7106 
7107 zwp_tablet_pad_ring_v2_t::zwp_tablet_pad_ring_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7108  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7109  interface = &zwp_tablet_pad_ring_v2_interface;
7110  copy_constructor = [] (const proxy_t &p) -> proxy_t
7111  { return zwp_tablet_pad_ring_v2_t(p); };
7112 }
7113 
7114 zwp_tablet_pad_ring_v2_t zwp_tablet_pad_ring_v2_t::proxy_create_wrapper()
7115 {
7116  return {*this, construct_proxy_wrapper_tag()};
7117 }
7118 
7119 const std::string zwp_tablet_pad_ring_v2_t::interface_name = "zwp_tablet_pad_ring_v2";
7120 
7121 zwp_tablet_pad_ring_v2_t::operator zwp_tablet_pad_ring_v2*() const
7122 {
7123  return reinterpret_cast<zwp_tablet_pad_ring_v2*> (c_ptr());
7124 }
7125 
7126 void zwp_tablet_pad_ring_v2_t::set_feedback(std::string description, uint32_t serial)
7127 {
7128  marshal(0u, description, serial);
7129 }
7130 
7131 std::function<void(zwp_tablet_pad_ring_v2_source)> &zwp_tablet_pad_ring_v2_t::on_source()
7132 {
7133  return std::static_pointer_cast<events_t>(get_events())->source;
7134 }
7135 
7136 std::function<void(double)> &zwp_tablet_pad_ring_v2_t::on_angle()
7137 {
7138  return std::static_pointer_cast<events_t>(get_events())->angle;
7139 }
7140 
7141 std::function<void()> &zwp_tablet_pad_ring_v2_t::on_stop()
7142 {
7143  return std::static_pointer_cast<events_t>(get_events())->stop;
7144 }
7145 
7146 std::function<void(uint32_t)> &zwp_tablet_pad_ring_v2_t::on_frame()
7147 {
7148  return std::static_pointer_cast<events_t>(get_events())->frame;
7149 }
7150 
7151 int zwp_tablet_pad_ring_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7152 {
7153  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7154  switch(opcode)
7155  {
7156  case 0:
7157  if(events->source) events->source(zwp_tablet_pad_ring_v2_source(args[0].get<uint32_t>()));
7158  break;
7159  case 1:
7160  if(events->angle) events->angle(args[0].get<double>());
7161  break;
7162  case 2:
7163  if(events->stop) events->stop();
7164  break;
7165  case 3:
7166  if(events->frame) events->frame(args[0].get<uint32_t>());
7167  break;
7168  }
7169  return 0;
7170 }
7171 
7172 
7173 zwp_tablet_pad_strip_v2_t::zwp_tablet_pad_strip_v2_t(const proxy_t &p)
7174  : proxy_t(p)
7175 {
7177  {
7178  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7179  set_destroy_opcode(1u);
7180  }
7181  interface = &zwp_tablet_pad_strip_v2_interface;
7182  copy_constructor = [] (const proxy_t &p) -> proxy_t
7183  { return zwp_tablet_pad_strip_v2_t(p); };
7184 }
7185 
7186 zwp_tablet_pad_strip_v2_t::zwp_tablet_pad_strip_v2_t()
7187 {
7188  interface = &zwp_tablet_pad_strip_v2_interface;
7189  copy_constructor = [] (const proxy_t &p) -> proxy_t
7190  { return zwp_tablet_pad_strip_v2_t(p); };
7191 }
7192 
7193 zwp_tablet_pad_strip_v2_t::zwp_tablet_pad_strip_v2_t(zwp_tablet_pad_strip_v2 *p, wrapper_type t)
7194  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7196  {
7197  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7198  set_destroy_opcode(1u);
7199  }
7200  interface = &zwp_tablet_pad_strip_v2_interface;
7201  copy_constructor = [] (const proxy_t &p) -> proxy_t
7202  { return zwp_tablet_pad_strip_v2_t(p); };
7203 }
7204 
7205 zwp_tablet_pad_strip_v2_t::zwp_tablet_pad_strip_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7206  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7207  interface = &zwp_tablet_pad_strip_v2_interface;
7208  copy_constructor = [] (const proxy_t &p) -> proxy_t
7209  { return zwp_tablet_pad_strip_v2_t(p); };
7210 }
7211 
7212 zwp_tablet_pad_strip_v2_t zwp_tablet_pad_strip_v2_t::proxy_create_wrapper()
7213 {
7214  return {*this, construct_proxy_wrapper_tag()};
7215 }
7216 
7217 const std::string zwp_tablet_pad_strip_v2_t::interface_name = "zwp_tablet_pad_strip_v2";
7218 
7219 zwp_tablet_pad_strip_v2_t::operator zwp_tablet_pad_strip_v2*() const
7220 {
7221  return reinterpret_cast<zwp_tablet_pad_strip_v2*> (c_ptr());
7222 }
7223 
7224 void zwp_tablet_pad_strip_v2_t::set_feedback(std::string description, uint32_t serial)
7225 {
7226  marshal(0u, description, serial);
7227 }
7228 
7229 std::function<void(zwp_tablet_pad_strip_v2_source)> &zwp_tablet_pad_strip_v2_t::on_source()
7230 {
7231  return std::static_pointer_cast<events_t>(get_events())->source;
7232 }
7233 
7234 std::function<void(uint32_t)> &zwp_tablet_pad_strip_v2_t::on_position()
7235 {
7236  return std::static_pointer_cast<events_t>(get_events())->position;
7237 }
7238 
7239 std::function<void()> &zwp_tablet_pad_strip_v2_t::on_stop()
7240 {
7241  return std::static_pointer_cast<events_t>(get_events())->stop;
7242 }
7243 
7244 std::function<void(uint32_t)> &zwp_tablet_pad_strip_v2_t::on_frame()
7245 {
7246  return std::static_pointer_cast<events_t>(get_events())->frame;
7247 }
7248 
7249 int zwp_tablet_pad_strip_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7250 {
7251  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7252  switch(opcode)
7253  {
7254  case 0:
7255  if(events->source) events->source(zwp_tablet_pad_strip_v2_source(args[0].get<uint32_t>()));
7256  break;
7257  case 1:
7258  if(events->position) events->position(args[0].get<uint32_t>());
7259  break;
7260  case 2:
7261  if(events->stop) events->stop();
7262  break;
7263  case 3:
7264  if(events->frame) events->frame(args[0].get<uint32_t>());
7265  break;
7266  }
7267  return 0;
7268 }
7269 
7270 
7271 zwp_tablet_pad_group_v2_t::zwp_tablet_pad_group_v2_t(const proxy_t &p)
7272  : proxy_t(p)
7273 {
7275  {
7276  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7277  set_destroy_opcode(0u);
7278  }
7279  interface = &zwp_tablet_pad_group_v2_interface;
7280  copy_constructor = [] (const proxy_t &p) -> proxy_t
7281  { return zwp_tablet_pad_group_v2_t(p); };
7282 }
7283 
7284 zwp_tablet_pad_group_v2_t::zwp_tablet_pad_group_v2_t()
7285 {
7286  interface = &zwp_tablet_pad_group_v2_interface;
7287  copy_constructor = [] (const proxy_t &p) -> proxy_t
7288  { return zwp_tablet_pad_group_v2_t(p); };
7289 }
7290 
7291 zwp_tablet_pad_group_v2_t::zwp_tablet_pad_group_v2_t(zwp_tablet_pad_group_v2 *p, wrapper_type t)
7292  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7294  {
7295  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7296  set_destroy_opcode(0u);
7297  }
7298  interface = &zwp_tablet_pad_group_v2_interface;
7299  copy_constructor = [] (const proxy_t &p) -> proxy_t
7300  { return zwp_tablet_pad_group_v2_t(p); };
7301 }
7302 
7303 zwp_tablet_pad_group_v2_t::zwp_tablet_pad_group_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7304  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7305  interface = &zwp_tablet_pad_group_v2_interface;
7306  copy_constructor = [] (const proxy_t &p) -> proxy_t
7307  { return zwp_tablet_pad_group_v2_t(p); };
7308 }
7309 
7310 zwp_tablet_pad_group_v2_t zwp_tablet_pad_group_v2_t::proxy_create_wrapper()
7311 {
7312  return {*this, construct_proxy_wrapper_tag()};
7313 }
7314 
7315 const std::string zwp_tablet_pad_group_v2_t::interface_name = "zwp_tablet_pad_group_v2";
7316 
7317 zwp_tablet_pad_group_v2_t::operator zwp_tablet_pad_group_v2*() const
7318 {
7319  return reinterpret_cast<zwp_tablet_pad_group_v2*> (c_ptr());
7320 }
7321 
7322 std::function<void(array_t)> &zwp_tablet_pad_group_v2_t::on_buttons()
7323 {
7324  return std::static_pointer_cast<events_t>(get_events())->buttons;
7325 }
7326 
7328 {
7329  return std::static_pointer_cast<events_t>(get_events())->ring;
7330 }
7331 
7333 {
7334  return std::static_pointer_cast<events_t>(get_events())->strip;
7335 }
7336 
7337 std::function<void(uint32_t)> &zwp_tablet_pad_group_v2_t::on_modes()
7338 {
7339  return std::static_pointer_cast<events_t>(get_events())->modes;
7340 }
7341 
7342 std::function<void()> &zwp_tablet_pad_group_v2_t::on_done()
7343 {
7344  return std::static_pointer_cast<events_t>(get_events())->done;
7345 }
7346 
7347 std::function<void(uint32_t, uint32_t, uint32_t)> &zwp_tablet_pad_group_v2_t::on_mode_switch()
7348 {
7349  return std::static_pointer_cast<events_t>(get_events())->mode_switch;
7350 }
7351 
7352 int zwp_tablet_pad_group_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7353 {
7354  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7355  switch(opcode)
7356  {
7357  case 0:
7358  if(events->buttons) events->buttons(args[0].get<array_t>());
7359  break;
7360  case 1:
7361  if(events->ring) events->ring(zwp_tablet_pad_ring_v2_t(args[0].get<proxy_t>()));
7362  break;
7363  case 2:
7364  if(events->strip) events->strip(zwp_tablet_pad_strip_v2_t(args[0].get<proxy_t>()));
7365  break;
7366  case 3:
7367  if(events->modes) events->modes(args[0].get<uint32_t>());
7368  break;
7369  case 4:
7370  if(events->done) events->done();
7371  break;
7372  case 5:
7373  if(events->mode_switch) events->mode_switch(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<uint32_t>());
7374  break;
7375  }
7376  return 0;
7377 }
7378 
7379 zwp_tablet_pad_v2_t::zwp_tablet_pad_v2_t(const proxy_t &p)
7380  : proxy_t(p)
7381 {
7383  {
7384  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7385  set_destroy_opcode(1u);
7386  }
7387  interface = &zwp_tablet_pad_v2_interface;
7388  copy_constructor = [] (const proxy_t &p) -> proxy_t
7389  { return zwp_tablet_pad_v2_t(p); };
7390 }
7391 
7392 zwp_tablet_pad_v2_t::zwp_tablet_pad_v2_t()
7393 {
7394  interface = &zwp_tablet_pad_v2_interface;
7395  copy_constructor = [] (const proxy_t &p) -> proxy_t
7396  { return zwp_tablet_pad_v2_t(p); };
7397 }
7398 
7399 zwp_tablet_pad_v2_t::zwp_tablet_pad_v2_t(zwp_tablet_pad_v2 *p, wrapper_type t)
7400  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7402  {
7403  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7404  set_destroy_opcode(1u);
7405  }
7406  interface = &zwp_tablet_pad_v2_interface;
7407  copy_constructor = [] (const proxy_t &p) -> proxy_t
7408  { return zwp_tablet_pad_v2_t(p); };
7409 }
7410 
7411 zwp_tablet_pad_v2_t::zwp_tablet_pad_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7412  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7413  interface = &zwp_tablet_pad_v2_interface;
7414  copy_constructor = [] (const proxy_t &p) -> proxy_t
7415  { return zwp_tablet_pad_v2_t(p); };
7416 }
7417 
7418 zwp_tablet_pad_v2_t zwp_tablet_pad_v2_t::proxy_create_wrapper()
7419 {
7420  return {*this, construct_proxy_wrapper_tag()};
7421 }
7422 
7423 const std::string zwp_tablet_pad_v2_t::interface_name = "zwp_tablet_pad_v2";
7424 
7425 zwp_tablet_pad_v2_t::operator zwp_tablet_pad_v2*() const
7426 {
7427  return reinterpret_cast<zwp_tablet_pad_v2*> (c_ptr());
7428 }
7429 
7430 void zwp_tablet_pad_v2_t::set_feedback(uint32_t button, std::string description, uint32_t serial)
7431 {
7432  marshal(0u, button, description, serial);
7433 }
7434 
7436 {
7437  return std::static_pointer_cast<events_t>(get_events())->group;
7438 }
7439 
7440 std::function<void(std::string)> &zwp_tablet_pad_v2_t::on_path()
7441 {
7442  return std::static_pointer_cast<events_t>(get_events())->path;
7443 }
7444 
7445 std::function<void(uint32_t)> &zwp_tablet_pad_v2_t::on_buttons()
7446 {
7447  return std::static_pointer_cast<events_t>(get_events())->buttons;
7448 }
7449 
7450 std::function<void()> &zwp_tablet_pad_v2_t::on_done()
7451 {
7452  return std::static_pointer_cast<events_t>(get_events())->done;
7453 }
7454 
7455 std::function<void(uint32_t, uint32_t, zwp_tablet_pad_v2_button_state)> &zwp_tablet_pad_v2_t::on_button()
7456 {
7457  return std::static_pointer_cast<events_t>(get_events())->button;
7458 }
7459 
7460 std::function<void(uint32_t, zwp_tablet_v2_t, surface_t)> &zwp_tablet_pad_v2_t::on_enter()
7461 {
7462  return std::static_pointer_cast<events_t>(get_events())->enter;
7463 }
7464 
7465 std::function<void(uint32_t, surface_t)> &zwp_tablet_pad_v2_t::on_leave()
7466 {
7467  return std::static_pointer_cast<events_t>(get_events())->leave;
7468 }
7469 
7470 std::function<void()> &zwp_tablet_pad_v2_t::on_removed()
7471 {
7472  return std::static_pointer_cast<events_t>(get_events())->removed;
7473 }
7474 
7475 int zwp_tablet_pad_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7476 {
7477  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7478  switch(opcode)
7479  {
7480  case 0:
7481  if(events->group) events->group(zwp_tablet_pad_group_v2_t(args[0].get<proxy_t>()));
7482  break;
7483  case 1:
7484  if(events->path) events->path(args[0].get<std::string>());
7485  break;
7486  case 2:
7487  if(events->buttons) events->buttons(args[0].get<uint32_t>());
7488  break;
7489  case 3:
7490  if(events->done) events->done();
7491  break;
7492  case 4:
7493  if(events->button) events->button(args[0].get<uint32_t>(), args[1].get<uint32_t>(), zwp_tablet_pad_v2_button_state(args[2].get<uint32_t>()));
7494  break;
7495  case 5:
7496  if(events->enter) events->enter(args[0].get<uint32_t>(), zwp_tablet_v2_t(args[1].get<proxy_t>()), surface_t(args[2].get<proxy_t>()));
7497  break;
7498  case 6:
7499  if(events->leave) events->leave(args[0].get<uint32_t>(), surface_t(args[1].get<proxy_t>()));
7500  break;
7501  case 7:
7502  if(events->removed) events->removed();
7503  break;
7504  }
7505  return 0;
7506 }
7507 
7508 
7509 zwp_text_input_v1_t::zwp_text_input_v1_t(const proxy_t &p)
7510  : proxy_t(p)
7511 {
7513  {
7514  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7515  }
7516  interface = &zwp_text_input_v1_interface;
7517  copy_constructor = [] (const proxy_t &p) -> proxy_t
7518  { return zwp_text_input_v1_t(p); };
7519 }
7520 
7521 zwp_text_input_v1_t::zwp_text_input_v1_t()
7522 {
7523  interface = &zwp_text_input_v1_interface;
7524  copy_constructor = [] (const proxy_t &p) -> proxy_t
7525  { return zwp_text_input_v1_t(p); };
7526 }
7527 
7528 zwp_text_input_v1_t::zwp_text_input_v1_t(zwp_text_input_v1 *p, wrapper_type t)
7529  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7531  {
7532  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7533  }
7534  interface = &zwp_text_input_v1_interface;
7535  copy_constructor = [] (const proxy_t &p) -> proxy_t
7536  { return zwp_text_input_v1_t(p); };
7537 }
7538 
7539 zwp_text_input_v1_t::zwp_text_input_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7540  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7541  interface = &zwp_text_input_v1_interface;
7542  copy_constructor = [] (const proxy_t &p) -> proxy_t
7543  { return zwp_text_input_v1_t(p); };
7544 }
7545 
7546 zwp_text_input_v1_t zwp_text_input_v1_t::proxy_create_wrapper()
7547 {
7548  return {*this, construct_proxy_wrapper_tag()};
7549 }
7550 
7551 const std::string zwp_text_input_v1_t::interface_name = "zwp_text_input_v1";
7552 
7553 zwp_text_input_v1_t::operator zwp_text_input_v1*() const
7554 {
7555  return reinterpret_cast<zwp_text_input_v1*> (c_ptr());
7556 }
7557 
7559 {
7560  marshal(0u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
7561 }
7562 
7564 {
7565  marshal(1u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
7566 }
7567 
7569 {
7570  marshal(2u);
7571 }
7572 
7574 {
7575  marshal(3u);
7576 }
7577 
7579 {
7580  marshal(4u);
7581 }
7582 
7583 void zwp_text_input_v1_t::set_surrounding_text(std::string text, uint32_t cursor, uint32_t anchor)
7584 {
7585  marshal(5u, text, cursor, anchor);
7586 }
7587 
7588 void zwp_text_input_v1_t::set_content_type(zwp_text_input_v1_content_hint hint, zwp_text_input_v1_content_purpose purpose)
7589 {
7590  marshal(6u, static_cast<uint32_t>(hint), static_cast<uint32_t>(purpose));
7591 }
7592 
7593 void zwp_text_input_v1_t::set_cursor_rectangle(int32_t x, int32_t y, int32_t width, int32_t height)
7594 {
7595  marshal(7u, x, y, width, height);
7596 }
7597 
7599 {
7600  marshal(8u, language);
7601 }
7602 
7604 {
7605  marshal(9u, serial);
7606 }
7607 
7608 void zwp_text_input_v1_t::invoke_action(uint32_t button, uint32_t index)
7609 {
7610  marshal(10u, button, index);
7611 }
7612 
7614 {
7615  return std::static_pointer_cast<events_t>(get_events())->enter;
7616 }
7617 
7618 std::function<void()> &zwp_text_input_v1_t::on_leave()
7619 {
7620  return std::static_pointer_cast<events_t>(get_events())->leave;
7621 }
7622 
7623 std::function<void(array_t)> &zwp_text_input_v1_t::on_modifiers_map()
7624 {
7625  return std::static_pointer_cast<events_t>(get_events())->modifiers_map;
7626 }
7627 
7628 std::function<void(uint32_t)> &zwp_text_input_v1_t::on_input_panel_state()
7629 {
7630  return std::static_pointer_cast<events_t>(get_events())->input_panel_state;
7631 }
7632 
7633 std::function<void(uint32_t, std::string, std::string)> &zwp_text_input_v1_t::on_preedit_string()
7634 {
7635  return std::static_pointer_cast<events_t>(get_events())->preedit_string;
7636 }
7637 
7638 std::function<void(uint32_t, uint32_t, zwp_text_input_v1_preedit_style)> &zwp_text_input_v1_t::on_preedit_styling()
7639 {
7640  return std::static_pointer_cast<events_t>(get_events())->preedit_styling;
7641 }
7642 
7643 std::function<void(int32_t)> &zwp_text_input_v1_t::on_preedit_cursor()
7644 {
7645  return std::static_pointer_cast<events_t>(get_events())->preedit_cursor;
7646 }
7647 
7648 std::function<void(uint32_t, std::string)> &zwp_text_input_v1_t::on_commit_string()
7649 {
7650  return std::static_pointer_cast<events_t>(get_events())->commit_string;
7651 }
7652 
7653 std::function<void(int32_t, int32_t)> &zwp_text_input_v1_t::on_cursor_position()
7654 {
7655  return std::static_pointer_cast<events_t>(get_events())->cursor_position;
7656 }
7657 
7658 std::function<void(int32_t, uint32_t)> &zwp_text_input_v1_t::on_delete_surrounding_text()
7659 {
7660  return std::static_pointer_cast<events_t>(get_events())->delete_surrounding_text;
7661 }
7662 
7663 std::function<void(uint32_t, uint32_t, uint32_t, keyboard_key_state, uint32_t)> &zwp_text_input_v1_t::on_keysym()
7664 {
7665  return std::static_pointer_cast<events_t>(get_events())->keysym;
7666 }
7667 
7668 std::function<void(uint32_t, std::string)> &zwp_text_input_v1_t::on_language()
7669 {
7670  return std::static_pointer_cast<events_t>(get_events())->language;
7671 }
7672 
7673 std::function<void(uint32_t, zwp_text_input_v1_text_direction)> &zwp_text_input_v1_t::on_text_direction()
7674 {
7675  return std::static_pointer_cast<events_t>(get_events())->text_direction;
7676 }
7677 
7678 int zwp_text_input_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7679 {
7680  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7681  switch(opcode)
7682  {
7683  case 0:
7684  if(events->enter) events->enter(surface_t(args[0].get<proxy_t>()));
7685  break;
7686  case 1:
7687  if(events->leave) events->leave();
7688  break;
7689  case 2:
7690  if(events->modifiers_map) events->modifiers_map(args[0].get<array_t>());
7691  break;
7692  case 3:
7693  if(events->input_panel_state) events->input_panel_state(args[0].get<uint32_t>());
7694  break;
7695  case 4:
7696  if(events->preedit_string) events->preedit_string(args[0].get<uint32_t>(), args[1].get<std::string>(), args[2].get<std::string>());
7697  break;
7698  case 5:
7699  if(events->preedit_styling) events->preedit_styling(args[0].get<uint32_t>(), args[1].get<uint32_t>(), zwp_text_input_v1_preedit_style(args[2].get<uint32_t>()));
7700  break;
7701  case 6:
7702  if(events->preedit_cursor) events->preedit_cursor(args[0].get<int32_t>());
7703  break;
7704  case 7:
7705  if(events->commit_string) events->commit_string(args[0].get<uint32_t>(), args[1].get<std::string>());
7706  break;
7707  case 8:
7708  if(events->cursor_position) events->cursor_position(args[0].get<int32_t>(), args[1].get<int32_t>());
7709  break;
7710  case 9:
7711  if(events->delete_surrounding_text) events->delete_surrounding_text(args[0].get<int32_t>(), args[1].get<uint32_t>());
7712  break;
7713  case 10:
7714  if(events->keysym) events->keysym(args[0].get<uint32_t>(), args[1].get<uint32_t>(), args[2].get<uint32_t>(), keyboard_key_state(args[3].get<uint32_t>()), args[4].get<uint32_t>());
7715  break;
7716  case 11:
7717  if(events->language) events->language(args[0].get<uint32_t>(), args[1].get<std::string>());
7718  break;
7719  case 12:
7720  if(events->text_direction) events->text_direction(args[0].get<uint32_t>(), zwp_text_input_v1_text_direction(args[1].get<uint32_t>()));
7721  break;
7722  }
7723  return 0;
7724 }
7725 
7726 
7727 
7728 
7729 
7730 zwp_text_input_manager_v1_t::zwp_text_input_manager_v1_t(const proxy_t &p)
7731  : proxy_t(p)
7732 {
7734  {
7735  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7736  }
7737  interface = &zwp_text_input_manager_v1_interface;
7738  copy_constructor = [] (const proxy_t &p) -> proxy_t
7739  { return zwp_text_input_manager_v1_t(p); };
7740 }
7741 
7742 zwp_text_input_manager_v1_t::zwp_text_input_manager_v1_t()
7743 {
7744  interface = &zwp_text_input_manager_v1_interface;
7745  copy_constructor = [] (const proxy_t &p) -> proxy_t
7746  { return zwp_text_input_manager_v1_t(p); };
7747 }
7748 
7749 zwp_text_input_manager_v1_t::zwp_text_input_manager_v1_t(zwp_text_input_manager_v1 *p, wrapper_type t)
7750  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7752  {
7753  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7754  }
7755  interface = &zwp_text_input_manager_v1_interface;
7756  copy_constructor = [] (const proxy_t &p) -> proxy_t
7757  { return zwp_text_input_manager_v1_t(p); };
7758 }
7759 
7760 zwp_text_input_manager_v1_t::zwp_text_input_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7761  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7762  interface = &zwp_text_input_manager_v1_interface;
7763  copy_constructor = [] (const proxy_t &p) -> proxy_t
7764  { return zwp_text_input_manager_v1_t(p); };
7765 }
7766 
7767 zwp_text_input_manager_v1_t zwp_text_input_manager_v1_t::proxy_create_wrapper()
7768 {
7769  return {*this, construct_proxy_wrapper_tag()};
7770 }
7771 
7772 const std::string zwp_text_input_manager_v1_t::interface_name = "zwp_text_input_manager_v1";
7773 
7774 zwp_text_input_manager_v1_t::operator zwp_text_input_manager_v1*() const
7775 {
7776  return reinterpret_cast<zwp_text_input_manager_v1*> (c_ptr());
7777 }
7778 
7780 {
7781  proxy_t p = marshal_constructor(0u, &zwp_text_input_v1_interface, nullptr);
7782  return zwp_text_input_v1_t(p);
7783 }
7784 
7785 int zwp_text_input_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7786 {
7787  return 0;
7788 }
7789 
7790 zwp_text_input_v3_t::zwp_text_input_v3_t(const proxy_t &p)
7791  : proxy_t(p)
7792 {
7794  {
7795  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7796  set_destroy_opcode(0u);
7797  }
7798  interface = &zwp_text_input_v3_interface;
7799  copy_constructor = [] (const proxy_t &p) -> proxy_t
7800  { return zwp_text_input_v3_t(p); };
7801 }
7802 
7803 zwp_text_input_v3_t::zwp_text_input_v3_t()
7804 {
7805  interface = &zwp_text_input_v3_interface;
7806  copy_constructor = [] (const proxy_t &p) -> proxy_t
7807  { return zwp_text_input_v3_t(p); };
7808 }
7809 
7810 zwp_text_input_v3_t::zwp_text_input_v3_t(zwp_text_input_v3 *p, wrapper_type t)
7811  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7813  {
7814  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7815  set_destroy_opcode(0u);
7816  }
7817  interface = &zwp_text_input_v3_interface;
7818  copy_constructor = [] (const proxy_t &p) -> proxy_t
7819  { return zwp_text_input_v3_t(p); };
7820 }
7821 
7822 zwp_text_input_v3_t::zwp_text_input_v3_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7823  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7824  interface = &zwp_text_input_v3_interface;
7825  copy_constructor = [] (const proxy_t &p) -> proxy_t
7826  { return zwp_text_input_v3_t(p); };
7827 }
7828 
7829 zwp_text_input_v3_t zwp_text_input_v3_t::proxy_create_wrapper()
7830 {
7831  return {*this, construct_proxy_wrapper_tag()};
7832 }
7833 
7834 const std::string zwp_text_input_v3_t::interface_name = "zwp_text_input_v3";
7835 
7836 zwp_text_input_v3_t::operator zwp_text_input_v3*() const
7837 {
7838  return reinterpret_cast<zwp_text_input_v3*> (c_ptr());
7839 }
7840 
7842 {
7843  marshal(1u);
7844 }
7845 
7847 {
7848  marshal(2u);
7849 }
7850 
7851 void zwp_text_input_v3_t::set_surrounding_text(std::string text, int32_t cursor, int32_t anchor)
7852 {
7853  marshal(3u, text, cursor, anchor);
7854 }
7855 
7856 void zwp_text_input_v3_t::set_text_change_cause(zwp_text_input_v3_change_cause cause)
7857 {
7858  marshal(4u, static_cast<uint32_t>(cause));
7859 }
7860 
7861 void zwp_text_input_v3_t::set_content_type(zwp_text_input_v3_content_hint hint, zwp_text_input_v3_content_purpose purpose)
7862 {
7863  marshal(5u, static_cast<uint32_t>(hint), static_cast<uint32_t>(purpose));
7864 }
7865 
7866 void zwp_text_input_v3_t::set_cursor_rectangle(int32_t x, int32_t y, int32_t width, int32_t height)
7867 {
7868  marshal(6u, x, y, width, height);
7869 }
7870 
7872 {
7873  marshal(7u);
7874 }
7875 
7877 {
7878  return std::static_pointer_cast<events_t>(get_events())->enter;
7879 }
7880 
7882 {
7883  return std::static_pointer_cast<events_t>(get_events())->leave;
7884 }
7885 
7886 std::function<void(std::string, int32_t, int32_t)> &zwp_text_input_v3_t::on_preedit_string()
7887 {
7888  return std::static_pointer_cast<events_t>(get_events())->preedit_string;
7889 }
7890 
7891 std::function<void(std::string)> &zwp_text_input_v3_t::on_commit_string()
7892 {
7893  return std::static_pointer_cast<events_t>(get_events())->commit_string;
7894 }
7895 
7896 std::function<void(uint32_t, uint32_t)> &zwp_text_input_v3_t::on_delete_surrounding_text()
7897 {
7898  return std::static_pointer_cast<events_t>(get_events())->delete_surrounding_text;
7899 }
7900 
7901 std::function<void(uint32_t)> &zwp_text_input_v3_t::on_done()
7902 {
7903  return std::static_pointer_cast<events_t>(get_events())->done;
7904 }
7905 
7906 int zwp_text_input_v3_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
7907 {
7908  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
7909  switch(opcode)
7910  {
7911  case 0:
7912  if(events->enter) events->enter(surface_t(args[0].get<proxy_t>()));
7913  break;
7914  case 1:
7915  if(events->leave) events->leave(surface_t(args[0].get<proxy_t>()));
7916  break;
7917  case 2:
7918  if(events->preedit_string) events->preedit_string(args[0].get<std::string>(), args[1].get<int32_t>(), args[2].get<int32_t>());
7919  break;
7920  case 3:
7921  if(events->commit_string) events->commit_string(args[0].get<std::string>());
7922  break;
7923  case 4:
7924  if(events->delete_surrounding_text) events->delete_surrounding_text(args[0].get<uint32_t>(), args[1].get<uint32_t>());
7925  break;
7926  case 5:
7927  if(events->done) events->done(args[0].get<uint32_t>());
7928  break;
7929  }
7930  return 0;
7931 }
7932 
7933 const bitfield<10, 27> zwp_text_input_v3_content_hint::none{0x0};
7934 const bitfield<10, 27> zwp_text_input_v3_content_hint::completion{0x1};
7935 const bitfield<10, 27> zwp_text_input_v3_content_hint::spellcheck{0x2};
7936 const bitfield<10, 27> zwp_text_input_v3_content_hint::auto_capitalization{0x4};
7937 const bitfield<10, 27> zwp_text_input_v3_content_hint::lowercase{0x8};
7938 const bitfield<10, 27> zwp_text_input_v3_content_hint::uppercase{0x10};
7939 const bitfield<10, 27> zwp_text_input_v3_content_hint::titlecase{0x20};
7940 const bitfield<10, 27> zwp_text_input_v3_content_hint::hidden_text{0x40};
7941 const bitfield<10, 27> zwp_text_input_v3_content_hint::sensitive_data{0x80};
7942 const bitfield<10, 27> zwp_text_input_v3_content_hint::latin{0x100};
7943 const bitfield<10, 27> zwp_text_input_v3_content_hint::multiline{0x200};
7944 
7945 
7946 
7947 zwp_text_input_manager_v3_t::zwp_text_input_manager_v3_t(const proxy_t &p)
7948  : proxy_t(p)
7949 {
7951  {
7952  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7953  set_destroy_opcode(0u);
7954  }
7955  interface = &zwp_text_input_manager_v3_interface;
7956  copy_constructor = [] (const proxy_t &p) -> proxy_t
7957  { return zwp_text_input_manager_v3_t(p); };
7958 }
7959 
7960 zwp_text_input_manager_v3_t::zwp_text_input_manager_v3_t()
7961 {
7962  interface = &zwp_text_input_manager_v3_interface;
7963  copy_constructor = [] (const proxy_t &p) -> proxy_t
7964  { return zwp_text_input_manager_v3_t(p); };
7965 }
7966 
7967 zwp_text_input_manager_v3_t::zwp_text_input_manager_v3_t(zwp_text_input_manager_v3 *p, wrapper_type t)
7968  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
7970  {
7971  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
7972  set_destroy_opcode(0u);
7973  }
7974  interface = &zwp_text_input_manager_v3_interface;
7975  copy_constructor = [] (const proxy_t &p) -> proxy_t
7976  { return zwp_text_input_manager_v3_t(p); };
7977 }
7978 
7979 zwp_text_input_manager_v3_t::zwp_text_input_manager_v3_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
7980  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
7981  interface = &zwp_text_input_manager_v3_interface;
7982  copy_constructor = [] (const proxy_t &p) -> proxy_t
7983  { return zwp_text_input_manager_v3_t(p); };
7984 }
7985 
7986 zwp_text_input_manager_v3_t zwp_text_input_manager_v3_t::proxy_create_wrapper()
7987 {
7988  return {*this, construct_proxy_wrapper_tag()};
7989 }
7990 
7991 const std::string zwp_text_input_manager_v3_t::interface_name = "zwp_text_input_manager_v3";
7992 
7993 zwp_text_input_manager_v3_t::operator zwp_text_input_manager_v3*() const
7994 {
7995  return reinterpret_cast<zwp_text_input_manager_v3*> (c_ptr());
7996 }
7997 
7999 {
8000  proxy_t p = marshal_constructor(1u, &zwp_text_input_v3_interface, nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
8001  return zwp_text_input_v3_t(p);
8002 }
8003 
8004 int zwp_text_input_manager_v3_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8005 {
8006  return 0;
8007 }
8008 
8009 zxdg_decoration_manager_v1_t::zxdg_decoration_manager_v1_t(const proxy_t &p)
8010  : proxy_t(p)
8011 {
8013  {
8014  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8015  set_destroy_opcode(0u);
8016  }
8017  interface = &zxdg_decoration_manager_v1_interface;
8018  copy_constructor = [] (const proxy_t &p) -> proxy_t
8019  { return zxdg_decoration_manager_v1_t(p); };
8020 }
8021 
8022 zxdg_decoration_manager_v1_t::zxdg_decoration_manager_v1_t()
8023 {
8024  interface = &zxdg_decoration_manager_v1_interface;
8025  copy_constructor = [] (const proxy_t &p) -> proxy_t
8026  { return zxdg_decoration_manager_v1_t(p); };
8027 }
8028 
8029 zxdg_decoration_manager_v1_t::zxdg_decoration_manager_v1_t(zxdg_decoration_manager_v1 *p, wrapper_type t)
8030  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8032  {
8033  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8034  set_destroy_opcode(0u);
8035  }
8036  interface = &zxdg_decoration_manager_v1_interface;
8037  copy_constructor = [] (const proxy_t &p) -> proxy_t
8038  { return zxdg_decoration_manager_v1_t(p); };
8039 }
8040 
8041 zxdg_decoration_manager_v1_t::zxdg_decoration_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8042  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8043  interface = &zxdg_decoration_manager_v1_interface;
8044  copy_constructor = [] (const proxy_t &p) -> proxy_t
8045  { return zxdg_decoration_manager_v1_t(p); };
8046 }
8047 
8048 zxdg_decoration_manager_v1_t zxdg_decoration_manager_v1_t::proxy_create_wrapper()
8049 {
8050  return {*this, construct_proxy_wrapper_tag()};
8051 }
8052 
8053 const std::string zxdg_decoration_manager_v1_t::interface_name = "zxdg_decoration_manager_v1";
8054 
8055 zxdg_decoration_manager_v1_t::operator zxdg_decoration_manager_v1*() const
8056 {
8057  return reinterpret_cast<zxdg_decoration_manager_v1*> (c_ptr());
8058 }
8059 
8061 {
8062  proxy_t p = marshal_constructor(1u, &zxdg_toplevel_decoration_v1_interface, nullptr, toplevel.proxy_has_object() ? reinterpret_cast<wl_object*>(toplevel.c_ptr()) : nullptr);
8064 }
8065 
8066 int zxdg_decoration_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8067 {
8068  return 0;
8069 }
8070 
8071 zxdg_toplevel_decoration_v1_t::zxdg_toplevel_decoration_v1_t(const proxy_t &p)
8072  : proxy_t(p)
8073 {
8075  {
8076  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8077  set_destroy_opcode(0u);
8078  }
8079  interface = &zxdg_toplevel_decoration_v1_interface;
8080  copy_constructor = [] (const proxy_t &p) -> proxy_t
8081  { return zxdg_toplevel_decoration_v1_t(p); };
8082 }
8083 
8084 zxdg_toplevel_decoration_v1_t::zxdg_toplevel_decoration_v1_t()
8085 {
8086  interface = &zxdg_toplevel_decoration_v1_interface;
8087  copy_constructor = [] (const proxy_t &p) -> proxy_t
8088  { return zxdg_toplevel_decoration_v1_t(p); };
8089 }
8090 
8091 zxdg_toplevel_decoration_v1_t::zxdg_toplevel_decoration_v1_t(zxdg_toplevel_decoration_v1 *p, wrapper_type t)
8092  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8094  {
8095  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8096  set_destroy_opcode(0u);
8097  }
8098  interface = &zxdg_toplevel_decoration_v1_interface;
8099  copy_constructor = [] (const proxy_t &p) -> proxy_t
8100  { return zxdg_toplevel_decoration_v1_t(p); };
8101 }
8102 
8103 zxdg_toplevel_decoration_v1_t::zxdg_toplevel_decoration_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8104  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8105  interface = &zxdg_toplevel_decoration_v1_interface;
8106  copy_constructor = [] (const proxy_t &p) -> proxy_t
8107  { return zxdg_toplevel_decoration_v1_t(p); };
8108 }
8109 
8110 zxdg_toplevel_decoration_v1_t zxdg_toplevel_decoration_v1_t::proxy_create_wrapper()
8111 {
8112  return {*this, construct_proxy_wrapper_tag()};
8113 }
8114 
8115 const std::string zxdg_toplevel_decoration_v1_t::interface_name = "zxdg_toplevel_decoration_v1";
8116 
8117 zxdg_toplevel_decoration_v1_t::operator zxdg_toplevel_decoration_v1*() const
8118 {
8119  return reinterpret_cast<zxdg_toplevel_decoration_v1*> (c_ptr());
8120 }
8121 
8122 void zxdg_toplevel_decoration_v1_t::set_mode(zxdg_toplevel_decoration_v1_mode mode)
8123 {
8124  marshal(1u, static_cast<uint32_t>(mode));
8125 }
8126 
8128 {
8129  marshal(2u);
8130 }
8131 
8132 std::function<void(zxdg_toplevel_decoration_v1_mode)> &zxdg_toplevel_decoration_v1_t::on_configure()
8133 {
8134  return std::static_pointer_cast<events_t>(get_events())->configure;
8135 }
8136 
8137 int zxdg_toplevel_decoration_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8138 {
8139  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8140  switch(opcode)
8141  {
8142  case 0:
8143  if(events->configure) events->configure(zxdg_toplevel_decoration_v1_mode(args[0].get<uint32_t>()));
8144  break;
8145  }
8146  return 0;
8147 }
8148 
8149 
8150 
8151 zxdg_exporter_v1_t::zxdg_exporter_v1_t(const proxy_t &p)
8152  : proxy_t(p)
8153 {
8155  {
8156  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8157  set_destroy_opcode(0u);
8158  }
8159  interface = &zxdg_exporter_v1_interface;
8160  copy_constructor = [] (const proxy_t &p) -> proxy_t
8161  { return zxdg_exporter_v1_t(p); };
8162 }
8163 
8164 zxdg_exporter_v1_t::zxdg_exporter_v1_t()
8165 {
8166  interface = &zxdg_exporter_v1_interface;
8167  copy_constructor = [] (const proxy_t &p) -> proxy_t
8168  { return zxdg_exporter_v1_t(p); };
8169 }
8170 
8171 zxdg_exporter_v1_t::zxdg_exporter_v1_t(zxdg_exporter_v1 *p, wrapper_type t)
8172  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8174  {
8175  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8176  set_destroy_opcode(0u);
8177  }
8178  interface = &zxdg_exporter_v1_interface;
8179  copy_constructor = [] (const proxy_t &p) -> proxy_t
8180  { return zxdg_exporter_v1_t(p); };
8181 }
8182 
8183 zxdg_exporter_v1_t::zxdg_exporter_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8184  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8185  interface = &zxdg_exporter_v1_interface;
8186  copy_constructor = [] (const proxy_t &p) -> proxy_t
8187  { return zxdg_exporter_v1_t(p); };
8188 }
8189 
8190 zxdg_exporter_v1_t zxdg_exporter_v1_t::proxy_create_wrapper()
8191 {
8192  return {*this, construct_proxy_wrapper_tag()};
8193 }
8194 
8195 const std::string zxdg_exporter_v1_t::interface_name = "zxdg_exporter_v1";
8196 
8197 zxdg_exporter_v1_t::operator zxdg_exporter_v1*() const
8198 {
8199  return reinterpret_cast<zxdg_exporter_v1*> (c_ptr());
8200 }
8201 
8203 {
8204  proxy_t p = marshal_constructor(1u, &zxdg_exported_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
8205  return zxdg_exported_v1_t(p);
8206 }
8207 
8208 int zxdg_exporter_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8209 {
8210  return 0;
8211 }
8212 
8213 zxdg_importer_v1_t::zxdg_importer_v1_t(const proxy_t &p)
8214  : proxy_t(p)
8215 {
8217  {
8218  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8219  set_destroy_opcode(0u);
8220  }
8221  interface = &zxdg_importer_v1_interface;
8222  copy_constructor = [] (const proxy_t &p) -> proxy_t
8223  { return zxdg_importer_v1_t(p); };
8224 }
8225 
8226 zxdg_importer_v1_t::zxdg_importer_v1_t()
8227 {
8228  interface = &zxdg_importer_v1_interface;
8229  copy_constructor = [] (const proxy_t &p) -> proxy_t
8230  { return zxdg_importer_v1_t(p); };
8231 }
8232 
8233 zxdg_importer_v1_t::zxdg_importer_v1_t(zxdg_importer_v1 *p, wrapper_type t)
8234  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8236  {
8237  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8238  set_destroy_opcode(0u);
8239  }
8240  interface = &zxdg_importer_v1_interface;
8241  copy_constructor = [] (const proxy_t &p) -> proxy_t
8242  { return zxdg_importer_v1_t(p); };
8243 }
8244 
8245 zxdg_importer_v1_t::zxdg_importer_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8246  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8247  interface = &zxdg_importer_v1_interface;
8248  copy_constructor = [] (const proxy_t &p) -> proxy_t
8249  { return zxdg_importer_v1_t(p); };
8250 }
8251 
8252 zxdg_importer_v1_t zxdg_importer_v1_t::proxy_create_wrapper()
8253 {
8254  return {*this, construct_proxy_wrapper_tag()};
8255 }
8256 
8257 const std::string zxdg_importer_v1_t::interface_name = "zxdg_importer_v1";
8258 
8259 zxdg_importer_v1_t::operator zxdg_importer_v1*() const
8260 {
8261  return reinterpret_cast<zxdg_importer_v1*> (c_ptr());
8262 }
8263 
8265 {
8266  proxy_t p = marshal_constructor(1u, &zxdg_imported_v1_interface, nullptr, handle);
8267  return zxdg_imported_v1_t(p);
8268 }
8269 
8270 int zxdg_importer_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8271 {
8272  return 0;
8273 }
8274 
8275 zxdg_exported_v1_t::zxdg_exported_v1_t(const proxy_t &p)
8276  : proxy_t(p)
8277 {
8279  {
8280  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8281  set_destroy_opcode(0u);
8282  }
8283  interface = &zxdg_exported_v1_interface;
8284  copy_constructor = [] (const proxy_t &p) -> proxy_t
8285  { return zxdg_exported_v1_t(p); };
8286 }
8287 
8288 zxdg_exported_v1_t::zxdg_exported_v1_t()
8289 {
8290  interface = &zxdg_exported_v1_interface;
8291  copy_constructor = [] (const proxy_t &p) -> proxy_t
8292  { return zxdg_exported_v1_t(p); };
8293 }
8294 
8295 zxdg_exported_v1_t::zxdg_exported_v1_t(zxdg_exported_v1 *p, wrapper_type t)
8296  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8298  {
8299  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8300  set_destroy_opcode(0u);
8301  }
8302  interface = &zxdg_exported_v1_interface;
8303  copy_constructor = [] (const proxy_t &p) -> proxy_t
8304  { return zxdg_exported_v1_t(p); };
8305 }
8306 
8307 zxdg_exported_v1_t::zxdg_exported_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8308  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8309  interface = &zxdg_exported_v1_interface;
8310  copy_constructor = [] (const proxy_t &p) -> proxy_t
8311  { return zxdg_exported_v1_t(p); };
8312 }
8313 
8314 zxdg_exported_v1_t zxdg_exported_v1_t::proxy_create_wrapper()
8315 {
8316  return {*this, construct_proxy_wrapper_tag()};
8317 }
8318 
8319 const std::string zxdg_exported_v1_t::interface_name = "zxdg_exported_v1";
8320 
8321 zxdg_exported_v1_t::operator zxdg_exported_v1*() const
8322 {
8323  return reinterpret_cast<zxdg_exported_v1*> (c_ptr());
8324 }
8325 
8326 std::function<void(std::string)> &zxdg_exported_v1_t::on_handle()
8327 {
8328  return std::static_pointer_cast<events_t>(get_events())->handle;
8329 }
8330 
8331 int zxdg_exported_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8332 {
8333  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8334  switch(opcode)
8335  {
8336  case 0:
8337  if(events->handle) events->handle(args[0].get<std::string>());
8338  break;
8339  }
8340  return 0;
8341 }
8342 
8343 zxdg_imported_v1_t::zxdg_imported_v1_t(const proxy_t &p)
8344  : proxy_t(p)
8345 {
8347  {
8348  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8349  set_destroy_opcode(0u);
8350  }
8351  interface = &zxdg_imported_v1_interface;
8352  copy_constructor = [] (const proxy_t &p) -> proxy_t
8353  { return zxdg_imported_v1_t(p); };
8354 }
8355 
8356 zxdg_imported_v1_t::zxdg_imported_v1_t()
8357 {
8358  interface = &zxdg_imported_v1_interface;
8359  copy_constructor = [] (const proxy_t &p) -> proxy_t
8360  { return zxdg_imported_v1_t(p); };
8361 }
8362 
8363 zxdg_imported_v1_t::zxdg_imported_v1_t(zxdg_imported_v1 *p, wrapper_type t)
8364  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8366  {
8367  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8368  set_destroy_opcode(0u);
8369  }
8370  interface = &zxdg_imported_v1_interface;
8371  copy_constructor = [] (const proxy_t &p) -> proxy_t
8372  { return zxdg_imported_v1_t(p); };
8373 }
8374 
8375 zxdg_imported_v1_t::zxdg_imported_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8376  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8377  interface = &zxdg_imported_v1_interface;
8378  copy_constructor = [] (const proxy_t &p) -> proxy_t
8379  { return zxdg_imported_v1_t(p); };
8380 }
8381 
8382 zxdg_imported_v1_t zxdg_imported_v1_t::proxy_create_wrapper()
8383 {
8384  return {*this, construct_proxy_wrapper_tag()};
8385 }
8386 
8387 const std::string zxdg_imported_v1_t::interface_name = "zxdg_imported_v1";
8388 
8389 zxdg_imported_v1_t::operator zxdg_imported_v1*() const
8390 {
8391  return reinterpret_cast<zxdg_imported_v1*> (c_ptr());
8392 }
8393 
8395 {
8396  marshal(1u, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
8397 }
8398 
8399 std::function<void()> &zxdg_imported_v1_t::on_destroyed()
8400 {
8401  return std::static_pointer_cast<events_t>(get_events())->destroyed;
8402 }
8403 
8404 int zxdg_imported_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8405 {
8406  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8407  switch(opcode)
8408  {
8409  case 0:
8410  if(events->destroyed) events->destroyed();
8411  break;
8412  }
8413  return 0;
8414 }
8415 
8416 zxdg_exporter_v2_t::zxdg_exporter_v2_t(const proxy_t &p)
8417  : proxy_t(p)
8418 {
8420  {
8421  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8422  set_destroy_opcode(0u);
8423  }
8424  interface = &zxdg_exporter_v2_interface;
8425  copy_constructor = [] (const proxy_t &p) -> proxy_t
8426  { return zxdg_exporter_v2_t(p); };
8427 }
8428 
8429 zxdg_exporter_v2_t::zxdg_exporter_v2_t()
8430 {
8431  interface = &zxdg_exporter_v2_interface;
8432  copy_constructor = [] (const proxy_t &p) -> proxy_t
8433  { return zxdg_exporter_v2_t(p); };
8434 }
8435 
8436 zxdg_exporter_v2_t::zxdg_exporter_v2_t(zxdg_exporter_v2 *p, wrapper_type t)
8437  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8439  {
8440  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8441  set_destroy_opcode(0u);
8442  }
8443  interface = &zxdg_exporter_v2_interface;
8444  copy_constructor = [] (const proxy_t &p) -> proxy_t
8445  { return zxdg_exporter_v2_t(p); };
8446 }
8447 
8448 zxdg_exporter_v2_t::zxdg_exporter_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8449  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8450  interface = &zxdg_exporter_v2_interface;
8451  copy_constructor = [] (const proxy_t &p) -> proxy_t
8452  { return zxdg_exporter_v2_t(p); };
8453 }
8454 
8455 zxdg_exporter_v2_t zxdg_exporter_v2_t::proxy_create_wrapper()
8456 {
8457  return {*this, construct_proxy_wrapper_tag()};
8458 }
8459 
8460 const std::string zxdg_exporter_v2_t::interface_name = "zxdg_exporter_v2";
8461 
8462 zxdg_exporter_v2_t::operator zxdg_exporter_v2*() const
8463 {
8464  return reinterpret_cast<zxdg_exporter_v2*> (c_ptr());
8465 }
8466 
8468 {
8469  proxy_t p = marshal_constructor(1u, &zxdg_exported_v2_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
8470  return zxdg_exported_v2_t(p);
8471 }
8472 
8473 int zxdg_exporter_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8474 {
8475  return 0;
8476 }
8477 
8478 zxdg_importer_v2_t::zxdg_importer_v2_t(const proxy_t &p)
8479  : proxy_t(p)
8480 {
8482  {
8483  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8484  set_destroy_opcode(0u);
8485  }
8486  interface = &zxdg_importer_v2_interface;
8487  copy_constructor = [] (const proxy_t &p) -> proxy_t
8488  { return zxdg_importer_v2_t(p); };
8489 }
8490 
8491 zxdg_importer_v2_t::zxdg_importer_v2_t()
8492 {
8493  interface = &zxdg_importer_v2_interface;
8494  copy_constructor = [] (const proxy_t &p) -> proxy_t
8495  { return zxdg_importer_v2_t(p); };
8496 }
8497 
8498 zxdg_importer_v2_t::zxdg_importer_v2_t(zxdg_importer_v2 *p, wrapper_type t)
8499  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8501  {
8502  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8503  set_destroy_opcode(0u);
8504  }
8505  interface = &zxdg_importer_v2_interface;
8506  copy_constructor = [] (const proxy_t &p) -> proxy_t
8507  { return zxdg_importer_v2_t(p); };
8508 }
8509 
8510 zxdg_importer_v2_t::zxdg_importer_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8511  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8512  interface = &zxdg_importer_v2_interface;
8513  copy_constructor = [] (const proxy_t &p) -> proxy_t
8514  { return zxdg_importer_v2_t(p); };
8515 }
8516 
8517 zxdg_importer_v2_t zxdg_importer_v2_t::proxy_create_wrapper()
8518 {
8519  return {*this, construct_proxy_wrapper_tag()};
8520 }
8521 
8522 const std::string zxdg_importer_v2_t::interface_name = "zxdg_importer_v2";
8523 
8524 zxdg_importer_v2_t::operator zxdg_importer_v2*() const
8525 {
8526  return reinterpret_cast<zxdg_importer_v2*> (c_ptr());
8527 }
8528 
8530 {
8531  proxy_t p = marshal_constructor(1u, &zxdg_imported_v2_interface, nullptr, handle);
8532  return zxdg_imported_v2_t(p);
8533 }
8534 
8535 int zxdg_importer_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8536 {
8537  return 0;
8538 }
8539 
8540 zxdg_exported_v2_t::zxdg_exported_v2_t(const proxy_t &p)
8541  : proxy_t(p)
8542 {
8544  {
8545  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8546  set_destroy_opcode(0u);
8547  }
8548  interface = &zxdg_exported_v2_interface;
8549  copy_constructor = [] (const proxy_t &p) -> proxy_t
8550  { return zxdg_exported_v2_t(p); };
8551 }
8552 
8553 zxdg_exported_v2_t::zxdg_exported_v2_t()
8554 {
8555  interface = &zxdg_exported_v2_interface;
8556  copy_constructor = [] (const proxy_t &p) -> proxy_t
8557  { return zxdg_exported_v2_t(p); };
8558 }
8559 
8560 zxdg_exported_v2_t::zxdg_exported_v2_t(zxdg_exported_v2 *p, wrapper_type t)
8561  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8563  {
8564  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8565  set_destroy_opcode(0u);
8566  }
8567  interface = &zxdg_exported_v2_interface;
8568  copy_constructor = [] (const proxy_t &p) -> proxy_t
8569  { return zxdg_exported_v2_t(p); };
8570 }
8571 
8572 zxdg_exported_v2_t::zxdg_exported_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8573  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8574  interface = &zxdg_exported_v2_interface;
8575  copy_constructor = [] (const proxy_t &p) -> proxy_t
8576  { return zxdg_exported_v2_t(p); };
8577 }
8578 
8579 zxdg_exported_v2_t zxdg_exported_v2_t::proxy_create_wrapper()
8580 {
8581  return {*this, construct_proxy_wrapper_tag()};
8582 }
8583 
8584 const std::string zxdg_exported_v2_t::interface_name = "zxdg_exported_v2";
8585 
8586 zxdg_exported_v2_t::operator zxdg_exported_v2*() const
8587 {
8588  return reinterpret_cast<zxdg_exported_v2*> (c_ptr());
8589 }
8590 
8591 std::function<void(std::string)> &zxdg_exported_v2_t::on_handle()
8592 {
8593  return std::static_pointer_cast<events_t>(get_events())->handle;
8594 }
8595 
8596 int zxdg_exported_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8597 {
8598  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8599  switch(opcode)
8600  {
8601  case 0:
8602  if(events->handle) events->handle(args[0].get<std::string>());
8603  break;
8604  }
8605  return 0;
8606 }
8607 
8608 zxdg_imported_v2_t::zxdg_imported_v2_t(const proxy_t &p)
8609  : proxy_t(p)
8610 {
8612  {
8613  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8614  set_destroy_opcode(0u);
8615  }
8616  interface = &zxdg_imported_v2_interface;
8617  copy_constructor = [] (const proxy_t &p) -> proxy_t
8618  { return zxdg_imported_v2_t(p); };
8619 }
8620 
8621 zxdg_imported_v2_t::zxdg_imported_v2_t()
8622 {
8623  interface = &zxdg_imported_v2_interface;
8624  copy_constructor = [] (const proxy_t &p) -> proxy_t
8625  { return zxdg_imported_v2_t(p); };
8626 }
8627 
8628 zxdg_imported_v2_t::zxdg_imported_v2_t(zxdg_imported_v2 *p, wrapper_type t)
8629  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8631  {
8632  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8633  set_destroy_opcode(0u);
8634  }
8635  interface = &zxdg_imported_v2_interface;
8636  copy_constructor = [] (const proxy_t &p) -> proxy_t
8637  { return zxdg_imported_v2_t(p); };
8638 }
8639 
8640 zxdg_imported_v2_t::zxdg_imported_v2_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8641  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8642  interface = &zxdg_imported_v2_interface;
8643  copy_constructor = [] (const proxy_t &p) -> proxy_t
8644  { return zxdg_imported_v2_t(p); };
8645 }
8646 
8647 zxdg_imported_v2_t zxdg_imported_v2_t::proxy_create_wrapper()
8648 {
8649  return {*this, construct_proxy_wrapper_tag()};
8650 }
8651 
8652 const std::string zxdg_imported_v2_t::interface_name = "zxdg_imported_v2";
8653 
8654 zxdg_imported_v2_t::operator zxdg_imported_v2*() const
8655 {
8656  return reinterpret_cast<zxdg_imported_v2*> (c_ptr());
8657 }
8658 
8660 {
8661  marshal(1u, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
8662 }
8663 
8664 std::function<void()> &zxdg_imported_v2_t::on_destroyed()
8665 {
8666  return std::static_pointer_cast<events_t>(get_events())->destroyed;
8667 }
8668 
8669 int zxdg_imported_v2_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8670 {
8671  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8672  switch(opcode)
8673  {
8674  case 0:
8675  if(events->destroyed) events->destroyed();
8676  break;
8677  }
8678  return 0;
8679 }
8680 
8681 zxdg_output_manager_v1_t::zxdg_output_manager_v1_t(const proxy_t &p)
8682  : proxy_t(p)
8683 {
8685  {
8686  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8687  set_destroy_opcode(0u);
8688  }
8689  interface = &zxdg_output_manager_v1_interface;
8690  copy_constructor = [] (const proxy_t &p) -> proxy_t
8691  { return zxdg_output_manager_v1_t(p); };
8692 }
8693 
8694 zxdg_output_manager_v1_t::zxdg_output_manager_v1_t()
8695 {
8696  interface = &zxdg_output_manager_v1_interface;
8697  copy_constructor = [] (const proxy_t &p) -> proxy_t
8698  { return zxdg_output_manager_v1_t(p); };
8699 }
8700 
8701 zxdg_output_manager_v1_t::zxdg_output_manager_v1_t(zxdg_output_manager_v1 *p, wrapper_type t)
8702  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8704  {
8705  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8706  set_destroy_opcode(0u);
8707  }
8708  interface = &zxdg_output_manager_v1_interface;
8709  copy_constructor = [] (const proxy_t &p) -> proxy_t
8710  { return zxdg_output_manager_v1_t(p); };
8711 }
8712 
8713 zxdg_output_manager_v1_t::zxdg_output_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8714  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8715  interface = &zxdg_output_manager_v1_interface;
8716  copy_constructor = [] (const proxy_t &p) -> proxy_t
8717  { return zxdg_output_manager_v1_t(p); };
8718 }
8719 
8720 zxdg_output_manager_v1_t zxdg_output_manager_v1_t::proxy_create_wrapper()
8721 {
8722  return {*this, construct_proxy_wrapper_tag()};
8723 }
8724 
8725 const std::string zxdg_output_manager_v1_t::interface_name = "zxdg_output_manager_v1";
8726 
8727 zxdg_output_manager_v1_t::operator zxdg_output_manager_v1*() const
8728 {
8729  return reinterpret_cast<zxdg_output_manager_v1*> (c_ptr());
8730 }
8731 
8733 {
8734  proxy_t p = marshal_constructor(1u, &zxdg_output_v1_interface, nullptr, output.proxy_has_object() ? reinterpret_cast<wl_object*>(output.c_ptr()) : nullptr);
8735  return zxdg_output_v1_t(p);
8736 }
8737 
8738 int zxdg_output_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8739 {
8740  return 0;
8741 }
8742 
8743 zxdg_output_v1_t::zxdg_output_v1_t(const proxy_t &p)
8744  : proxy_t(p)
8745 {
8747  {
8748  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8749  set_destroy_opcode(0u);
8750  }
8751  interface = &zxdg_output_v1_interface;
8752  copy_constructor = [] (const proxy_t &p) -> proxy_t
8753  { return zxdg_output_v1_t(p); };
8754 }
8755 
8756 zxdg_output_v1_t::zxdg_output_v1_t()
8757 {
8758  interface = &zxdg_output_v1_interface;
8759  copy_constructor = [] (const proxy_t &p) -> proxy_t
8760  { return zxdg_output_v1_t(p); };
8761 }
8762 
8763 zxdg_output_v1_t::zxdg_output_v1_t(zxdg_output_v1 *p, wrapper_type t)
8764  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8766  {
8767  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8768  set_destroy_opcode(0u);
8769  }
8770  interface = &zxdg_output_v1_interface;
8771  copy_constructor = [] (const proxy_t &p) -> proxy_t
8772  { return zxdg_output_v1_t(p); };
8773 }
8774 
8775 zxdg_output_v1_t::zxdg_output_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8776  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8777  interface = &zxdg_output_v1_interface;
8778  copy_constructor = [] (const proxy_t &p) -> proxy_t
8779  { return zxdg_output_v1_t(p); };
8780 }
8781 
8782 zxdg_output_v1_t zxdg_output_v1_t::proxy_create_wrapper()
8783 {
8784  return {*this, construct_proxy_wrapper_tag()};
8785 }
8786 
8787 const std::string zxdg_output_v1_t::interface_name = "zxdg_output_v1";
8788 
8789 zxdg_output_v1_t::operator zxdg_output_v1*() const
8790 {
8791  return reinterpret_cast<zxdg_output_v1*> (c_ptr());
8792 }
8793 
8794 std::function<void(int32_t, int32_t)> &zxdg_output_v1_t::on_logical_position()
8795 {
8796  return std::static_pointer_cast<events_t>(get_events())->logical_position;
8797 }
8798 
8799 std::function<void(int32_t, int32_t)> &zxdg_output_v1_t::on_logical_size()
8800 {
8801  return std::static_pointer_cast<events_t>(get_events())->logical_size;
8802 }
8803 
8804 std::function<void()> &zxdg_output_v1_t::on_done()
8805 {
8806  return std::static_pointer_cast<events_t>(get_events())->done;
8807 }
8808 
8809 std::function<void(std::string)> &zxdg_output_v1_t::on_name()
8810 {
8811  return std::static_pointer_cast<events_t>(get_events())->name;
8812 }
8813 
8814 std::function<void(std::string)> &zxdg_output_v1_t::on_description()
8815 {
8816  return std::static_pointer_cast<events_t>(get_events())->description;
8817 }
8818 
8819 int zxdg_output_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8820 {
8821  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8822  switch(opcode)
8823  {
8824  case 0:
8825  if(events->logical_position) events->logical_position(args[0].get<int32_t>(), args[1].get<int32_t>());
8826  break;
8827  case 1:
8828  if(events->logical_size) events->logical_size(args[0].get<int32_t>(), args[1].get<int32_t>());
8829  break;
8830  case 2:
8831  if(events->done) events->done();
8832  break;
8833  case 3:
8834  if(events->name) events->name(args[0].get<std::string>());
8835  break;
8836  case 4:
8837  if(events->description) events->description(args[0].get<std::string>());
8838  break;
8839  }
8840  return 0;
8841 }
8842 
8843 zxdg_shell_v6_t::zxdg_shell_v6_t(const proxy_t &p)
8844  : proxy_t(p)
8845 {
8847  {
8848  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8849  set_destroy_opcode(0u);
8850  }
8851  interface = &zxdg_shell_v6_interface;
8852  copy_constructor = [] (const proxy_t &p) -> proxy_t
8853  { return zxdg_shell_v6_t(p); };
8854 }
8855 
8856 zxdg_shell_v6_t::zxdg_shell_v6_t()
8857 {
8858  interface = &zxdg_shell_v6_interface;
8859  copy_constructor = [] (const proxy_t &p) -> proxy_t
8860  { return zxdg_shell_v6_t(p); };
8861 }
8862 
8863 zxdg_shell_v6_t::zxdg_shell_v6_t(zxdg_shell_v6 *p, wrapper_type t)
8864  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8866  {
8867  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8868  set_destroy_opcode(0u);
8869  }
8870  interface = &zxdg_shell_v6_interface;
8871  copy_constructor = [] (const proxy_t &p) -> proxy_t
8872  { return zxdg_shell_v6_t(p); };
8873 }
8874 
8875 zxdg_shell_v6_t::zxdg_shell_v6_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8876  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8877  interface = &zxdg_shell_v6_interface;
8878  copy_constructor = [] (const proxy_t &p) -> proxy_t
8879  { return zxdg_shell_v6_t(p); };
8880 }
8881 
8882 zxdg_shell_v6_t zxdg_shell_v6_t::proxy_create_wrapper()
8883 {
8884  return {*this, construct_proxy_wrapper_tag()};
8885 }
8886 
8887 const std::string zxdg_shell_v6_t::interface_name = "zxdg_shell_v6";
8888 
8889 zxdg_shell_v6_t::operator zxdg_shell_v6*() const
8890 {
8891  return reinterpret_cast<zxdg_shell_v6*> (c_ptr());
8892 }
8893 
8895 {
8896  proxy_t p = marshal_constructor(1u, &zxdg_positioner_v6_interface, nullptr);
8897  return zxdg_positioner_v6_t(p);
8898 }
8899 
8901 {
8902  proxy_t p = marshal_constructor(2u, &zxdg_surface_v6_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr);
8903  return zxdg_surface_v6_t(p);
8904 }
8905 
8906 void zxdg_shell_v6_t::pong(uint32_t serial)
8907 {
8908  marshal(3u, serial);
8909 }
8910 
8911 std::function<void(uint32_t)> &zxdg_shell_v6_t::on_ping()
8912 {
8913  return std::static_pointer_cast<events_t>(get_events())->ping;
8914 }
8915 
8916 int zxdg_shell_v6_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
8917 {
8918  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
8919  switch(opcode)
8920  {
8921  case 0:
8922  if(events->ping) events->ping(args[0].get<uint32_t>());
8923  break;
8924  }
8925  return 0;
8926 }
8927 
8928 
8929 zxdg_positioner_v6_t::zxdg_positioner_v6_t(const proxy_t &p)
8930  : proxy_t(p)
8931 {
8933  {
8934  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8935  set_destroy_opcode(0u);
8936  }
8937  interface = &zxdg_positioner_v6_interface;
8938  copy_constructor = [] (const proxy_t &p) -> proxy_t
8939  { return zxdg_positioner_v6_t(p); };
8940 }
8941 
8942 zxdg_positioner_v6_t::zxdg_positioner_v6_t()
8943 {
8944  interface = &zxdg_positioner_v6_interface;
8945  copy_constructor = [] (const proxy_t &p) -> proxy_t
8946  { return zxdg_positioner_v6_t(p); };
8947 }
8948 
8949 zxdg_positioner_v6_t::zxdg_positioner_v6_t(zxdg_positioner_v6 *p, wrapper_type t)
8950  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
8952  {
8953  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
8954  set_destroy_opcode(0u);
8955  }
8956  interface = &zxdg_positioner_v6_interface;
8957  copy_constructor = [] (const proxy_t &p) -> proxy_t
8958  { return zxdg_positioner_v6_t(p); };
8959 }
8960 
8961 zxdg_positioner_v6_t::zxdg_positioner_v6_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
8962  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
8963  interface = &zxdg_positioner_v6_interface;
8964  copy_constructor = [] (const proxy_t &p) -> proxy_t
8965  { return zxdg_positioner_v6_t(p); };
8966 }
8967 
8968 zxdg_positioner_v6_t zxdg_positioner_v6_t::proxy_create_wrapper()
8969 {
8970  return {*this, construct_proxy_wrapper_tag()};
8971 }
8972 
8973 const std::string zxdg_positioner_v6_t::interface_name = "zxdg_positioner_v6";
8974 
8975 zxdg_positioner_v6_t::operator zxdg_positioner_v6*() const
8976 {
8977  return reinterpret_cast<zxdg_positioner_v6*> (c_ptr());
8978 }
8979 
8980 void zxdg_positioner_v6_t::set_size(int32_t width, int32_t height)
8981 {
8982  marshal(1u, width, height);
8983 }
8984 
8985 void zxdg_positioner_v6_t::set_anchor_rect(int32_t x, int32_t y, int32_t width, int32_t height)
8986 {
8987  marshal(2u, x, y, width, height);
8988 }
8989 
8990 void zxdg_positioner_v6_t::set_anchor(zxdg_positioner_v6_anchor anchor)
8991 {
8992  marshal(3u, static_cast<uint32_t>(anchor));
8993 }
8994 
8995 void zxdg_positioner_v6_t::set_gravity(zxdg_positioner_v6_gravity gravity)
8996 {
8997  marshal(4u, static_cast<uint32_t>(gravity));
8998 }
8999 
9001 {
9002  marshal(5u, static_cast<uint32_t>(constraint_adjustment));
9003 }
9004 
9005 void zxdg_positioner_v6_t::set_offset(int32_t x, int32_t y)
9006 {
9007  marshal(6u, x, y);
9008 }
9009 
9010 int zxdg_positioner_v6_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9011 {
9012  return 0;
9013 }
9014 
9015 const bitfield<4, 33> zxdg_positioner_v6_anchor::none{0};
9016 const bitfield<4, 33> zxdg_positioner_v6_anchor::top{1};
9017 const bitfield<4, 33> zxdg_positioner_v6_anchor::bottom{2};
9018 const bitfield<4, 33> zxdg_positioner_v6_anchor::left{4};
9019 const bitfield<4, 33> zxdg_positioner_v6_anchor::right{8};
9020 
9021 const bitfield<4, 34> zxdg_positioner_v6_gravity::none{0};
9022 const bitfield<4, 34> zxdg_positioner_v6_gravity::top{1};
9023 const bitfield<4, 34> zxdg_positioner_v6_gravity::bottom{2};
9024 const bitfield<4, 34> zxdg_positioner_v6_gravity::left{4};
9025 const bitfield<4, 34> zxdg_positioner_v6_gravity::right{8};
9026 
9027 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::none{0};
9028 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::slide_x{1};
9029 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::slide_y{2};
9030 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::flip_x{4};
9031 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::flip_y{8};
9032 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::resize_x{16};
9033 const bitfield<6, 35> zxdg_positioner_v6_constraint_adjustment::resize_y{32};
9034 
9035 
9036 zxdg_surface_v6_t::zxdg_surface_v6_t(const proxy_t &p)
9037  : proxy_t(p)
9038 {
9040  {
9041  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9042  set_destroy_opcode(0u);
9043  }
9044  interface = &zxdg_surface_v6_interface;
9045  copy_constructor = [] (const proxy_t &p) -> proxy_t
9046  { return zxdg_surface_v6_t(p); };
9047 }
9048 
9049 zxdg_surface_v6_t::zxdg_surface_v6_t()
9050 {
9051  interface = &zxdg_surface_v6_interface;
9052  copy_constructor = [] (const proxy_t &p) -> proxy_t
9053  { return zxdg_surface_v6_t(p); };
9054 }
9055 
9056 zxdg_surface_v6_t::zxdg_surface_v6_t(zxdg_surface_v6 *p, wrapper_type t)
9057  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
9059  {
9060  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9061  set_destroy_opcode(0u);
9062  }
9063  interface = &zxdg_surface_v6_interface;
9064  copy_constructor = [] (const proxy_t &p) -> proxy_t
9065  { return zxdg_surface_v6_t(p); };
9066 }
9067 
9068 zxdg_surface_v6_t::zxdg_surface_v6_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
9069  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
9070  interface = &zxdg_surface_v6_interface;
9071  copy_constructor = [] (const proxy_t &p) -> proxy_t
9072  { return zxdg_surface_v6_t(p); };
9073 }
9074 
9075 zxdg_surface_v6_t zxdg_surface_v6_t::proxy_create_wrapper()
9076 {
9077  return {*this, construct_proxy_wrapper_tag()};
9078 }
9079 
9080 const std::string zxdg_surface_v6_t::interface_name = "zxdg_surface_v6";
9081 
9082 zxdg_surface_v6_t::operator zxdg_surface_v6*() const
9083 {
9084  return reinterpret_cast<zxdg_surface_v6*> (c_ptr());
9085 }
9086 
9088 {
9089  proxy_t p = marshal_constructor(1u, &zxdg_toplevel_v6_interface, nullptr);
9090  return zxdg_toplevel_v6_t(p);
9091 }
9092 
9094 {
9095  proxy_t p = marshal_constructor(2u, &zxdg_popup_v6_interface, nullptr, parent.proxy_has_object() ? reinterpret_cast<wl_object*>(parent.c_ptr()) : nullptr, positioner.proxy_has_object() ? reinterpret_cast<wl_object*>(positioner.c_ptr()) : nullptr);
9096  return zxdg_popup_v6_t(p);
9097 }
9098 
9099 void zxdg_surface_v6_t::set_window_geometry(int32_t x, int32_t y, int32_t width, int32_t height)
9100 {
9101  marshal(3u, x, y, width, height);
9102 }
9103 
9105 {
9106  marshal(4u, serial);
9107 }
9108 
9109 std::function<void(uint32_t)> &zxdg_surface_v6_t::on_configure()
9110 {
9111  return std::static_pointer_cast<events_t>(get_events())->configure;
9112 }
9113 
9114 int zxdg_surface_v6_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9115 {
9116  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
9117  switch(opcode)
9118  {
9119  case 0:
9120  if(events->configure) events->configure(args[0].get<uint32_t>());
9121  break;
9122  }
9123  return 0;
9124 }
9125 
9126 
9127 zxdg_toplevel_v6_t::zxdg_toplevel_v6_t(const proxy_t &p)
9128  : proxy_t(p)
9129 {
9131  {
9132  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9133  set_destroy_opcode(0u);
9134  }
9135  interface = &zxdg_toplevel_v6_interface;
9136  copy_constructor = [] (const proxy_t &p) -> proxy_t
9137  { return zxdg_toplevel_v6_t(p); };
9138 }
9139 
9140 zxdg_toplevel_v6_t::zxdg_toplevel_v6_t()
9141 {
9142  interface = &zxdg_toplevel_v6_interface;
9143  copy_constructor = [] (const proxy_t &p) -> proxy_t
9144  { return zxdg_toplevel_v6_t(p); };
9145 }
9146 
9147 zxdg_toplevel_v6_t::zxdg_toplevel_v6_t(zxdg_toplevel_v6 *p, wrapper_type t)
9148  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
9150  {
9151  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9152  set_destroy_opcode(0u);
9153  }
9154  interface = &zxdg_toplevel_v6_interface;
9155  copy_constructor = [] (const proxy_t &p) -> proxy_t
9156  { return zxdg_toplevel_v6_t(p); };
9157 }
9158 
9159 zxdg_toplevel_v6_t::zxdg_toplevel_v6_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
9160  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
9161  interface = &zxdg_toplevel_v6_interface;
9162  copy_constructor = [] (const proxy_t &p) -> proxy_t
9163  { return zxdg_toplevel_v6_t(p); };
9164 }
9165 
9166 zxdg_toplevel_v6_t zxdg_toplevel_v6_t::proxy_create_wrapper()
9167 {
9168  return {*this, construct_proxy_wrapper_tag()};
9169 }
9170 
9171 const std::string zxdg_toplevel_v6_t::interface_name = "zxdg_toplevel_v6";
9172 
9173 zxdg_toplevel_v6_t::operator zxdg_toplevel_v6*() const
9174 {
9175  return reinterpret_cast<zxdg_toplevel_v6*> (c_ptr());
9176 }
9177 
9179 {
9180  marshal(1u, parent.proxy_has_object() ? reinterpret_cast<wl_object*>(parent.c_ptr()) : nullptr);
9181 }
9182 
9183 void zxdg_toplevel_v6_t::set_title(std::string title)
9184 {
9185  marshal(2u, title);
9186 }
9187 
9188 void zxdg_toplevel_v6_t::set_app_id(std::string app_id)
9189 {
9190  marshal(3u, app_id);
9191 }
9192 
9193 void zxdg_toplevel_v6_t::show_window_menu(seat_t seat, uint32_t serial, int32_t x, int32_t y)
9194 {
9195  marshal(4u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr, serial, x, y);
9196 }
9197 
9198 void zxdg_toplevel_v6_t::move(seat_t seat, uint32_t serial)
9199 {
9200  marshal(5u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr, serial);
9201 }
9202 
9204 {
9205  marshal(6u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr, serial, static_cast<uint32_t>(edges));
9206 }
9207 
9208 void zxdg_toplevel_v6_t::set_max_size(int32_t width, int32_t height)
9209 {
9210  marshal(7u, width, height);
9211 }
9212 
9213 void zxdg_toplevel_v6_t::set_min_size(int32_t width, int32_t height)
9214 {
9215  marshal(8u, width, height);
9216 }
9217 
9219 {
9220  marshal(9u);
9221 }
9222 
9224 {
9225  marshal(10u);
9226 }
9227 
9229 {
9230  marshal(11u, output.proxy_has_object() ? reinterpret_cast<wl_object*>(output.c_ptr()) : nullptr);
9231 }
9232 
9233 void zxdg_toplevel_v6_t::unset_fullscreen()
9234 {
9235  marshal(12u);
9236 }
9237 
9239 {
9240  marshal(13u);
9241 }
9242 
9243 std::function<void(int32_t, int32_t, array_t)> &zxdg_toplevel_v6_t::on_configure()
9244 {
9245  return std::static_pointer_cast<events_t>(get_events())->configure;
9246 }
9247 
9248 std::function<void()> &zxdg_toplevel_v6_t::on_close()
9249 {
9250  return std::static_pointer_cast<events_t>(get_events())->close;
9251 }
9252 
9253 int zxdg_toplevel_v6_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9254 {
9255  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
9256  switch(opcode)
9257  {
9258  case 0:
9259  if(events->configure) events->configure(args[0].get<int32_t>(), args[1].get<int32_t>(), args[2].get<array_t>());
9260  break;
9261  case 1:
9262  if(events->close) events->close();
9263  break;
9264  }
9265  return 0;
9266 }
9267 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::none{0};
9268 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::top{1};
9269 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::bottom{2};
9270 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::left{4};
9271 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::top_left{5};
9272 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::bottom_left{6};
9273 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::right{8};
9274 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::top_right{9};
9275 const bitfield<4, 37> zxdg_toplevel_v6_resize_edge::bottom_right{10};
9276 
9277 
9278 
9279 zxdg_popup_v6_t::zxdg_popup_v6_t(const proxy_t &p)
9280  : proxy_t(p)
9281 {
9283  {
9284  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9285  set_destroy_opcode(0u);
9286  }
9287  interface = &zxdg_popup_v6_interface;
9288  copy_constructor = [] (const proxy_t &p) -> proxy_t
9289  { return zxdg_popup_v6_t(p); };
9290 }
9291 
9292 zxdg_popup_v6_t::zxdg_popup_v6_t()
9293 {
9294  interface = &zxdg_popup_v6_interface;
9295  copy_constructor = [] (const proxy_t &p) -> proxy_t
9296  { return zxdg_popup_v6_t(p); };
9297 }
9298 
9299 zxdg_popup_v6_t::zxdg_popup_v6_t(zxdg_popup_v6 *p, wrapper_type t)
9300  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
9302  {
9303  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9304  set_destroy_opcode(0u);
9305  }
9306  interface = &zxdg_popup_v6_interface;
9307  copy_constructor = [] (const proxy_t &p) -> proxy_t
9308  { return zxdg_popup_v6_t(p); };
9309 }
9310 
9311 zxdg_popup_v6_t::zxdg_popup_v6_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
9312  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
9313  interface = &zxdg_popup_v6_interface;
9314  copy_constructor = [] (const proxy_t &p) -> proxy_t
9315  { return zxdg_popup_v6_t(p); };
9316 }
9317 
9318 zxdg_popup_v6_t zxdg_popup_v6_t::proxy_create_wrapper()
9319 {
9320  return {*this, construct_proxy_wrapper_tag()};
9321 }
9322 
9323 const std::string zxdg_popup_v6_t::interface_name = "zxdg_popup_v6";
9324 
9325 zxdg_popup_v6_t::operator zxdg_popup_v6*() const
9326 {
9327  return reinterpret_cast<zxdg_popup_v6*> (c_ptr());
9328 }
9329 
9330 void zxdg_popup_v6_t::grab(seat_t seat, uint32_t serial)
9331 {
9332  marshal(1u, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr, serial);
9333 }
9334 
9335 std::function<void(int32_t, int32_t, int32_t, int32_t)> &zxdg_popup_v6_t::on_configure()
9336 {
9337  return std::static_pointer_cast<events_t>(get_events())->configure;
9338 }
9339 
9340 std::function<void()> &zxdg_popup_v6_t::on_popup_done()
9341 {
9342  return std::static_pointer_cast<events_t>(get_events())->popup_done;
9343 }
9344 
9345 int zxdg_popup_v6_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9346 {
9347  std::shared_ptr<events_t> events = std::static_pointer_cast<events_t>(e);
9348  switch(opcode)
9349  {
9350  case 0:
9351  if(events->configure) events->configure(args[0].get<int32_t>(), args[1].get<int32_t>(), args[2].get<int32_t>(), args[3].get<int32_t>());
9352  break;
9353  case 1:
9354  if(events->popup_done) events->popup_done();
9355  break;
9356  }
9357  return 0;
9358 }
9359 
9360 
9361 zwp_xwayland_keyboard_grab_manager_v1_t::zwp_xwayland_keyboard_grab_manager_v1_t(const proxy_t &p)
9362  : proxy_t(p)
9363 {
9365  {
9366  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9367  set_destroy_opcode(0u);
9368  }
9369  interface = &zwp_xwayland_keyboard_grab_manager_v1_interface;
9370  copy_constructor = [] (const proxy_t &p) -> proxy_t
9372 }
9373 
9374 zwp_xwayland_keyboard_grab_manager_v1_t::zwp_xwayland_keyboard_grab_manager_v1_t()
9375 {
9376  interface = &zwp_xwayland_keyboard_grab_manager_v1_interface;
9377  copy_constructor = [] (const proxy_t &p) -> proxy_t
9379 }
9380 
9381 zwp_xwayland_keyboard_grab_manager_v1_t::zwp_xwayland_keyboard_grab_manager_v1_t(zwp_xwayland_keyboard_grab_manager_v1 *p, wrapper_type t)
9382  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
9384  {
9385  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9386  set_destroy_opcode(0u);
9387  }
9388  interface = &zwp_xwayland_keyboard_grab_manager_v1_interface;
9389  copy_constructor = [] (const proxy_t &p) -> proxy_t
9391 }
9392 
9393 zwp_xwayland_keyboard_grab_manager_v1_t::zwp_xwayland_keyboard_grab_manager_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
9394  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
9395  interface = &zwp_xwayland_keyboard_grab_manager_v1_interface;
9396  copy_constructor = [] (const proxy_t &p) -> proxy_t
9398 }
9399 
9400 zwp_xwayland_keyboard_grab_manager_v1_t zwp_xwayland_keyboard_grab_manager_v1_t::proxy_create_wrapper()
9401 {
9402  return {*this, construct_proxy_wrapper_tag()};
9403 }
9404 
9405 const std::string zwp_xwayland_keyboard_grab_manager_v1_t::interface_name = "zwp_xwayland_keyboard_grab_manager_v1";
9406 
9407 zwp_xwayland_keyboard_grab_manager_v1_t::operator zwp_xwayland_keyboard_grab_manager_v1*() const
9408 {
9409  return reinterpret_cast<zwp_xwayland_keyboard_grab_manager_v1*> (c_ptr());
9410 }
9411 
9413 {
9414  proxy_t p = marshal_constructor(1u, &zwp_xwayland_keyboard_grab_v1_interface, nullptr, surface.proxy_has_object() ? reinterpret_cast<wl_object*>(surface.c_ptr()) : nullptr, seat.proxy_has_object() ? reinterpret_cast<wl_object*>(seat.c_ptr()) : nullptr);
9416 }
9417 
9418 int zwp_xwayland_keyboard_grab_manager_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9419 {
9420  return 0;
9421 }
9422 
9423 zwp_xwayland_keyboard_grab_v1_t::zwp_xwayland_keyboard_grab_v1_t(const proxy_t &p)
9424  : proxy_t(p)
9425 {
9427  {
9428  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9429  set_destroy_opcode(0u);
9430  }
9431  interface = &zwp_xwayland_keyboard_grab_v1_interface;
9432  copy_constructor = [] (const proxy_t &p) -> proxy_t
9433  { return zwp_xwayland_keyboard_grab_v1_t(p); };
9434 }
9435 
9436 zwp_xwayland_keyboard_grab_v1_t::zwp_xwayland_keyboard_grab_v1_t()
9437 {
9438  interface = &zwp_xwayland_keyboard_grab_v1_interface;
9439  copy_constructor = [] (const proxy_t &p) -> proxy_t
9440  { return zwp_xwayland_keyboard_grab_v1_t(p); };
9441 }
9442 
9443 zwp_xwayland_keyboard_grab_v1_t::zwp_xwayland_keyboard_grab_v1_t(zwp_xwayland_keyboard_grab_v1 *p, wrapper_type t)
9444  : proxy_t(reinterpret_cast<wl_proxy*> (p), t){
9446  {
9447  set_events(std::shared_ptr<detail::events_base_t>(new events_t), dispatcher);
9448  set_destroy_opcode(0u);
9449  }
9450  interface = &zwp_xwayland_keyboard_grab_v1_interface;
9451  copy_constructor = [] (const proxy_t &p) -> proxy_t
9452  { return zwp_xwayland_keyboard_grab_v1_t(p); };
9453 }
9454 
9455 zwp_xwayland_keyboard_grab_v1_t::zwp_xwayland_keyboard_grab_v1_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag)
9456  : proxy_t(wrapped_proxy, construct_proxy_wrapper_tag()){
9457  interface = &zwp_xwayland_keyboard_grab_v1_interface;
9458  copy_constructor = [] (const proxy_t &p) -> proxy_t
9459  { return zwp_xwayland_keyboard_grab_v1_t(p); };
9460 }
9461 
9462 zwp_xwayland_keyboard_grab_v1_t zwp_xwayland_keyboard_grab_v1_t::proxy_create_wrapper()
9463 {
9464  return {*this, construct_proxy_wrapper_tag()};
9465 }
9466 
9467 const std::string zwp_xwayland_keyboard_grab_v1_t::interface_name = "zwp_xwayland_keyboard_grab_v1";
9468 
9469 zwp_xwayland_keyboard_grab_v1_t::operator zwp_xwayland_keyboard_grab_v1*() const
9470 {
9471  return reinterpret_cast<zwp_xwayland_keyboard_grab_v1*> (c_ptr());
9472 }
9473 
9474 int zwp_xwayland_keyboard_grab_v1_t::dispatcher(uint32_t opcode, std::vector<any> args, std::shared_ptr<detail::events_base_t> e)
9475 {
9476  return 0;
9477 }
9478 
9479 
std::function< void()> & on_popup_done()
popup interaction is done
void set_constraint_adjustment(zxdg_positioner_v6_constraint_adjustment constraint_adjustment)
set the adjustment to be done when constrained
std::function< void(uint32_t)> & on_frame()
end of a strip event sequence
std::function< void()> & on_removed()
tablet removed event
std::function< void(zwp_tablet_tool_v2_t)> & on_tool_added()
a new tool has been used with a tablet
std::function< void(uint32_t, uint32_t, uint32_t)> & on_modifier()
supported buffer format modifier
zxdg_exported_v2_t export_toplevel(surface_t surface)
export a toplevel surface
void deactivate(seat_t seat)
request deactivation
std::function< void()> & on_done()
tablet description events sequence complete
std::function< void(uint32_t)> & on_down()
tablet tool is making contact
std::function< void()> & on_failed()
buffer creation failed
zwp_xwayland_keyboard_grab_v1_t grab_keyboard(surface_t surface, seat_t seat)
grab the keyboard to a surface
void release()
release the wl_fullscreen_shell interface
content for a wl_surface
static const detail::bitfield< 10, 27 > spellcheck
suggest word corrections
void receive(std::string mime_type, int fd)
request that the data is transferred
std::function< void(uint32_t)> & on_pressure()
pressure change event
void set_text_change_cause(zwp_text_input_v3_change_cause cause)
indicates the cause of surrounding text change
zwp_fullscreen_shell_mode_feedback_v1_t present_surface_for_mode(surface_t surface, output_t output, int32_t framerate)
present surface for display at a particular mode
std::function< void(surface_t)> & on_leave()
leave event
std::function< void(uint32_t, std::string)> & on_commit_string()
commit
void cursor_position(int32_t index, int32_t anchor)
set cursor to a new position
std::function< void(int32_t, int32_t)> & on_tilt()
tilt change event
offer to transfer primary selection contents
bool can_create_immed() const
Check whether the create_immed function is available with the currently bound version of the protocol...
group of input devices
std::function< void(zwp_tablet_v1_t)> & on_tablet_added()
new device notification
void set_fullscreen(output_t output)
set the window as fullscreen on a monitor
buffer_t create_immed(int32_t width, int32_t height, uint32_t format, zwp_linux_buffer_params_v1_flags flags)
immediately create a wl_buffer from the given dmabufs
std::function< void()> & on_removed()
tool removed
zwp_linux_buffer_params_v1_t create_params()
create a temporary object for buffer parameters
std::function< void(uint32_t)> & on_position()
position changed
void set_anchor_rect(int32_t x, int32_t y, int32_t width, int32_t height)
set the anchor rectangle within the parent surface
std::function< void(zwp_tablet_tool_v1_type)> & on_type()
tool type
void set_feedback(std::string description, uint32_t serial)
set compositor feedback
std::function< void(std::string, int)> & on_send()
send the primary selection contents
std::function< void()> & on_destroyed()
the imported surface handle has been destroyed
void keysym(uint32_t serial, uint32_t time, uint32_t sym, keyboard_key_state state, uint32_t modifiers)
keysym
std::function< void(array_t)> & on_buttons()
buttons announced
std::function< void(array_t)> & on_modifiers_map()
modifiers map
std::function< void()> & on_done()
pad description event sequence complete
std::function< void()> & on_stop()
interaction stopped
std::function< void(uint32_t, uint32_t, uint32_t)> & on_mode_switch()
mode switch event
std::function< void(int32_t, int32_t, array_t)> & on_configure()
suggest a surface change
void disable()
Disable text input on a surface.
std::function< void(zwp_tablet_v2_t)> & on_tablet_added()
new device notification
std::function< void(std::string)> & on_handle()
the exported surface handle
std::function< void(uint32_t, zwp_tablet_v2_t, surface_t)> & on_proximity_in()
proximity in event
std::function< void()> & on_removed()
tool removed
std::function< void(uint32_t, uint32_t)> & on_hardware_serial()
unique hardware serial number of the tool
zwp_confined_pointer_v1_t confine_pointer(surface_t surface, pointer_t pointer, region_t region, zwp_pointer_constraints_v1_lifetime lifetime)
confine pointer to a region
void set_parent(zxdg_toplevel_v6_t parent)
set the parent of this surface
context object for inhibiting idle behavior
std::function< void(uint32_t, uint32_t)> & on_invoke_action()
std::function< void(int32_t)> & on_preedit_cursor()
pre-edit cursor
zxdg_toplevel_decoration_v1_t get_toplevel_decoration(xdg_toplevel_t toplevel)
create a new toplevel decoration object
std::function< void(uint32_t, uint32_t, uint32_t, keyboard_key_state, uint32_t)> & on_keysym()
keysym
void set_region(region_t region)
set a new confine region
compositor output region
void activate(seat_t seat, surface_t surface)
request activation
void commit_string(uint32_t serial, std::string text)
commit string
std::function< void(std::string)> & on_path()
path to the device
zxdg_output_v1_t get_xdg_output(output_t output)
create an xdg output from a wl_output
std::function< void(uint32_t, std::string, std::string)> & on_preedit_string()
pre-edit
std::function< void(uint32_t, uint32_t, zwp_tablet_tool_v1_button_state)> & on_button()
button event
std::function< void(uint32_t, uint32_t)> & on_hardware_id_wacom()
hardware id notification in Wacom's format
std::function< void(zwp_input_method_context_v1_t)> & on_deactivate()
deactivate event
std::function< void(int)> & on_fenced_release()
release buffer with fence
void set_min_size(int32_t width, int32_t height)
set the minimum size
void set_window_geometry(int32_t x, int32_t y, int32_t width, int32_t height)
set the new window geometry
void set_gravity(zxdg_positioner_v6_gravity gravity)
set child surface gravity
void text_direction(uint32_t serial, uint32_t direction)
std::function< void(uint32_t, uint32_t)> & on_id()
tablet device USB vendor/product id
std::function< void(uint32_t)> & on_done()
apply changes
void key(uint32_t serial, uint32_t time, uint32_t key, keyboard_key_state state)
forward key event
void set_title(std::string title)
set surface title
std::function< void(std::string)> & on_name()
tablet device name
std::function< void(zwp_tablet_pad_group_v2_t)> & on_group()
group announced
void set_region(region_t region)
set a new lock region
void set_parent_of(surface_t surface)
set as the parent of some surface
zxdg_toplevel_v6_t get_toplevel()
assign the xdg_toplevel surface role
std::function< void()> & on_removed()
tablet removed event
zwp_linux_surface_synchronization_v1_t get_synchronization(surface_t surface)
extend surface interface for explicit synchronization
zwp_relative_pointer_v1_t get_relative_pointer(pointer_t pointer)
get a relative pointer object
void set_max_size(int32_t width, int32_t height)
set the maximum size
std::function< void(uint32_t, uint32_t)> & on_hardware_serial()
unique hardware serial number of the tool
void offer(std::string mime_type)
add an offered mime type
std::function< void()> & on_up()
tablet tool is no longer making contact
void set_offset(int32_t x, int32_t y)
set surface position offset
std::function< void(zwp_tablet_pad_v2_t)> & on_pad_added()
new pad notification
short-lived, popup surfaces for menus
void set_feedback(uint32_t button, std::string description, uint32_t serial)
set compositor feedback
std::function< void(zwp_tablet_tool_v1_t)> & on_tool_added()
a new tool has been used with a tablet
factory for creating dmabuf-based wl_buffers
std::function< void(zxdg_toplevel_decoration_v1_mode)> & on_configure()
suggest a surface change
std::function< void()> & on_locked()
lock activation event
std::function< void(std::string)> & on_description()
human-readable description of this output
std::function< void(int32_t)> & on_rotation()
z-rotation change event
std::function< void(uint32_t)> & on_ping()
check if the client is alive
std::function< void(zwp_tablet_pad_strip_v2_t)> & on_strip()
strip announced
zwp_pointer_gesture_pinch_v1_t get_pinch_gesture(pointer_t pointer)
get pinch gesture
std::function< void(int32_t, int32_t)> & on_wheel()
Wheel delta event.
std::function< void(uint32_t, surface_t)> & on_leave()
enter event
std::function< void(uint32_t)> & on_modes()
mode-switch ability announced
zwp_input_timestamps_v1_t get_keyboard_timestamps(keyboard_t keyboard)
subscribe to high-resolution keyboard timestamp events
zwp_input_timestamps_v1_t get_pointer_timestamps(pointer_t pointer)
subscribe to high-resolution pointer timestamp events
void show_window_menu(seat_t seat, uint32_t serial, int32_t x, int32_t y)
show the window menu
std::function< void(uint32_t)> & on_buttons()
buttons announced
void set_parent_of(surface_t surface)
set as the parent of some surface
std::function< void(uint32_t, uint32_t)> & on_hardware_id_wacom()
hardware id notification in Wacom's format
std::function< void(uint32_t, zwp_tablet_v1_t, surface_t)> & on_proximity_in()
proximity in event
static const detail::bitfield< 10, 27 > completion
suggest word completions
std::function< void(double)> & on_angle()
angle changed
std::function< void(int32_t, int32_t)> & on_cursor_position()
set cursor to new position
std::function< void()> & on_close()
surface wants to be closed
void set_size(int32_t width, int32_t height)
set the size of the to-be positioned rectangle
std::function< void(zwp_tablet_pad_strip_v2_source)> & on_source()
strip event source
std::function< void()> & on_unconfined()
pointer unconfined
void create(int32_t width, int32_t height, uint32_t format, zwp_linux_buffer_params_v1_flags flags)
create a wl_buffer from the given dmabufs
void set_anchor(zxdg_positioner_v6_anchor anchor)
set anchor rectangle anchor edges
std::function< void(std::string)> & on_preferred_language()
std::function< void()> & on_active()
shortcuts are inhibited
compositor logical output region
std::function< void()> & on_unlocked()
lock deactivation event
std::function< void(std::string)> & on_path()
path to the device
std::function< void(uint32_t, uint32_t, zwp_tablet_pad_v2_button_state)> & on_button()
physical button state
controller object for graphic tablet devices
std::function< void(uint32_t)> & on_pressure()
pressure change event
std::function< void(uint32_t, uint32_t, surface_t, uint32_t)> & on_begin()
multi-finger swipe begin
std::function< void(uint32_t, zwp_text_input_v1_text_direction)> & on_text_direction()
text direction
void add(int fd, uint32_t plane_idx, uint32_t offset, uint32_t stride, uint32_t modifier_hi, uint32_t modifier_lo)
add a dmabuf to the temporary set
void set_cursor(uint32_t serial, surface_t surface, int32_t hotspot_x, int32_t hotspot_y)
set the tablet tool's surface
std::function< void(int32_t, uint32_t)> & on_delete_surrounding_text()
delete surrounding text
void set_surrounding_text(std::string text, uint32_t cursor, uint32_t anchor)
sets the surrounding text
static const detail::bitfield< 10, 27 > none
no special behavior
std::function< void(uint32_t, double, double)> & on_update()
multi-finger swipe motion
std::function< void()> & on_proximity_out()
proximity out event
zxdg_imported_v2_t import_toplevel(std::string handle)
import a toplevel surface
void set_surrounding_text(std::string text, int32_t cursor, int32_t anchor)
sets the surrounding text
void pong(uint32_t serial)
respond to a ping event
zwp_locked_pointer_v1_t lock_pointer(surface_t surface, pointer_t pointer, region_t region, zwp_pointer_constraints_v1_lifetime lifetime)
lock pointer to a position
parameters for creating a dmabuf-based wl_buffer
std::function< void(buffer_t)> & on_created()
buffer creation succeeded
std::function< void()> & on_done()
tool description events sequence complete
std::function< void(zwp_fullscreen_shell_v1_capability)> & on_capability()
advertises a capability of the compositor
std::function< void()> & on_inactive()
shortcuts are restored
std::function< void(uint32_t)> & on_down()
tablet tool is making contact
zwp_primary_selection_source_v1_t create_source()
create a new primary selection source
controller object for graphic tablet devices
void set_feedback(std::string description, uint32_t serial)
set compositor feedback
controller object for graphic tablet devices of a seat
desktop user interface surface base interface
zwp_text_input_v1_t create_text_input()
create text input
void present_surface(surface_t surface, zwp_fullscreen_shell_v1_present_method method, output_t output)
present surface for display
std::function< void(zwp_text_input_v1_content_hint, zwp_text_input_v1_content_purpose)> & on_content_type()
static const detail::bitfield< 10, 27 > lowercase
prefer lowercase letters
std::function< void(zwp_tablet_tool_v2_type)> & on_type()
tool type
void resize(seat_t seat, uint32_t serial, zxdg_toplevel_v6_resize_edge edges)
start an interactive resize
void preedit_string(uint32_t serial, std::string text, std::string commit)
pre-edit string
std::function< void(uint32_t)> & on_frame()
frame event
std::function< void(uint32_t)> & on_configure()
suggest a surface change
std::function< void(uint32_t, uint32_t, double, double, double, double)> & on_relative_motion()
relative pointer motion
std::function< void(std::string, int32_t, int32_t)> & on_preedit_string()
pre-edit
std::function< void(double, double)> & on_motion()
motion event
wl_proxy * c_ptr() const
Get a pointer to the underlying C struct.
std::function< void(uint32_t, uint32_t, surface_t, uint32_t)> & on_begin()
multi-finger pinch begin
std::function< void()> & on_done()
all information about the output have been sent
static const detail::bitfield< 10, 27 > titlecase
prefer casing for titles and headings (can be language dependent)
Represents a protocol object on the client side.
std::function< void(std::string)> & on_path()
path to the device
controller object for graphic tablet devices of a seat
std::function< void(std::string)> & on_name()
name of this output
receive relative pointer motion events
std::function< void(uint32_t)> & on_frame()
frame event
void set_cursor(uint32_t serial, surface_t surface, int32_t hotspot_x, int32_t hotspot_y)
set the tablet tool's surface
std::function< void(uint32_t)> & on_frame()
end of a ring event sequence
std::function< void()> & on_leave()
leave event
std::function< void()> & on_removed()
pad removed event
void set_minimized()
set the window as minimized
std::function< void()> & on_done()
tablet description events sequence complete
std::function< void(surface_t)> & on_enter()
enter event
void invoke_action(uint32_t button, uint32_t index)
zwp_keyboard_shortcuts_inhibitor_v1_t inhibit_shortcuts(surface_t surface, seat_t seat)
create a new keyboard shortcuts inhibitor object
void set_cursor_position_hint(double surface_x, double surface_y)
set the pointer cursor position hint
bool proxy_has_object() const
Check whether this wrapper actually wraps an object.
context object for high-resolution input timestamps
void set_cursor_rectangle(int32_t x, int32_t y, int32_t width, int32_t height)
set cursor position
std::function< void(zwp_tablet_tool_v1_capability)> & on_capability()
tool capability notification
zwp_text_input_v3_t get_text_input(seat_t seat)
create a new text input object
zwp_input_panel_surface_v1_t get_input_panel_surface(surface_t surface)
std::function< void()> & on_immediate_release()
release buffer immediately
std::function< void(uint32_t, uint32_t, uint32_t)> & on_timestamp()
high-resolution timestamp event
zwp_pointer_gesture_swipe_v1_t get_swipe_gesture(pointer_t pointer)
get swipe gesture
a set of buttons, rings and strips
zxdg_imported_v1_t import(std::string handle)
import a surface
std::function< void(uint32_t, uint32_t, zwp_tablet_tool_v2_button_state)> & on_button()
button event
std::function< void(zwp_input_method_context_v1_t)> & on_activate()
activate event
std::function< void()> & on_cancelled()
request for primary selection contents was canceled
void ack_configure(uint32_t serial)
ack a configure event
static const detail::bitfield< 10, 27 > sensitive_data
typed text should not be stored
context object for keyboard shortcuts inhibitor
std::function< void(zwp_tablet_pad_ring_v2_t)> & on_ring()
ring announced
std::function< void()> & on_up()
tablet tool is no longer making contact
std::function< void(std::string)> & on_handle()
the exported surface handle
static const detail::bitfield< 10, 27 > auto_capitalization
switch to uppercase letters at the start of a sentence
zwp_primary_selection_device_v1_t get_device(seat_t seat)
create a new primary selection device
std::function< void(double, double)> & on_tilt()
tilt change event
std::function< void(std::string)> & on_commit_string()
text commit
zwp_tablet_seat_v1_t get_tablet_seat(seat_t seat)
get the tablet seat
std::function< void(uint32_t, double, double, double, double)> & on_update()
multi-finger pinch motion
std::function< void(int32_t, int32_t)> & on_logical_position()
position of the output within the global compositor space
std::function< void(std::string)> & on_name()
tablet device name
std::function< void(uint32_t, uint32_t, int32_t)> & on_end()
multi-finger pinch end
offer to replace the contents of the primary selection
std::function< void()> & on_destroyed()
the imported surface handle has been destroyed
wrapper_type get_wrapper_type() const
Get the type of a proxy object.
zwp_linux_buffer_release_v1_t get_release()
release fence for last-attached buffer
std::function< void(uint32_t, uint32_t, int32_t)> & on_end()
multi-finger swipe end
std::function< void(uint32_t, uint32_t)> & on_delete_surrounding_text()
delete surrounding text
std::function< void(int32_t)> & on_slider()
Slider position change event.
zxdg_popup_v6_t get_popup(zxdg_surface_v6_t parent, zxdg_positioner_v6_t positioner)
assign the xdg_popup surface role
static const detail::bitfield< 10, 27 > latin
just Latin characters should be entered
void set_cursor_rectangle(int32_t x, int32_t y, int32_t width, int32_t height)
uint32_t get_version() const
Get the protocol object version of a proxy object.
interface for implementing keyboards
std::function< void(double)> & on_rotation()
z-rotation change event
std::function< void(std::string, uint32_t, uint32_t)> & on_surrounding_text()
surrounding text event
std::function< void(uint32_t, zwp_tablet_v2_t, surface_t)> & on_enter()
enter event
void grab(seat_t seat, uint32_t serial)
make the popup take an explicit grab
void set_content_type(zwp_text_input_v1_content_hint hint, zwp_text_input_v1_content_purpose purpose)
set content purpose and hint
static const detail::bitfield< 10, 27 > multiline
the text input is multiline
static const detail::bitfield< 10, 27 > hidden_text
characters should be hidden
zxdg_positioner_v6_t create_positioner()
create a positioner object
void set_content_type(zwp_text_input_v3_content_hint hint, zwp_text_input_v3_content_purpose purpose)
set content purpose and hint
std::function< void()> & on_done()
tablet group description events sequence complete
void language(uint32_t serial, std::string language)
static constexpr std::uint32_t create_immed_since_version
Minimum protocol version required for the create_immed function.
std::function< void(int32_t, int32_t)> & on_logical_size()
size of the output in the global compositor space
zwp_idle_inhibitor_v1_t create_inhibitor(surface_t surface)
create a new inhibitor object
zxdg_exported_v1_t _export(surface_t surface)
export a surface
std::function< void(std::string)> & on_offer()
advertise offered mime type
std::function< void(uint32_t)> & on_format()
supported buffer format
std::function< void(uint32_t)> & on_distance()
distance change event
std::function< void(int32_t)> & on_slider()
Slider position change event.
zwp_input_timestamps_v1_t get_touch_timestamps(touch_t touch)
subscribe to high-resolution touch timestamp events
zwp_tablet_seat_v2_t get_tablet_seat(seat_t seat)
get the tablet seat
std::function< void()> & on_stop()
interaction stopped
std::function< void(zwp_tablet_pad_ring_v2_source)> & on_source()
ring event source
static const detail::bitfield< 10, 27 > uppercase
prefer uppercase letters
void move(seat_t seat, uint32_t serial)
start an interactive move
std::function< void(double, int32_t)> & on_wheel()
Wheel delta event.
void enable()
Request text input to be enabled.
std::function< void(uint32_t, uint32_t)> & on_id()
tablet device USB vendor/product id
void set_preferred_language(std::string language)
sets preferred language
zxdg_surface_v6_t get_xdg_surface(surface_t surface)
create a shell surface from a surface
void set_mode(zxdg_toplevel_decoration_v1_mode mode)
set the decoration mode
std::function< void(surface_t)> & on_enter()
enter event
void preedit_styling(uint32_t index, uint32_t length, zwp_text_input_v1_preedit_style style)
pre-edit styling
std::function< void(uint32_t, std::string)> & on_language()
language
std::function< void(zwp_tablet_tool_v2_capability)> & on_capability()
tool capability notification
void modifiers(uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
forward modifiers event
std::function< void()> & on_proximity_out()
proximity out event
std::function< void(uint32_t)> & on_distance()
distance change event
std::function< void(double, double)> & on_motion()
motion event
std::function< void(int32_t, int32_t, int32_t, int32_t)> & on_configure()
configure the popup surface
std::function< void()> & on_done()
tool description events sequence complete
std::function< void(uint32_t, uint32_t, zwp_text_input_v1_preedit_style)> & on_preedit_styling()
pre-edit styling
void set_app_id(std::string app_id)
set application ID
void delete_surrounding_text(int32_t index, uint32_t length)
delete text
std::function< void()> & on_confined()
pointer confined
std::function< void(uint32_t)> & on_input_panel_state()
state of the input panel
touchscreen input device