| 1 |
/* AUTOGENERATED, DO NOT EDIT DIRECTLY |
| 2 |
* See gtk-priv/README.md for more information |
| 3 |
* |
| 4 |
* This file is part of gtk-layer-shell |
| 5 |
* |
| 6 |
* Copyright (C) 2009 Carlos Garnacho <[email protected]> |
| 7 |
* Copyright © 2024 gtk-priv/scripts/code.py |
| 8 |
* |
| 9 |
* This program is free software; you can redistribute it and/or |
| 10 |
* modify it under the terms of the GNU Lesser General Public |
| 11 |
* License as published by the Free Software Foundation; either |
| 12 |
* version 3 of the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This program is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* Lesser General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU Lesser General Public License |
| 20 |
* along with this program; if not, write to the Free Software Foundation, |
| 21 |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef GDK_WAYLAND_SEAT_PRIV_H |
| 25 |
#define GDK_WAYLAND_SEAT_PRIV_H |
| 26 |
|
| 27 |
#include "common.h" |
| 28 |
|
| 29 |
typedef struct _GdkWaylandSeat GdkWaylandSeat; |
| 30 |
|
| 31 |
// Version ID 0 |
| 32 |
// Valid for GTK v3.22.0 - v3.22.8 |
| 33 |
struct _GdkWaylandSeat_v3_22_0 |
| 34 |
{ |
| 35 |
GdkSeat parent_instance; |
| 36 |
guint32 id; |
| 37 |
struct wl_seat *wl_seat; |
| 38 |
struct wl_pointer *wl_pointer; |
| 39 |
struct wl_keyboard *wl_keyboard; |
| 40 |
struct wl_touch *wl_touch; |
| 41 |
struct zwp_pointer_gesture_swipe_v1 *wp_pointer_gesture_swipe; |
| 42 |
struct zwp_pointer_gesture_pinch_v1 *wp_pointer_gesture_pinch; |
| 43 |
struct zwp_tablet_seat_v2 *wp_tablet_seat; |
| 44 |
GdkDisplay *display; |
| 45 |
GdkDeviceManager *device_manager; |
| 46 |
GdkDevice *master_pointer; |
| 47 |
GdkDevice *master_keyboard; |
| 48 |
GdkDevice *pointer; |
| 49 |
GdkDevice *wheel_scrolling; |
| 50 |
GdkDevice *finger_scrolling; |
| 51 |
GdkDevice *continuous_scrolling; |
| 52 |
GdkDevice *keyboard; |
| 53 |
GdkDevice *touch_master; |
| 54 |
GdkDevice *touch; |
| 55 |
GdkCursor *cursor; |
| 56 |
GdkKeymap *keymap; |
| 57 |
GHashTable *touches; |
| 58 |
GList *tablets; |
| 59 |
GList *tablet_tools; |
| 60 |
GList *tablet_pads; |
| 61 |
struct _GdkWaylandPointerData_v3_22_0 pointer_info; |
| 62 |
struct _GdkWaylandPointerData_v3_22_0 touch_info; |
| 63 |
GdkModifierType key_modifiers; |
| 64 |
GdkWindow *keyboard_focus; |
| 65 |
GdkAtom pending_selection; |
| 66 |
GdkWindow *grab_window; |
| 67 |
uint32_t grab_time; |
| 68 |
gboolean have_server_repeat; |
| 69 |
uint32_t server_repeat_rate; |
| 70 |
uint32_t server_repeat_delay; |
| 71 |
struct wl_callback *repeat_callback; |
| 72 |
guint32 repeat_timer; |
| 73 |
guint32 repeat_key; |
| 74 |
guint32 repeat_count; |
| 75 |
gint64 repeat_deadline; |
| 76 |
GSettings *keyboard_settings; |
| 77 |
uint32_t keyboard_time; |
| 78 |
uint32_t keyboard_key_serial; |
| 79 |
struct gtk_primary_selection_device *primary_data_device; |
| 80 |
struct wl_data_device *data_device; |
| 81 |
GdkDragContext *drop_context; |
| 82 |
GdkWindow *foreign_dnd_window; |
| 83 |
guint gesture_n_fingers; |
| 84 |
gdouble gesture_scale; |
| 85 |
GdkCursor *grab_cursor; |
| 86 |
}; |
| 87 |
|
| 88 |
// Version ID 1 |
| 89 |
// Diff from previous version: |
| 90 |
// + gint32 nkeys; |
| 91 |
// Valid for GTK v3.22.9 - v3.22.15 |
| 92 |
struct _GdkWaylandSeat_v3_22_9 |
| 93 |
{ |
| 94 |
GdkSeat parent_instance; |
| 95 |
guint32 id; |
| 96 |
struct wl_seat *wl_seat; |
| 97 |
struct wl_pointer *wl_pointer; |
| 98 |
struct wl_keyboard *wl_keyboard; |
| 99 |
struct wl_touch *wl_touch; |
| 100 |
struct zwp_pointer_gesture_swipe_v1 *wp_pointer_gesture_swipe; |
| 101 |
struct zwp_pointer_gesture_pinch_v1 *wp_pointer_gesture_pinch; |
| 102 |
struct zwp_tablet_seat_v2 *wp_tablet_seat; |
| 103 |
GdkDisplay *display; |
| 104 |
GdkDeviceManager *device_manager; |
| 105 |
GdkDevice *master_pointer; |
| 106 |
GdkDevice *master_keyboard; |
| 107 |
GdkDevice *pointer; |
| 108 |
GdkDevice *wheel_scrolling; |
| 109 |
GdkDevice *finger_scrolling; |
| 110 |
GdkDevice *continuous_scrolling; |
| 111 |
GdkDevice *keyboard; |
| 112 |
GdkDevice *touch_master; |
| 113 |
GdkDevice *touch; |
| 114 |
GdkCursor *cursor; |
| 115 |
GdkKeymap *keymap; |
| 116 |
GHashTable *touches; |
| 117 |
GList *tablets; |
| 118 |
GList *tablet_tools; |
| 119 |
GList *tablet_pads; |
| 120 |
struct _GdkWaylandPointerData_v3_22_0 pointer_info; |
| 121 |
struct _GdkWaylandPointerData_v3_22_0 touch_info; |
| 122 |
GdkModifierType key_modifiers; |
| 123 |
GdkWindow *keyboard_focus; |
| 124 |
GdkAtom pending_selection; |
| 125 |
GdkWindow *grab_window; |
| 126 |
uint32_t grab_time; |
| 127 |
gboolean have_server_repeat; |
| 128 |
uint32_t server_repeat_rate; |
| 129 |
uint32_t server_repeat_delay; |
| 130 |
struct wl_callback *repeat_callback; |
| 131 |
guint32 repeat_timer; |
| 132 |
guint32 repeat_key; |
| 133 |
guint32 repeat_count; |
| 134 |
gint64 repeat_deadline; |
| 135 |
gint32 nkeys; |
| 136 |
GSettings *keyboard_settings; |
| 137 |
uint32_t keyboard_time; |
| 138 |
uint32_t keyboard_key_serial; |
| 139 |
struct gtk_primary_selection_device *primary_data_device; |
| 140 |
struct wl_data_device *data_device; |
| 141 |
GdkDragContext *drop_context; |
| 142 |
GdkWindow *foreign_dnd_window; |
| 143 |
guint gesture_n_fingers; |
| 144 |
gdouble gesture_scale; |
| 145 |
GdkCursor *grab_cursor; |
| 146 |
}; |
| 147 |
|
| 148 |
// Version ID 2 |
| 149 |
// Diff from previous version: |
| 150 |
// - gint32 nkeys; |
| 151 |
// Valid for GTK v3.22.16 - v3.24.23 |
| 152 |
struct _GdkWaylandSeat_v3_22_16 |
| 153 |
{ |
| 154 |
GdkSeat parent_instance; |
| 155 |
guint32 id; |
| 156 |
struct wl_seat *wl_seat; |
| 157 |
struct wl_pointer *wl_pointer; |
| 158 |
struct wl_keyboard *wl_keyboard; |
| 159 |
struct wl_touch *wl_touch; |
| 160 |
struct zwp_pointer_gesture_swipe_v1 *wp_pointer_gesture_swipe; |
| 161 |
struct zwp_pointer_gesture_pinch_v1 *wp_pointer_gesture_pinch; |
| 162 |
struct zwp_tablet_seat_v2 *wp_tablet_seat; |
| 163 |
GdkDisplay *display; |
| 164 |
GdkDeviceManager *device_manager; |
| 165 |
GdkDevice *master_pointer; |
| 166 |
GdkDevice *master_keyboard; |
| 167 |
GdkDevice *pointer; |
| 168 |
GdkDevice *wheel_scrolling; |
| 169 |
GdkDevice *finger_scrolling; |
| 170 |
GdkDevice *continuous_scrolling; |
| 171 |
GdkDevice *keyboard; |
| 172 |
GdkDevice *touch_master; |
| 173 |
GdkDevice *touch; |
| 174 |
GdkCursor *cursor; |
| 175 |
GdkKeymap *keymap; |
| 176 |
GHashTable *touches; |
| 177 |
GList *tablets; |
| 178 |
GList *tablet_tools; |
| 179 |
GList *tablet_pads; |
| 180 |
struct _GdkWaylandPointerData_v3_22_0 pointer_info; |
| 181 |
struct _GdkWaylandPointerData_v3_22_0 touch_info; |
| 182 |
GdkModifierType key_modifiers; |
| 183 |
GdkWindow *keyboard_focus; |
| 184 |
GdkAtom pending_selection; |
| 185 |
GdkWindow *grab_window; |
| 186 |
uint32_t grab_time; |
| 187 |
gboolean have_server_repeat; |
| 188 |
uint32_t server_repeat_rate; |
| 189 |
uint32_t server_repeat_delay; |
| 190 |
struct wl_callback *repeat_callback; |
| 191 |
guint32 repeat_timer; |
| 192 |
guint32 repeat_key; |
| 193 |
guint32 repeat_count; |
| 194 |
gint64 repeat_deadline; |
| 195 |
GSettings *keyboard_settings; |
| 196 |
uint32_t keyboard_time; |
| 197 |
uint32_t keyboard_key_serial; |
| 198 |
struct gtk_primary_selection_device *primary_data_device; |
| 199 |
struct wl_data_device *data_device; |
| 200 |
GdkDragContext *drop_context; |
| 201 |
GdkWindow *foreign_dnd_window; |
| 202 |
guint gesture_n_fingers; |
| 203 |
gdouble gesture_scale; |
| 204 |
GdkCursor *grab_cursor; |
| 205 |
}; |
| 206 |
|
| 207 |
// Version ID 3 |
| 208 |
// Diff from previous version: |
| 209 |
// - struct gtk_primary_selection_device *primary_data_device; |
| 210 |
// + struct gtk_primary_selection_device *gtk_primary_data_device; |
| 211 |
// + struct zwp_primary_selection_device_v1 *zwp_primary_data_device_v1; |
| 212 |
// Valid for GTK v3.24.24 - v3.24.40 (unreleased) |
| 213 |
struct _GdkWaylandSeat_v3_24_24 |
| 214 |
{ |
| 215 |
GdkSeat parent_instance; |
| 216 |
guint32 id; |
| 217 |
struct wl_seat *wl_seat; |
| 218 |
struct wl_pointer *wl_pointer; |
| 219 |
struct wl_keyboard *wl_keyboard; |
| 220 |
struct wl_touch *wl_touch; |
| 221 |
struct zwp_pointer_gesture_swipe_v1 *wp_pointer_gesture_swipe; |
| 222 |
struct zwp_pointer_gesture_pinch_v1 *wp_pointer_gesture_pinch; |
| 223 |
struct zwp_tablet_seat_v2 *wp_tablet_seat; |
| 224 |
GdkDisplay *display; |
| 225 |
GdkDeviceManager *device_manager; |
| 226 |
GdkDevice *master_pointer; |
| 227 |
GdkDevice *master_keyboard; |
| 228 |
GdkDevice *pointer; |
| 229 |
GdkDevice *wheel_scrolling; |
| 230 |
GdkDevice *finger_scrolling; |
| 231 |
GdkDevice *continuous_scrolling; |
| 232 |
GdkDevice *keyboard; |
| 233 |
GdkDevice *touch_master; |
| 234 |
GdkDevice *touch; |
| 235 |
GdkCursor *cursor; |
| 236 |
GdkKeymap *keymap; |
| 237 |
GHashTable *touches; |
| 238 |
GList *tablets; |
| 239 |
GList *tablet_tools; |
| 240 |
GList *tablet_pads; |
| 241 |
struct _GdkWaylandPointerData_v3_22_0 pointer_info; |
| 242 |
struct _GdkWaylandPointerData_v3_22_0 touch_info; |
| 243 |
GdkModifierType key_modifiers; |
| 244 |
GdkWindow *keyboard_focus; |
| 245 |
GdkAtom pending_selection; |
| 246 |
GdkWindow *grab_window; |
| 247 |
uint32_t grab_time; |
| 248 |
gboolean have_server_repeat; |
| 249 |
uint32_t server_repeat_rate; |
| 250 |
uint32_t server_repeat_delay; |
| 251 |
struct wl_callback *repeat_callback; |
| 252 |
guint32 repeat_timer; |
| 253 |
guint32 repeat_key; |
| 254 |
guint32 repeat_count; |
| 255 |
gint64 repeat_deadline; |
| 256 |
GSettings *keyboard_settings; |
| 257 |
uint32_t keyboard_time; |
| 258 |
uint32_t keyboard_key_serial; |
| 259 |
struct gtk_primary_selection_device *gtk_primary_data_device; |
| 260 |
struct zwp_primary_selection_device_v1 *zwp_primary_data_device_v1; |
| 261 |
struct wl_data_device *data_device; |
| 262 |
GdkDragContext *drop_context; |
| 263 |
GdkWindow *foreign_dnd_window; |
| 264 |
guint gesture_n_fingers; |
| 265 |
gdouble gesture_scale; |
| 266 |
GdkCursor *grab_cursor; |
| 267 |
}; |
| 268 |
|
| 269 |
// For internal use only |
| 270 |
int gdk_wayland_seat_priv_get_version_id() { |
| 271 |
static int version_id = -1; |
| 272 |
|
| 273 |
if (version_id == -1) { |
| 274 |
gtk_priv_assert_gtk_version_valid(); |
| 275 |
int combo = gtk_get_minor_version() * 1000 + gtk_get_micro_version(); |
| 276 |
|
| 277 |
switch (combo) { |
| 278 |
case 22000: |
| 279 |
case 22001: |
| 280 |
case 22002: |
| 281 |
case 22003: |
| 282 |
case 22004: |
| 283 |
case 22005: |
| 284 |
case 22006: |
| 285 |
case 22007: |
| 286 |
case 22008: |
| 287 |
case 22009: |
| 288 |
case 22010: |
| 289 |
case 22011: |
| 290 |
case 22012: |
| 291 |
case 22013: |
| 292 |
case 22014: |
| 293 |
case 22015: |
| 294 |
case 22016: |
| 295 |
case 22017: |
| 296 |
case 22018: |
| 297 |
case 22019: |
| 298 |
case 22020: |
| 299 |
case 22021: |
| 300 |
case 22022: |
| 301 |
case 22023: |
| 302 |
case 22024: |
| 303 |
case 22025: |
| 304 |
case 22026: |
| 305 |
case 22027: |
| 306 |
case 22028: |
| 307 |
case 22029: |
| 308 |
case 22030: |
| 309 |
case 23000: |
| 310 |
case 23001: |
| 311 |
case 23002: |
| 312 |
case 23003: |
| 313 |
case 24000: |
| 314 |
case 24001: |
| 315 |
case 24002: |
| 316 |
case 24003: |
| 317 |
case 24004: |
| 318 |
case 24005: |
| 319 |
case 24006: |
| 320 |
case 24007: |
| 321 |
case 24008: |
| 322 |
case 24009: |
| 323 |
case 24010: |
| 324 |
case 24011: |
| 325 |
case 24012: |
| 326 |
case 24013: |
| 327 |
case 24014: |
| 328 |
case 24015: |
| 329 |
case 24016: |
| 330 |
case 24017: |
| 331 |
case 24018: |
| 332 |
case 24020: |
| 333 |
case 24021: |
| 334 |
case 24022: |
| 335 |
case 24023: |
| 336 |
case 24024: |
| 337 |
case 24025: |
| 338 |
case 24026: |
| 339 |
case 24027: |
| 340 |
case 24028: |
| 341 |
case 24029: |
| 342 |
case 24030: |
| 343 |
case 24031: |
| 344 |
case 24032: |
| 345 |
case 24033: |
| 346 |
case 24034: |
| 347 |
case 24035: |
| 348 |
case 24036: |
| 349 |
case 24037: |
| 350 |
case 24038: |
| 351 |
case 24039: |
| 352 |
break; |
| 353 |
|
| 354 |
default: |
| 355 |
gtk_priv_warn_gtk_version_may_be_unsupported(); |
| 356 |
} |
| 357 |
|
| 358 |
if (combo >= 24024) { |
| 359 |
version_id = 3; |
| 360 |
} else if (combo >= 22016) { |
| 361 |
version_id = 2; |
| 362 |
} else if (combo >= 22009) { |
| 363 |
version_id = 1; |
| 364 |
} else { |
| 365 |
version_id = 0; |
| 366 |
} |
| 367 |
} |
| 368 |
|
| 369 |
return version_id; |
| 370 |
} |
| 371 |
|
| 372 |
// GdkWaylandSeat::parent_instance |
| 373 |
|
| 374 |
GdkSeat * gdk_wayland_seat_priv_get_parent_instance_ptr(GdkWaylandSeat * self) { |
| 375 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 376 |
case 0: return (GdkSeat *)&((struct _GdkWaylandSeat_v3_22_0*)self)->parent_instance; |
| 377 |
case 1: return (GdkSeat *)&((struct _GdkWaylandSeat_v3_22_9*)self)->parent_instance; |
| 378 |
case 2: return (GdkSeat *)&((struct _GdkWaylandSeat_v3_22_16*)self)->parent_instance; |
| 379 |
case 3: return (GdkSeat *)&((struct _GdkWaylandSeat_v3_24_24*)self)->parent_instance; |
| 380 |
default: g_error("Invalid version ID"); g_abort(); |
| 381 |
} |
| 382 |
} |
| 383 |
|
| 384 |
// GdkWaylandSeat::id |
| 385 |
|
| 386 |
guint32 * gdk_wayland_seat_priv_get_id_ptr(GdkWaylandSeat * self) { |
| 387 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 388 |
case 0: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_0*)self)->id; |
| 389 |
case 1: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->id; |
| 390 |
case 2: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_16*)self)->id; |
| 391 |
case 3: return (guint32 *)&((struct _GdkWaylandSeat_v3_24_24*)self)->id; |
| 392 |
default: g_error("Invalid version ID"); g_abort(); |
| 393 |
} |
| 394 |
} |
| 395 |
|
| 396 |
// GdkWaylandSeat::wl_seat |
| 397 |
|
| 398 |
struct wl_seat * gdk_wayland_seat_priv_get_wl_seat(GdkWaylandSeat * self) { |
| 399 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 400 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_seat; |
| 401 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_seat; |
| 402 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_seat; |
| 403 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_seat; |
| 404 |
default: g_error("Invalid version ID"); g_abort(); |
| 405 |
} |
| 406 |
} |
| 407 |
|
| 408 |
void gdk_wayland_seat_priv_set_wl_seat(GdkWaylandSeat * self, struct wl_seat * wl_seat) { |
| 409 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 410 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_seat = wl_seat; break; |
| 411 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_seat = wl_seat; break; |
| 412 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_seat = wl_seat; break; |
| 413 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_seat = wl_seat; break; |
| 414 |
default: g_error("Invalid version ID"); g_abort(); |
| 415 |
} |
| 416 |
} |
| 417 |
|
| 418 |
// GdkWaylandSeat::wl_pointer |
| 419 |
|
| 420 |
struct wl_pointer * gdk_wayland_seat_priv_get_wl_pointer(GdkWaylandSeat * self) { |
| 421 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 422 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_pointer; |
| 423 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_pointer; |
| 424 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_pointer; |
| 425 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_pointer; |
| 426 |
default: g_error("Invalid version ID"); g_abort(); |
| 427 |
} |
| 428 |
} |
| 429 |
|
| 430 |
void gdk_wayland_seat_priv_set_wl_pointer(GdkWaylandSeat * self, struct wl_pointer * wl_pointer) { |
| 431 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 432 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_pointer = wl_pointer; break; |
| 433 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_pointer = wl_pointer; break; |
| 434 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_pointer = wl_pointer; break; |
| 435 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_pointer = wl_pointer; break; |
| 436 |
default: g_error("Invalid version ID"); g_abort(); |
| 437 |
} |
| 438 |
} |
| 439 |
|
| 440 |
// GdkWaylandSeat::wl_keyboard |
| 441 |
|
| 442 |
struct wl_keyboard * gdk_wayland_seat_priv_get_wl_keyboard(GdkWaylandSeat * self) { |
| 443 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 444 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_keyboard; |
| 445 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_keyboard; |
| 446 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_keyboard; |
| 447 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_keyboard; |
| 448 |
default: g_error("Invalid version ID"); g_abort(); |
| 449 |
} |
| 450 |
} |
| 451 |
|
| 452 |
void gdk_wayland_seat_priv_set_wl_keyboard(GdkWaylandSeat * self, struct wl_keyboard * wl_keyboard) { |
| 453 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 454 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_keyboard = wl_keyboard; break; |
| 455 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_keyboard = wl_keyboard; break; |
| 456 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_keyboard = wl_keyboard; break; |
| 457 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_keyboard = wl_keyboard; break; |
| 458 |
default: g_error("Invalid version ID"); g_abort(); |
| 459 |
} |
| 460 |
} |
| 461 |
|
| 462 |
// GdkWaylandSeat::wl_touch |
| 463 |
|
| 464 |
struct wl_touch * gdk_wayland_seat_priv_get_wl_touch(GdkWaylandSeat * self) { |
| 465 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 466 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_touch; |
| 467 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_touch; |
| 468 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_touch; |
| 469 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_touch; |
| 470 |
default: g_error("Invalid version ID"); g_abort(); |
| 471 |
} |
| 472 |
} |
| 473 |
|
| 474 |
void gdk_wayland_seat_priv_set_wl_touch(GdkWaylandSeat * self, struct wl_touch * wl_touch) { |
| 475 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 476 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wl_touch = wl_touch; break; |
| 477 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wl_touch = wl_touch; break; |
| 478 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wl_touch = wl_touch; break; |
| 479 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wl_touch = wl_touch; break; |
| 480 |
default: g_error("Invalid version ID"); g_abort(); |
| 481 |
} |
| 482 |
} |
| 483 |
|
| 484 |
// GdkWaylandSeat::wp_pointer_gesture_swipe |
| 485 |
|
| 486 |
struct zwp_pointer_gesture_swipe_v1 * gdk_wayland_seat_priv_get_wp_pointer_gesture_swipe(GdkWaylandSeat * self) { |
| 487 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 488 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_pointer_gesture_swipe; |
| 489 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_pointer_gesture_swipe; |
| 490 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_pointer_gesture_swipe; |
| 491 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_pointer_gesture_swipe; |
| 492 |
default: g_error("Invalid version ID"); g_abort(); |
| 493 |
} |
| 494 |
} |
| 495 |
|
| 496 |
void gdk_wayland_seat_priv_set_wp_pointer_gesture_swipe(GdkWaylandSeat * self, struct zwp_pointer_gesture_swipe_v1 * wp_pointer_gesture_swipe) { |
| 497 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 498 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_pointer_gesture_swipe = wp_pointer_gesture_swipe; break; |
| 499 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_pointer_gesture_swipe = wp_pointer_gesture_swipe; break; |
| 500 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_pointer_gesture_swipe = wp_pointer_gesture_swipe; break; |
| 501 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_pointer_gesture_swipe = wp_pointer_gesture_swipe; break; |
| 502 |
default: g_error("Invalid version ID"); g_abort(); |
| 503 |
} |
| 504 |
} |
| 505 |
|
| 506 |
// GdkWaylandSeat::wp_pointer_gesture_pinch |
| 507 |
|
| 508 |
struct zwp_pointer_gesture_pinch_v1 * gdk_wayland_seat_priv_get_wp_pointer_gesture_pinch(GdkWaylandSeat * self) { |
| 509 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 510 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_pointer_gesture_pinch; |
| 511 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_pointer_gesture_pinch; |
| 512 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_pointer_gesture_pinch; |
| 513 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_pointer_gesture_pinch; |
| 514 |
default: g_error("Invalid version ID"); g_abort(); |
| 515 |
} |
| 516 |
} |
| 517 |
|
| 518 |
void gdk_wayland_seat_priv_set_wp_pointer_gesture_pinch(GdkWaylandSeat * self, struct zwp_pointer_gesture_pinch_v1 * wp_pointer_gesture_pinch) { |
| 519 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 520 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_pointer_gesture_pinch = wp_pointer_gesture_pinch; break; |
| 521 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_pointer_gesture_pinch = wp_pointer_gesture_pinch; break; |
| 522 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_pointer_gesture_pinch = wp_pointer_gesture_pinch; break; |
| 523 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_pointer_gesture_pinch = wp_pointer_gesture_pinch; break; |
| 524 |
default: g_error("Invalid version ID"); g_abort(); |
| 525 |
} |
| 526 |
} |
| 527 |
|
| 528 |
// GdkWaylandSeat::wp_tablet_seat |
| 529 |
|
| 530 |
struct zwp_tablet_seat_v2 * gdk_wayland_seat_priv_get_wp_tablet_seat(GdkWaylandSeat * self) { |
| 531 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 532 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_tablet_seat; |
| 533 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_tablet_seat; |
| 534 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_tablet_seat; |
| 535 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_tablet_seat; |
| 536 |
default: g_error("Invalid version ID"); g_abort(); |
| 537 |
} |
| 538 |
} |
| 539 |
|
| 540 |
void gdk_wayland_seat_priv_set_wp_tablet_seat(GdkWaylandSeat * self, struct zwp_tablet_seat_v2 * wp_tablet_seat) { |
| 541 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 542 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wp_tablet_seat = wp_tablet_seat; break; |
| 543 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wp_tablet_seat = wp_tablet_seat; break; |
| 544 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wp_tablet_seat = wp_tablet_seat; break; |
| 545 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wp_tablet_seat = wp_tablet_seat; break; |
| 546 |
default: g_error("Invalid version ID"); g_abort(); |
| 547 |
} |
| 548 |
} |
| 549 |
|
| 550 |
// GdkWaylandSeat::display |
| 551 |
|
| 552 |
GdkDisplay * gdk_wayland_seat_priv_get_display(GdkWaylandSeat * self) { |
| 553 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 554 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->display; |
| 555 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->display; |
| 556 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->display; |
| 557 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->display; |
| 558 |
default: g_error("Invalid version ID"); g_abort(); |
| 559 |
} |
| 560 |
} |
| 561 |
|
| 562 |
void gdk_wayland_seat_priv_set_display(GdkWaylandSeat * self, GdkDisplay * display) { |
| 563 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 564 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->display = display; break; |
| 565 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->display = display; break; |
| 566 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->display = display; break; |
| 567 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->display = display; break; |
| 568 |
default: g_error("Invalid version ID"); g_abort(); |
| 569 |
} |
| 570 |
} |
| 571 |
|
| 572 |
// GdkWaylandSeat::device_manager |
| 573 |
|
| 574 |
GdkDeviceManager * gdk_wayland_seat_priv_get_device_manager(GdkWaylandSeat * self) { |
| 575 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 576 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->device_manager; |
| 577 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->device_manager; |
| 578 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->device_manager; |
| 579 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->device_manager; |
| 580 |
default: g_error("Invalid version ID"); g_abort(); |
| 581 |
} |
| 582 |
} |
| 583 |
|
| 584 |
void gdk_wayland_seat_priv_set_device_manager(GdkWaylandSeat * self, GdkDeviceManager * device_manager) { |
| 585 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 586 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->device_manager = device_manager; break; |
| 587 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->device_manager = device_manager; break; |
| 588 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->device_manager = device_manager; break; |
| 589 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->device_manager = device_manager; break; |
| 590 |
default: g_error("Invalid version ID"); g_abort(); |
| 591 |
} |
| 592 |
} |
| 593 |
|
| 594 |
// GdkWaylandSeat::master_pointer |
| 595 |
|
| 596 |
GdkDevice * gdk_wayland_seat_priv_get_master_pointer(GdkWaylandSeat * self) { |
| 597 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 598 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->master_pointer; |
| 599 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->master_pointer; |
| 600 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->master_pointer; |
| 601 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->master_pointer; |
| 602 |
default: g_error("Invalid version ID"); g_abort(); |
| 603 |
} |
| 604 |
} |
| 605 |
|
| 606 |
void gdk_wayland_seat_priv_set_master_pointer(GdkWaylandSeat * self, GdkDevice * master_pointer) { |
| 607 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 608 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->master_pointer = master_pointer; break; |
| 609 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->master_pointer = master_pointer; break; |
| 610 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->master_pointer = master_pointer; break; |
| 611 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->master_pointer = master_pointer; break; |
| 612 |
default: g_error("Invalid version ID"); g_abort(); |
| 613 |
} |
| 614 |
} |
| 615 |
|
| 616 |
// GdkWaylandSeat::master_keyboard |
| 617 |
|
| 618 |
GdkDevice * gdk_wayland_seat_priv_get_master_keyboard(GdkWaylandSeat * self) { |
| 619 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 620 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->master_keyboard; |
| 621 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->master_keyboard; |
| 622 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->master_keyboard; |
| 623 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->master_keyboard; |
| 624 |
default: g_error("Invalid version ID"); g_abort(); |
| 625 |
} |
| 626 |
} |
| 627 |
|
| 628 |
void gdk_wayland_seat_priv_set_master_keyboard(GdkWaylandSeat * self, GdkDevice * master_keyboard) { |
| 629 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 630 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->master_keyboard = master_keyboard; break; |
| 631 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->master_keyboard = master_keyboard; break; |
| 632 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->master_keyboard = master_keyboard; break; |
| 633 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->master_keyboard = master_keyboard; break; |
| 634 |
default: g_error("Invalid version ID"); g_abort(); |
| 635 |
} |
| 636 |
} |
| 637 |
|
| 638 |
// GdkWaylandSeat::pointer |
| 639 |
|
| 640 |
GdkDevice * gdk_wayland_seat_priv_get_pointer(GdkWaylandSeat * self) { |
| 641 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 642 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->pointer; |
| 643 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->pointer; |
| 644 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->pointer; |
| 645 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->pointer; |
| 646 |
default: g_error("Invalid version ID"); g_abort(); |
| 647 |
} |
| 648 |
} |
| 649 |
|
| 650 |
void gdk_wayland_seat_priv_set_pointer(GdkWaylandSeat * self, GdkDevice * pointer) { |
| 651 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 652 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->pointer = pointer; break; |
| 653 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->pointer = pointer; break; |
| 654 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->pointer = pointer; break; |
| 655 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->pointer = pointer; break; |
| 656 |
default: g_error("Invalid version ID"); g_abort(); |
| 657 |
} |
| 658 |
} |
| 659 |
|
| 660 |
// GdkWaylandSeat::wheel_scrolling |
| 661 |
|
| 662 |
GdkDevice * gdk_wayland_seat_priv_get_wheel_scrolling(GdkWaylandSeat * self) { |
| 663 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 664 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->wheel_scrolling; |
| 665 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->wheel_scrolling; |
| 666 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->wheel_scrolling; |
| 667 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->wheel_scrolling; |
| 668 |
default: g_error("Invalid version ID"); g_abort(); |
| 669 |
} |
| 670 |
} |
| 671 |
|
| 672 |
void gdk_wayland_seat_priv_set_wheel_scrolling(GdkWaylandSeat * self, GdkDevice * wheel_scrolling) { |
| 673 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 674 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->wheel_scrolling = wheel_scrolling; break; |
| 675 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->wheel_scrolling = wheel_scrolling; break; |
| 676 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->wheel_scrolling = wheel_scrolling; break; |
| 677 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->wheel_scrolling = wheel_scrolling; break; |
| 678 |
default: g_error("Invalid version ID"); g_abort(); |
| 679 |
} |
| 680 |
} |
| 681 |
|
| 682 |
// GdkWaylandSeat::finger_scrolling |
| 683 |
|
| 684 |
GdkDevice * gdk_wayland_seat_priv_get_finger_scrolling(GdkWaylandSeat * self) { |
| 685 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 686 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->finger_scrolling; |
| 687 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->finger_scrolling; |
| 688 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->finger_scrolling; |
| 689 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->finger_scrolling; |
| 690 |
default: g_error("Invalid version ID"); g_abort(); |
| 691 |
} |
| 692 |
} |
| 693 |
|
| 694 |
void gdk_wayland_seat_priv_set_finger_scrolling(GdkWaylandSeat * self, GdkDevice * finger_scrolling) { |
| 695 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 696 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->finger_scrolling = finger_scrolling; break; |
| 697 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->finger_scrolling = finger_scrolling; break; |
| 698 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->finger_scrolling = finger_scrolling; break; |
| 699 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->finger_scrolling = finger_scrolling; break; |
| 700 |
default: g_error("Invalid version ID"); g_abort(); |
| 701 |
} |
| 702 |
} |
| 703 |
|
| 704 |
// GdkWaylandSeat::continuous_scrolling |
| 705 |
|
| 706 |
GdkDevice * gdk_wayland_seat_priv_get_continuous_scrolling(GdkWaylandSeat * self) { |
| 707 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 708 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->continuous_scrolling; |
| 709 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->continuous_scrolling; |
| 710 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->continuous_scrolling; |
| 711 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->continuous_scrolling; |
| 712 |
default: g_error("Invalid version ID"); g_abort(); |
| 713 |
} |
| 714 |
} |
| 715 |
|
| 716 |
void gdk_wayland_seat_priv_set_continuous_scrolling(GdkWaylandSeat * self, GdkDevice * continuous_scrolling) { |
| 717 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 718 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->continuous_scrolling = continuous_scrolling; break; |
| 719 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->continuous_scrolling = continuous_scrolling; break; |
| 720 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->continuous_scrolling = continuous_scrolling; break; |
| 721 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->continuous_scrolling = continuous_scrolling; break; |
| 722 |
default: g_error("Invalid version ID"); g_abort(); |
| 723 |
} |
| 724 |
} |
| 725 |
|
| 726 |
// GdkWaylandSeat::keyboard |
| 727 |
|
| 728 |
GdkDevice * gdk_wayland_seat_priv_get_keyboard(GdkWaylandSeat * self) { |
| 729 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 730 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard; |
| 731 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard; |
| 732 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard; |
| 733 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard; |
| 734 |
default: g_error("Invalid version ID"); g_abort(); |
| 735 |
} |
| 736 |
} |
| 737 |
|
| 738 |
void gdk_wayland_seat_priv_set_keyboard(GdkWaylandSeat * self, GdkDevice * keyboard) { |
| 739 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 740 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard = keyboard; break; |
| 741 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard = keyboard; break; |
| 742 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard = keyboard; break; |
| 743 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard = keyboard; break; |
| 744 |
default: g_error("Invalid version ID"); g_abort(); |
| 745 |
} |
| 746 |
} |
| 747 |
|
| 748 |
// GdkWaylandSeat::touch_master |
| 749 |
|
| 750 |
GdkDevice * gdk_wayland_seat_priv_get_touch_master(GdkWaylandSeat * self) { |
| 751 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 752 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->touch_master; |
| 753 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->touch_master; |
| 754 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->touch_master; |
| 755 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->touch_master; |
| 756 |
default: g_error("Invalid version ID"); g_abort(); |
| 757 |
} |
| 758 |
} |
| 759 |
|
| 760 |
void gdk_wayland_seat_priv_set_touch_master(GdkWaylandSeat * self, GdkDevice * touch_master) { |
| 761 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 762 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->touch_master = touch_master; break; |
| 763 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->touch_master = touch_master; break; |
| 764 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->touch_master = touch_master; break; |
| 765 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->touch_master = touch_master; break; |
| 766 |
default: g_error("Invalid version ID"); g_abort(); |
| 767 |
} |
| 768 |
} |
| 769 |
|
| 770 |
// GdkWaylandSeat::touch |
| 771 |
|
| 772 |
GdkDevice * gdk_wayland_seat_priv_get_touch(GdkWaylandSeat * self) { |
| 773 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 774 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->touch; |
| 775 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->touch; |
| 776 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->touch; |
| 777 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->touch; |
| 778 |
default: g_error("Invalid version ID"); g_abort(); |
| 779 |
} |
| 780 |
} |
| 781 |
|
| 782 |
void gdk_wayland_seat_priv_set_touch(GdkWaylandSeat * self, GdkDevice * touch) { |
| 783 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 784 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->touch = touch; break; |
| 785 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->touch = touch; break; |
| 786 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->touch = touch; break; |
| 787 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->touch = touch; break; |
| 788 |
default: g_error("Invalid version ID"); g_abort(); |
| 789 |
} |
| 790 |
} |
| 791 |
|
| 792 |
// GdkWaylandSeat::cursor |
| 793 |
|
| 794 |
GdkCursor * gdk_wayland_seat_priv_get_cursor(GdkWaylandSeat * self) { |
| 795 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 796 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->cursor; |
| 797 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->cursor; |
| 798 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->cursor; |
| 799 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->cursor; |
| 800 |
default: g_error("Invalid version ID"); g_abort(); |
| 801 |
} |
| 802 |
} |
| 803 |
|
| 804 |
void gdk_wayland_seat_priv_set_cursor(GdkWaylandSeat * self, GdkCursor * cursor) { |
| 805 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 806 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->cursor = cursor; break; |
| 807 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->cursor = cursor; break; |
| 808 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->cursor = cursor; break; |
| 809 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->cursor = cursor; break; |
| 810 |
default: g_error("Invalid version ID"); g_abort(); |
| 811 |
} |
| 812 |
} |
| 813 |
|
| 814 |
// GdkWaylandSeat::keymap |
| 815 |
|
| 816 |
GdkKeymap * gdk_wayland_seat_priv_get_keymap(GdkWaylandSeat * self) { |
| 817 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 818 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keymap; |
| 819 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keymap; |
| 820 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keymap; |
| 821 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keymap; |
| 822 |
default: g_error("Invalid version ID"); g_abort(); |
| 823 |
} |
| 824 |
} |
| 825 |
|
| 826 |
void gdk_wayland_seat_priv_set_keymap(GdkWaylandSeat * self, GdkKeymap * keymap) { |
| 827 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 828 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keymap = keymap; break; |
| 829 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keymap = keymap; break; |
| 830 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keymap = keymap; break; |
| 831 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keymap = keymap; break; |
| 832 |
default: g_error("Invalid version ID"); g_abort(); |
| 833 |
} |
| 834 |
} |
| 835 |
|
| 836 |
// GdkWaylandSeat::touches |
| 837 |
|
| 838 |
GHashTable * gdk_wayland_seat_priv_get_touches(GdkWaylandSeat * self) { |
| 839 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 840 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->touches; |
| 841 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->touches; |
| 842 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->touches; |
| 843 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->touches; |
| 844 |
default: g_error("Invalid version ID"); g_abort(); |
| 845 |
} |
| 846 |
} |
| 847 |
|
| 848 |
void gdk_wayland_seat_priv_set_touches(GdkWaylandSeat * self, GHashTable * touches) { |
| 849 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 850 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->touches = touches; break; |
| 851 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->touches = touches; break; |
| 852 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->touches = touches; break; |
| 853 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->touches = touches; break; |
| 854 |
default: g_error("Invalid version ID"); g_abort(); |
| 855 |
} |
| 856 |
} |
| 857 |
|
| 858 |
// GdkWaylandSeat::tablets |
| 859 |
|
| 860 |
GList * gdk_wayland_seat_priv_get_tablets(GdkWaylandSeat * self) { |
| 861 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 862 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->tablets; |
| 863 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->tablets; |
| 864 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->tablets; |
| 865 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->tablets; |
| 866 |
default: g_error("Invalid version ID"); g_abort(); |
| 867 |
} |
| 868 |
} |
| 869 |
|
| 870 |
void gdk_wayland_seat_priv_set_tablets(GdkWaylandSeat * self, GList * tablets) { |
| 871 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 872 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->tablets = tablets; break; |
| 873 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->tablets = tablets; break; |
| 874 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->tablets = tablets; break; |
| 875 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->tablets = tablets; break; |
| 876 |
default: g_error("Invalid version ID"); g_abort(); |
| 877 |
} |
| 878 |
} |
| 879 |
|
| 880 |
// GdkWaylandSeat::tablet_tools |
| 881 |
|
| 882 |
GList * gdk_wayland_seat_priv_get_tablet_tools(GdkWaylandSeat * self) { |
| 883 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 884 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->tablet_tools; |
| 885 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->tablet_tools; |
| 886 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->tablet_tools; |
| 887 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->tablet_tools; |
| 888 |
default: g_error("Invalid version ID"); g_abort(); |
| 889 |
} |
| 890 |
} |
| 891 |
|
| 892 |
void gdk_wayland_seat_priv_set_tablet_tools(GdkWaylandSeat * self, GList * tablet_tools) { |
| 893 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 894 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->tablet_tools = tablet_tools; break; |
| 895 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->tablet_tools = tablet_tools; break; |
| 896 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->tablet_tools = tablet_tools; break; |
| 897 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->tablet_tools = tablet_tools; break; |
| 898 |
default: g_error("Invalid version ID"); g_abort(); |
| 899 |
} |
| 900 |
} |
| 901 |
|
| 902 |
// GdkWaylandSeat::tablet_pads |
| 903 |
|
| 904 |
GList * gdk_wayland_seat_priv_get_tablet_pads(GdkWaylandSeat * self) { |
| 905 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 906 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->tablet_pads; |
| 907 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->tablet_pads; |
| 908 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->tablet_pads; |
| 909 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->tablet_pads; |
| 910 |
default: g_error("Invalid version ID"); g_abort(); |
| 911 |
} |
| 912 |
} |
| 913 |
|
| 914 |
void gdk_wayland_seat_priv_set_tablet_pads(GdkWaylandSeat * self, GList * tablet_pads) { |
| 915 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 916 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->tablet_pads = tablet_pads; break; |
| 917 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->tablet_pads = tablet_pads; break; |
| 918 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->tablet_pads = tablet_pads; break; |
| 919 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->tablet_pads = tablet_pads; break; |
| 920 |
default: g_error("Invalid version ID"); g_abort(); |
| 921 |
} |
| 922 |
} |
| 923 |
|
| 924 |
// GdkWaylandSeat::pointer_info |
| 925 |
|
| 926 |
GdkWaylandPointerData * gdk_wayland_seat_priv_get_pointer_info_ptr(GdkWaylandSeat * self) { |
| 927 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 928 |
case 0: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_0*)self)->pointer_info; |
| 929 |
case 1: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_9*)self)->pointer_info; |
| 930 |
case 2: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_16*)self)->pointer_info; |
| 931 |
case 3: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_24_24*)self)->pointer_info; |
| 932 |
default: g_error("Invalid version ID"); g_abort(); |
| 933 |
} |
| 934 |
} |
| 935 |
|
| 936 |
// GdkWaylandSeat::touch_info |
| 937 |
|
| 938 |
GdkWaylandPointerData * gdk_wayland_seat_priv_get_touch_info_ptr(GdkWaylandSeat * self) { |
| 939 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 940 |
case 0: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_0*)self)->touch_info; |
| 941 |
case 1: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_9*)self)->touch_info; |
| 942 |
case 2: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_22_16*)self)->touch_info; |
| 943 |
case 3: return (GdkWaylandPointerData *)&((struct _GdkWaylandSeat_v3_24_24*)self)->touch_info; |
| 944 |
default: g_error("Invalid version ID"); g_abort(); |
| 945 |
} |
| 946 |
} |
| 947 |
|
| 948 |
// GdkWaylandSeat::key_modifiers |
| 949 |
|
| 950 |
GdkModifierType * gdk_wayland_seat_priv_get_key_modifiers_ptr(GdkWaylandSeat * self) { |
| 951 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 952 |
case 0: return (GdkModifierType *)&((struct _GdkWaylandSeat_v3_22_0*)self)->key_modifiers; |
| 953 |
case 1: return (GdkModifierType *)&((struct _GdkWaylandSeat_v3_22_9*)self)->key_modifiers; |
| 954 |
case 2: return (GdkModifierType *)&((struct _GdkWaylandSeat_v3_22_16*)self)->key_modifiers; |
| 955 |
case 3: return (GdkModifierType *)&((struct _GdkWaylandSeat_v3_24_24*)self)->key_modifiers; |
| 956 |
default: g_error("Invalid version ID"); g_abort(); |
| 957 |
} |
| 958 |
} |
| 959 |
|
| 960 |
// GdkWaylandSeat::keyboard_focus |
| 961 |
|
| 962 |
GdkWindow * gdk_wayland_seat_priv_get_keyboard_focus(GdkWaylandSeat * self) { |
| 963 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 964 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_focus; |
| 965 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_focus; |
| 966 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_focus; |
| 967 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_focus; |
| 968 |
default: g_error("Invalid version ID"); g_abort(); |
| 969 |
} |
| 970 |
} |
| 971 |
|
| 972 |
void gdk_wayland_seat_priv_set_keyboard_focus(GdkWaylandSeat * self, GdkWindow * keyboard_focus) { |
| 973 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 974 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_focus = keyboard_focus; break; |
| 975 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_focus = keyboard_focus; break; |
| 976 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_focus = keyboard_focus; break; |
| 977 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_focus = keyboard_focus; break; |
| 978 |
default: g_error("Invalid version ID"); g_abort(); |
| 979 |
} |
| 980 |
} |
| 981 |
|
| 982 |
// GdkWaylandSeat::pending_selection |
| 983 |
|
| 984 |
GdkAtom * gdk_wayland_seat_priv_get_pending_selection_ptr(GdkWaylandSeat * self) { |
| 985 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 986 |
case 0: return (GdkAtom *)&((struct _GdkWaylandSeat_v3_22_0*)self)->pending_selection; |
| 987 |
case 1: return (GdkAtom *)&((struct _GdkWaylandSeat_v3_22_9*)self)->pending_selection; |
| 988 |
case 2: return (GdkAtom *)&((struct _GdkWaylandSeat_v3_22_16*)self)->pending_selection; |
| 989 |
case 3: return (GdkAtom *)&((struct _GdkWaylandSeat_v3_24_24*)self)->pending_selection; |
| 990 |
default: g_error("Invalid version ID"); g_abort(); |
| 991 |
} |
| 992 |
} |
| 993 |
|
| 994 |
// GdkWaylandSeat::grab_window |
| 995 |
|
| 996 |
GdkWindow * gdk_wayland_seat_priv_get_grab_window(GdkWaylandSeat * self) { |
| 997 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 998 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_window; |
| 999 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_window; |
| 1000 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_window; |
| 1001 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_window; |
| 1002 |
default: g_error("Invalid version ID"); g_abort(); |
| 1003 |
} |
| 1004 |
} |
| 1005 |
|
| 1006 |
void gdk_wayland_seat_priv_set_grab_window(GdkWaylandSeat * self, GdkWindow * grab_window) { |
| 1007 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1008 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_window = grab_window; break; |
| 1009 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_window = grab_window; break; |
| 1010 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_window = grab_window; break; |
| 1011 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_window = grab_window; break; |
| 1012 |
default: g_error("Invalid version ID"); g_abort(); |
| 1013 |
} |
| 1014 |
} |
| 1015 |
|
| 1016 |
// GdkWaylandSeat::grab_time |
| 1017 |
|
| 1018 |
uint32_t gdk_wayland_seat_priv_get_grab_time(GdkWaylandSeat * self) { |
| 1019 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1020 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_time; |
| 1021 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_time; |
| 1022 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_time; |
| 1023 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_time; |
| 1024 |
default: g_error("Invalid version ID"); g_abort(); |
| 1025 |
} |
| 1026 |
} |
| 1027 |
|
| 1028 |
void gdk_wayland_seat_priv_set_grab_time(GdkWaylandSeat * self, uint32_t grab_time) { |
| 1029 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1030 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_time = grab_time; break; |
| 1031 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_time = grab_time; break; |
| 1032 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_time = grab_time; break; |
| 1033 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_time = grab_time; break; |
| 1034 |
default: g_error("Invalid version ID"); g_abort(); |
| 1035 |
} |
| 1036 |
} |
| 1037 |
|
| 1038 |
// GdkWaylandSeat::have_server_repeat |
| 1039 |
|
| 1040 |
gboolean gdk_wayland_seat_priv_get_have_server_repeat(GdkWaylandSeat * self) { |
| 1041 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1042 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->have_server_repeat; |
| 1043 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->have_server_repeat; |
| 1044 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->have_server_repeat; |
| 1045 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->have_server_repeat; |
| 1046 |
default: g_error("Invalid version ID"); g_abort(); |
| 1047 |
} |
| 1048 |
} |
| 1049 |
|
| 1050 |
void gdk_wayland_seat_priv_set_have_server_repeat(GdkWaylandSeat * self, gboolean have_server_repeat) { |
| 1051 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1052 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->have_server_repeat = have_server_repeat; break; |
| 1053 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->have_server_repeat = have_server_repeat; break; |
| 1054 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->have_server_repeat = have_server_repeat; break; |
| 1055 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->have_server_repeat = have_server_repeat; break; |
| 1056 |
default: g_error("Invalid version ID"); g_abort(); |
| 1057 |
} |
| 1058 |
} |
| 1059 |
|
| 1060 |
// GdkWaylandSeat::server_repeat_rate |
| 1061 |
|
| 1062 |
uint32_t gdk_wayland_seat_priv_get_server_repeat_rate(GdkWaylandSeat * self) { |
| 1063 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1064 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->server_repeat_rate; |
| 1065 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->server_repeat_rate; |
| 1066 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->server_repeat_rate; |
| 1067 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->server_repeat_rate; |
| 1068 |
default: g_error("Invalid version ID"); g_abort(); |
| 1069 |
} |
| 1070 |
} |
| 1071 |
|
| 1072 |
void gdk_wayland_seat_priv_set_server_repeat_rate(GdkWaylandSeat * self, uint32_t server_repeat_rate) { |
| 1073 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1074 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->server_repeat_rate = server_repeat_rate; break; |
| 1075 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->server_repeat_rate = server_repeat_rate; break; |
| 1076 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->server_repeat_rate = server_repeat_rate; break; |
| 1077 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->server_repeat_rate = server_repeat_rate; break; |
| 1078 |
default: g_error("Invalid version ID"); g_abort(); |
| 1079 |
} |
| 1080 |
} |
| 1081 |
|
| 1082 |
// GdkWaylandSeat::server_repeat_delay |
| 1083 |
|
| 1084 |
uint32_t gdk_wayland_seat_priv_get_server_repeat_delay(GdkWaylandSeat * self) { |
| 1085 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1086 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->server_repeat_delay; |
| 1087 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->server_repeat_delay; |
| 1088 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->server_repeat_delay; |
| 1089 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->server_repeat_delay; |
| 1090 |
default: g_error("Invalid version ID"); g_abort(); |
| 1091 |
} |
| 1092 |
} |
| 1093 |
|
| 1094 |
void gdk_wayland_seat_priv_set_server_repeat_delay(GdkWaylandSeat * self, uint32_t server_repeat_delay) { |
| 1095 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1096 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->server_repeat_delay = server_repeat_delay; break; |
| 1097 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->server_repeat_delay = server_repeat_delay; break; |
| 1098 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->server_repeat_delay = server_repeat_delay; break; |
| 1099 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->server_repeat_delay = server_repeat_delay; break; |
| 1100 |
default: g_error("Invalid version ID"); g_abort(); |
| 1101 |
} |
| 1102 |
} |
| 1103 |
|
| 1104 |
// GdkWaylandSeat::repeat_callback |
| 1105 |
|
| 1106 |
struct wl_callback * gdk_wayland_seat_priv_get_repeat_callback(GdkWaylandSeat * self) { |
| 1107 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1108 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_callback; |
| 1109 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_callback; |
| 1110 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_callback; |
| 1111 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_callback; |
| 1112 |
default: g_error("Invalid version ID"); g_abort(); |
| 1113 |
} |
| 1114 |
} |
| 1115 |
|
| 1116 |
void gdk_wayland_seat_priv_set_repeat_callback(GdkWaylandSeat * self, struct wl_callback * repeat_callback) { |
| 1117 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1118 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_callback = repeat_callback; break; |
| 1119 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_callback = repeat_callback; break; |
| 1120 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_callback = repeat_callback; break; |
| 1121 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_callback = repeat_callback; break; |
| 1122 |
default: g_error("Invalid version ID"); g_abort(); |
| 1123 |
} |
| 1124 |
} |
| 1125 |
|
| 1126 |
// GdkWaylandSeat::repeat_timer |
| 1127 |
|
| 1128 |
guint32 * gdk_wayland_seat_priv_get_repeat_timer_ptr(GdkWaylandSeat * self) { |
| 1129 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1130 |
case 0: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_timer; |
| 1131 |
case 1: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_timer; |
| 1132 |
case 2: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_timer; |
| 1133 |
case 3: return (guint32 *)&((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_timer; |
| 1134 |
default: g_error("Invalid version ID"); g_abort(); |
| 1135 |
} |
| 1136 |
} |
| 1137 |
|
| 1138 |
// GdkWaylandSeat::repeat_key |
| 1139 |
|
| 1140 |
guint32 * gdk_wayland_seat_priv_get_repeat_key_ptr(GdkWaylandSeat * self) { |
| 1141 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1142 |
case 0: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_key; |
| 1143 |
case 1: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_key; |
| 1144 |
case 2: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_key; |
| 1145 |
case 3: return (guint32 *)&((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_key; |
| 1146 |
default: g_error("Invalid version ID"); g_abort(); |
| 1147 |
} |
| 1148 |
} |
| 1149 |
|
| 1150 |
// GdkWaylandSeat::repeat_count |
| 1151 |
|
| 1152 |
guint32 * gdk_wayland_seat_priv_get_repeat_count_ptr(GdkWaylandSeat * self) { |
| 1153 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1154 |
case 0: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_count; |
| 1155 |
case 1: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_count; |
| 1156 |
case 2: return (guint32 *)&((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_count; |
| 1157 |
case 3: return (guint32 *)&((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_count; |
| 1158 |
default: g_error("Invalid version ID"); g_abort(); |
| 1159 |
} |
| 1160 |
} |
| 1161 |
|
| 1162 |
// GdkWaylandSeat::repeat_deadline |
| 1163 |
|
| 1164 |
gint64 * gdk_wayland_seat_priv_get_repeat_deadline_ptr(GdkWaylandSeat * self) { |
| 1165 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1166 |
case 0: return (gint64 *)&((struct _GdkWaylandSeat_v3_22_0*)self)->repeat_deadline; |
| 1167 |
case 1: return (gint64 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->repeat_deadline; |
| 1168 |
case 2: return (gint64 *)&((struct _GdkWaylandSeat_v3_22_16*)self)->repeat_deadline; |
| 1169 |
case 3: return (gint64 *)&((struct _GdkWaylandSeat_v3_24_24*)self)->repeat_deadline; |
| 1170 |
default: g_error("Invalid version ID"); g_abort(); |
| 1171 |
} |
| 1172 |
} |
| 1173 |
|
| 1174 |
// GdkWaylandSeat::keyboard_settings |
| 1175 |
|
| 1176 |
GSettings * gdk_wayland_seat_priv_get_keyboard_settings(GdkWaylandSeat * self) { |
| 1177 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1178 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_settings; |
| 1179 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_settings; |
| 1180 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_settings; |
| 1181 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_settings; |
| 1182 |
default: g_error("Invalid version ID"); g_abort(); |
| 1183 |
} |
| 1184 |
} |
| 1185 |
|
| 1186 |
void gdk_wayland_seat_priv_set_keyboard_settings(GdkWaylandSeat * self, GSettings * keyboard_settings) { |
| 1187 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1188 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_settings = keyboard_settings; break; |
| 1189 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_settings = keyboard_settings; break; |
| 1190 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_settings = keyboard_settings; break; |
| 1191 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_settings = keyboard_settings; break; |
| 1192 |
default: g_error("Invalid version ID"); g_abort(); |
| 1193 |
} |
| 1194 |
} |
| 1195 |
|
| 1196 |
// GdkWaylandSeat::keyboard_time |
| 1197 |
|
| 1198 |
uint32_t gdk_wayland_seat_priv_get_keyboard_time(GdkWaylandSeat * self) { |
| 1199 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1200 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_time; |
| 1201 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_time; |
| 1202 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_time; |
| 1203 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_time; |
| 1204 |
default: g_error("Invalid version ID"); g_abort(); |
| 1205 |
} |
| 1206 |
} |
| 1207 |
|
| 1208 |
void gdk_wayland_seat_priv_set_keyboard_time(GdkWaylandSeat * self, uint32_t keyboard_time) { |
| 1209 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1210 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_time = keyboard_time; break; |
| 1211 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_time = keyboard_time; break; |
| 1212 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_time = keyboard_time; break; |
| 1213 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_time = keyboard_time; break; |
| 1214 |
default: g_error("Invalid version ID"); g_abort(); |
| 1215 |
} |
| 1216 |
} |
| 1217 |
|
| 1218 |
// GdkWaylandSeat::keyboard_key_serial |
| 1219 |
|
| 1220 |
uint32_t gdk_wayland_seat_priv_get_keyboard_key_serial(GdkWaylandSeat * self) { |
| 1221 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1222 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_key_serial; |
| 1223 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_key_serial; |
| 1224 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_key_serial; |
| 1225 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_key_serial; |
| 1226 |
default: g_error("Invalid version ID"); g_abort(); |
| 1227 |
} |
| 1228 |
} |
| 1229 |
|
| 1230 |
void gdk_wayland_seat_priv_set_keyboard_key_serial(GdkWaylandSeat * self, uint32_t keyboard_key_serial) { |
| 1231 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1232 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->keyboard_key_serial = keyboard_key_serial; break; |
| 1233 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->keyboard_key_serial = keyboard_key_serial; break; |
| 1234 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->keyboard_key_serial = keyboard_key_serial; break; |
| 1235 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->keyboard_key_serial = keyboard_key_serial; break; |
| 1236 |
default: g_error("Invalid version ID"); g_abort(); |
| 1237 |
} |
| 1238 |
} |
| 1239 |
|
| 1240 |
// GdkWaylandSeat::primary_data_device |
| 1241 |
|
| 1242 |
gboolean gdk_wayland_seat_priv_get_primary_data_device_supported() { |
| 1243 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1244 |
case 0: return TRUE; |
| 1245 |
case 1: return TRUE; |
| 1246 |
case 2: return TRUE; |
| 1247 |
case 3: return FALSE; |
| 1248 |
default: g_error("Invalid version ID"); g_abort(); |
| 1249 |
} |
| 1250 |
} |
| 1251 |
|
| 1252 |
struct gtk_primary_selection_device * gdk_wayland_seat_priv_get_primary_data_device_or_abort(GdkWaylandSeat * self) { |
| 1253 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1254 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->primary_data_device; |
| 1255 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->primary_data_device; |
| 1256 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->primary_data_device; |
| 1257 |
case 3: g_error("GdkWaylandSeat::primary_data_device not supported on this GTK"); g_abort(); |
| 1258 |
default: g_error("Invalid version ID"); g_abort(); |
| 1259 |
} |
| 1260 |
} |
| 1261 |
|
| 1262 |
void gdk_wayland_seat_priv_set_primary_data_device_or_abort(GdkWaylandSeat * self, struct gtk_primary_selection_device * primary_data_device) { |
| 1263 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1264 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->primary_data_device = primary_data_device; break; |
| 1265 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->primary_data_device = primary_data_device; break; |
| 1266 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->primary_data_device = primary_data_device; break; |
| 1267 |
case 3: g_error("GdkWaylandSeat::primary_data_device not supported on this GTK"); g_abort(); |
| 1268 |
default: g_error("Invalid version ID"); g_abort(); |
| 1269 |
} |
| 1270 |
} |
| 1271 |
|
| 1272 |
// GdkWaylandSeat::data_device |
| 1273 |
|
| 1274 |
struct wl_data_device * gdk_wayland_seat_priv_get_data_device(GdkWaylandSeat * self) { |
| 1275 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1276 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->data_device; |
| 1277 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->data_device; |
| 1278 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->data_device; |
| 1279 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->data_device; |
| 1280 |
default: g_error("Invalid version ID"); g_abort(); |
| 1281 |
} |
| 1282 |
} |
| 1283 |
|
| 1284 |
void gdk_wayland_seat_priv_set_data_device(GdkWaylandSeat * self, struct wl_data_device * data_device) { |
| 1285 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1286 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->data_device = data_device; break; |
| 1287 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->data_device = data_device; break; |
| 1288 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->data_device = data_device; break; |
| 1289 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->data_device = data_device; break; |
| 1290 |
default: g_error("Invalid version ID"); g_abort(); |
| 1291 |
} |
| 1292 |
} |
| 1293 |
|
| 1294 |
// GdkWaylandSeat::drop_context |
| 1295 |
|
| 1296 |
GdkDragContext * gdk_wayland_seat_priv_get_drop_context(GdkWaylandSeat * self) { |
| 1297 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1298 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->drop_context; |
| 1299 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->drop_context; |
| 1300 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->drop_context; |
| 1301 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->drop_context; |
| 1302 |
default: g_error("Invalid version ID"); g_abort(); |
| 1303 |
} |
| 1304 |
} |
| 1305 |
|
| 1306 |
void gdk_wayland_seat_priv_set_drop_context(GdkWaylandSeat * self, GdkDragContext * drop_context) { |
| 1307 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1308 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->drop_context = drop_context; break; |
| 1309 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->drop_context = drop_context; break; |
| 1310 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->drop_context = drop_context; break; |
| 1311 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->drop_context = drop_context; break; |
| 1312 |
default: g_error("Invalid version ID"); g_abort(); |
| 1313 |
} |
| 1314 |
} |
| 1315 |
|
| 1316 |
// GdkWaylandSeat::foreign_dnd_window |
| 1317 |
|
| 1318 |
GdkWindow * gdk_wayland_seat_priv_get_foreign_dnd_window(GdkWaylandSeat * self) { |
| 1319 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1320 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->foreign_dnd_window; |
| 1321 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->foreign_dnd_window; |
| 1322 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->foreign_dnd_window; |
| 1323 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->foreign_dnd_window; |
| 1324 |
default: g_error("Invalid version ID"); g_abort(); |
| 1325 |
} |
| 1326 |
} |
| 1327 |
|
| 1328 |
void gdk_wayland_seat_priv_set_foreign_dnd_window(GdkWaylandSeat * self, GdkWindow * foreign_dnd_window) { |
| 1329 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1330 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->foreign_dnd_window = foreign_dnd_window; break; |
| 1331 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->foreign_dnd_window = foreign_dnd_window; break; |
| 1332 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->foreign_dnd_window = foreign_dnd_window; break; |
| 1333 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->foreign_dnd_window = foreign_dnd_window; break; |
| 1334 |
default: g_error("Invalid version ID"); g_abort(); |
| 1335 |
} |
| 1336 |
} |
| 1337 |
|
| 1338 |
// GdkWaylandSeat::gesture_n_fingers |
| 1339 |
|
| 1340 |
guint gdk_wayland_seat_priv_get_gesture_n_fingers(GdkWaylandSeat * self) { |
| 1341 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1342 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->gesture_n_fingers; |
| 1343 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->gesture_n_fingers; |
| 1344 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->gesture_n_fingers; |
| 1345 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->gesture_n_fingers; |
| 1346 |
default: g_error("Invalid version ID"); g_abort(); |
| 1347 |
} |
| 1348 |
} |
| 1349 |
|
| 1350 |
void gdk_wayland_seat_priv_set_gesture_n_fingers(GdkWaylandSeat * self, guint gesture_n_fingers) { |
| 1351 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1352 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->gesture_n_fingers = gesture_n_fingers; break; |
| 1353 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->gesture_n_fingers = gesture_n_fingers; break; |
| 1354 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->gesture_n_fingers = gesture_n_fingers; break; |
| 1355 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->gesture_n_fingers = gesture_n_fingers; break; |
| 1356 |
default: g_error("Invalid version ID"); g_abort(); |
| 1357 |
} |
| 1358 |
} |
| 1359 |
|
| 1360 |
// GdkWaylandSeat::gesture_scale |
| 1361 |
|
| 1362 |
gdouble * gdk_wayland_seat_priv_get_gesture_scale_ptr(GdkWaylandSeat * self) { |
| 1363 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1364 |
case 0: return (gdouble *)&((struct _GdkWaylandSeat_v3_22_0*)self)->gesture_scale; |
| 1365 |
case 1: return (gdouble *)&((struct _GdkWaylandSeat_v3_22_9*)self)->gesture_scale; |
| 1366 |
case 2: return (gdouble *)&((struct _GdkWaylandSeat_v3_22_16*)self)->gesture_scale; |
| 1367 |
case 3: return (gdouble *)&((struct _GdkWaylandSeat_v3_24_24*)self)->gesture_scale; |
| 1368 |
default: g_error("Invalid version ID"); g_abort(); |
| 1369 |
} |
| 1370 |
} |
| 1371 |
|
| 1372 |
// GdkWaylandSeat::grab_cursor |
| 1373 |
|
| 1374 |
GdkCursor * gdk_wayland_seat_priv_get_grab_cursor(GdkWaylandSeat * self) { |
| 1375 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1376 |
case 0: return ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_cursor; |
| 1377 |
case 1: return ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_cursor; |
| 1378 |
case 2: return ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_cursor; |
| 1379 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_cursor; |
| 1380 |
default: g_error("Invalid version ID"); g_abort(); |
| 1381 |
} |
| 1382 |
} |
| 1383 |
|
| 1384 |
void gdk_wayland_seat_priv_set_grab_cursor(GdkWaylandSeat * self, GdkCursor * grab_cursor) { |
| 1385 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1386 |
case 0: ((struct _GdkWaylandSeat_v3_22_0*)self)->grab_cursor = grab_cursor; break; |
| 1387 |
case 1: ((struct _GdkWaylandSeat_v3_22_9*)self)->grab_cursor = grab_cursor; break; |
| 1388 |
case 2: ((struct _GdkWaylandSeat_v3_22_16*)self)->grab_cursor = grab_cursor; break; |
| 1389 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->grab_cursor = grab_cursor; break; |
| 1390 |
default: g_error("Invalid version ID"); g_abort(); |
| 1391 |
} |
| 1392 |
} |
| 1393 |
|
| 1394 |
// GdkWaylandSeat::nkeys |
| 1395 |
|
| 1396 |
gboolean gdk_wayland_seat_priv_get_nkeys_supported() { |
| 1397 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1398 |
case 0: return FALSE; |
| 1399 |
case 1: return TRUE; |
| 1400 |
case 2: return FALSE; |
| 1401 |
case 3: return FALSE; |
| 1402 |
default: g_error("Invalid version ID"); g_abort(); |
| 1403 |
} |
| 1404 |
} |
| 1405 |
|
| 1406 |
gint32 * gdk_wayland_seat_priv_get_nkeys_ptr_or_null(GdkWaylandSeat * self) { |
| 1407 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1408 |
case 0: return NULL; |
| 1409 |
case 1: return (gint32 *)&((struct _GdkWaylandSeat_v3_22_9*)self)->nkeys; |
| 1410 |
case 2: return NULL; |
| 1411 |
case 3: return NULL; |
| 1412 |
default: g_error("Invalid version ID"); g_abort(); |
| 1413 |
} |
| 1414 |
} |
| 1415 |
|
| 1416 |
// GdkWaylandSeat::gtk_primary_data_device |
| 1417 |
|
| 1418 |
gboolean gdk_wayland_seat_priv_get_gtk_primary_data_device_supported() { |
| 1419 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1420 |
case 0: return FALSE; |
| 1421 |
case 1: return FALSE; |
| 1422 |
case 2: return FALSE; |
| 1423 |
case 3: return TRUE; |
| 1424 |
default: g_error("Invalid version ID"); g_abort(); |
| 1425 |
} |
| 1426 |
} |
| 1427 |
|
| 1428 |
struct gtk_primary_selection_device * gdk_wayland_seat_priv_get_gtk_primary_data_device_or_abort(GdkWaylandSeat * self) { |
| 1429 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1430 |
case 0: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1431 |
case 1: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1432 |
case 2: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1433 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->gtk_primary_data_device; |
| 1434 |
default: g_error("Invalid version ID"); g_abort(); |
| 1435 |
} |
| 1436 |
} |
| 1437 |
|
| 1438 |
void gdk_wayland_seat_priv_set_gtk_primary_data_device_or_abort(GdkWaylandSeat * self, struct gtk_primary_selection_device * gtk_primary_data_device) { |
| 1439 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1440 |
case 0: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1441 |
case 1: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1442 |
case 2: g_error("GdkWaylandSeat::gtk_primary_data_device not supported on this GTK"); g_abort(); |
| 1443 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->gtk_primary_data_device = gtk_primary_data_device; break; |
| 1444 |
default: g_error("Invalid version ID"); g_abort(); |
| 1445 |
} |
| 1446 |
} |
| 1447 |
|
| 1448 |
// GdkWaylandSeat::zwp_primary_data_device_v1 |
| 1449 |
|
| 1450 |
gboolean gdk_wayland_seat_priv_get_zwp_primary_data_device_v1_supported() { |
| 1451 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1452 |
case 0: return FALSE; |
| 1453 |
case 1: return FALSE; |
| 1454 |
case 2: return FALSE; |
| 1455 |
case 3: return TRUE; |
| 1456 |
default: g_error("Invalid version ID"); g_abort(); |
| 1457 |
} |
| 1458 |
} |
| 1459 |
|
| 1460 |
struct zwp_primary_selection_device_v1 * gdk_wayland_seat_priv_get_zwp_primary_data_device_v1_or_abort(GdkWaylandSeat * self) { |
| 1461 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1462 |
case 0: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1463 |
case 1: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1464 |
case 2: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1465 |
case 3: return ((struct _GdkWaylandSeat_v3_24_24*)self)->zwp_primary_data_device_v1; |
| 1466 |
default: g_error("Invalid version ID"); g_abort(); |
| 1467 |
} |
| 1468 |
} |
| 1469 |
|
| 1470 |
void gdk_wayland_seat_priv_set_zwp_primary_data_device_v1_or_abort(GdkWaylandSeat * self, struct zwp_primary_selection_device_v1 * zwp_primary_data_device_v1) { |
| 1471 |
switch (gdk_wayland_seat_priv_get_version_id()) { |
| 1472 |
case 0: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1473 |
case 1: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1474 |
case 2: g_error("GdkWaylandSeat::zwp_primary_data_device_v1 not supported on this GTK"); g_abort(); |
| 1475 |
case 3: ((struct _GdkWaylandSeat_v3_24_24*)self)->zwp_primary_data_device_v1 = zwp_primary_data_device_v1; break; |
| 1476 |
default: g_error("Invalid version ID"); g_abort(); |
| 1477 |
} |
| 1478 |
} |
| 1479 |
|
| 1480 |
#endif // GDK_WAYLAND_SEAT_PRIV_H |