Go to the documentation of this file.
3 #ifndef WAYLAND_CLIENT_PROTOCOL_H
4 #define WAYLAND_CLIENT_PROTOCOL_H
8 #include "wayland-client.h"
71 struct wl_data_device;
72 struct wl_data_device_manager;
74 struct wl_data_source;
83 struct wl_shell_surface;
86 struct wl_subcompositor;
91 #ifndef WL_DISPLAY_INTERFACE
92 #define WL_DISPLAY_INTERFACE
110 #ifndef WL_REGISTRY_INTERFACE
111 #define WL_REGISTRY_INTERFACE
165 #ifndef WL_CALLBACK_INTERFACE
166 #define WL_CALLBACK_INTERFACE
184 #ifndef WL_COMPOSITOR_INTERFACE
185 #define WL_COMPOSITOR_INTERFACE
205 #ifndef WL_SHM_POOL_INTERFACE
206 #define WL_SHM_POOL_INTERFACE
234 #ifndef WL_SHM_INTERFACE
235 #define WL_SHM_INTERFACE
267 #ifndef WL_BUFFER_INTERFACE
268 #define WL_BUFFER_INTERFACE
292 #ifndef WL_DATA_OFFER_INTERFACE
293 #define WL_DATA_OFFER_INTERFACE
319 #ifndef WL_DATA_SOURCE_INTERFACE
320 #define WL_DATA_SOURCE_INTERFACE
342 #ifndef WL_DATA_DEVICE_INTERFACE
343 #define WL_DATA_DEVICE_INTERFACE
367 #ifndef WL_DATA_DEVICE_MANAGER_INTERFACE
368 #define WL_DATA_DEVICE_MANAGER_INTERFACE
402 #ifndef WL_SHELL_INTERFACE
403 #define WL_SHELL_INTERFACE
427 #ifndef WL_SHELL_SURFACE_INTERFACE
428 #define WL_SHELL_SURFACE_INTERFACE
464 #ifndef WL_SURFACE_INTERFACE
465 #define WL_SURFACE_INTERFACE
557 #ifndef WL_SEAT_INTERFACE
558 #define WL_SEAT_INTERFACE
580 #ifndef WL_POINTER_INTERFACE
581 #define WL_POINTER_INTERFACE
611 #ifndef WL_KEYBOARD_INTERFACE
612 #define WL_KEYBOARD_INTERFACE
630 #ifndef WL_TOUCH_INTERFACE
631 #define WL_TOUCH_INTERFACE
661 #ifndef WL_OUTPUT_INTERFACE
662 #define WL_OUTPUT_INTERFACE
688 #ifndef WL_REGION_INTERFACE
689 #define WL_REGION_INTERFACE
711 #ifndef WL_SUBCOMPOSITOR_INTERFACE
712 #define WL_SUBCOMPOSITOR_INTERFACE
764 #ifndef WL_SUBSURFACE_INTERFACE
765 #define WL_SUBSURFACE_INTERFACE
878 #ifndef WL_DISPLAY_ERROR_ENUM
879 #define WL_DISPLAY_ERROR_ENUM
923 struct wl_display *wl_display,
938 struct wl_display *wl_display,
949 return wl_proxy_add_listener((
struct wl_proxy *) wl_display,
950 (
void (**)(
void)) listener,
data);
953 #define WL_DISPLAY_SYNC 0
954 #define WL_DISPLAY_GET_REGISTRY 1
959 #define WL_DISPLAY_ERROR_SINCE_VERSION 1
963 #define WL_DISPLAY_DELETE_ID_SINCE_VERSION 1
968 #define WL_DISPLAY_SYNC_SINCE_VERSION 1
972 #define WL_DISPLAY_GET_REGISTRY_SINCE_VERSION 1
978 wl_proxy_set_user_data((
struct wl_proxy *) wl_display, user_data);
985 return wl_proxy_get_user_data((
struct wl_proxy *) wl_display);
991 return wl_proxy_get_version((
struct wl_proxy *) wl_display);
1009 static inline struct wl_callback *
1014 callback = wl_proxy_marshal_flags((
struct wl_proxy *) wl_display,
1017 return (
struct wl_callback *)
callback;
1027 static inline struct wl_registry *
1030 struct wl_proxy *registry;
1032 registry = wl_proxy_marshal_flags((
struct wl_proxy *) wl_display,
1035 return (
struct wl_registry *) registry;
1056 struct wl_registry *wl_registry,
1058 const char *interface,
1076 struct wl_registry *wl_registry,
1087 return wl_proxy_add_listener((
struct wl_proxy *) wl_registry,
1088 (
void (**)(
void)) listener,
data);
1091 #define WL_REGISTRY_BIND 0
1096 #define WL_REGISTRY_GLOBAL_SINCE_VERSION 1
1100 #define WL_REGISTRY_GLOBAL_REMOVE_SINCE_VERSION 1
1105 #define WL_REGISTRY_BIND_SINCE_VERSION 1
1111 wl_proxy_set_user_data((
struct wl_proxy *) wl_registry, user_data);
1115 static inline void *
1118 return wl_proxy_get_user_data((
struct wl_proxy *) wl_registry);
1124 return wl_proxy_get_version((
struct wl_proxy *) wl_registry);
1131 wl_proxy_destroy((
struct wl_proxy *) wl_registry);
1140 static inline void *
1143 struct wl_proxy *
id;
1145 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_registry,
1163 struct wl_callback *wl_callback,
1174 return wl_proxy_add_listener((
struct wl_proxy *) wl_callback,
1175 (
void (**)(
void)) listener,
data);
1181 #define WL_CALLBACK_DONE_SINCE_VERSION 1
1188 wl_proxy_set_user_data((
struct wl_proxy *) wl_callback, user_data);
1192 static inline void *
1195 return wl_proxy_get_user_data((
struct wl_proxy *) wl_callback);
1201 return wl_proxy_get_version((
struct wl_proxy *) wl_callback);
1208 wl_proxy_destroy((
struct wl_proxy *) wl_callback);
1211 #define WL_COMPOSITOR_CREATE_SURFACE 0
1212 #define WL_COMPOSITOR_CREATE_REGION 1
1218 #define WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION 1
1222 #define WL_COMPOSITOR_CREATE_REGION_SINCE_VERSION 1
1228 wl_proxy_set_user_data((
struct wl_proxy *) wl_compositor, user_data);
1232 static inline void *
1235 return wl_proxy_get_user_data((
struct wl_proxy *) wl_compositor);
1241 return wl_proxy_get_version((
struct wl_proxy *) wl_compositor);
1248 wl_proxy_destroy((
struct wl_proxy *) wl_compositor);
1256 static inline struct wl_surface *
1259 struct wl_proxy *
id;
1261 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_compositor,
1264 return (
struct wl_surface *)
id;
1272 static inline struct wl_region *
1275 struct wl_proxy *
id;
1277 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_compositor,
1280 return (
struct wl_region *)
id;
1283 #define WL_SHM_POOL_CREATE_BUFFER 0
1284 #define WL_SHM_POOL_DESTROY 1
1285 #define WL_SHM_POOL_RESIZE 2
1291 #define WL_SHM_POOL_CREATE_BUFFER_SINCE_VERSION 1
1295 #define WL_SHM_POOL_DESTROY_SINCE_VERSION 1
1299 #define WL_SHM_POOL_RESIZE_SINCE_VERSION 1
1305 wl_proxy_set_user_data((
struct wl_proxy *) wl_shm_pool, user_data);
1309 static inline void *
1312 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shm_pool);
1318 return wl_proxy_get_version((
struct wl_proxy *) wl_shm_pool);
1336 static inline struct wl_buffer *
1339 struct wl_proxy *
id;
1341 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_shm_pool,
1344 return (
struct wl_buffer *)
id;
1359 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shm_pool,
1374 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shm_pool,
1378 #ifndef WL_SHM_ERROR_ENUM
1379 #define WL_SHM_ERROR_ENUM
1402 #ifndef WL_SHM_FORMAT_ENUM
1403 #define WL_SHM_FORMAT_ENUM
1667 struct wl_shm *wl_shm,
1678 return wl_proxy_add_listener((
struct wl_proxy *) wl_shm,
1679 (
void (**)(
void)) listener,
data);
1682 #define WL_SHM_CREATE_POOL 0
1687 #define WL_SHM_FORMAT_SINCE_VERSION 1
1692 #define WL_SHM_CREATE_POOL_SINCE_VERSION 1
1698 wl_proxy_set_user_data((
struct wl_proxy *) wl_shm, user_data);
1702 static inline void *
1705 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shm);
1711 return wl_proxy_get_version((
struct wl_proxy *) wl_shm);
1718 wl_proxy_destroy((
struct wl_proxy *) wl_shm);
1730 static inline struct wl_shm_pool *
1733 struct wl_proxy *
id;
1735 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_shm,
1738 return (
struct wl_shm_pool *)
id;
1763 struct wl_buffer *wl_buffer);
1773 return wl_proxy_add_listener((
struct wl_proxy *) wl_buffer,
1774 (
void (**)(
void)) listener,
data);
1777 #define WL_BUFFER_DESTROY 0
1782 #define WL_BUFFER_RELEASE_SINCE_VERSION 1
1787 #define WL_BUFFER_DESTROY_SINCE_VERSION 1
1793 wl_proxy_set_user_data((
struct wl_proxy *) wl_buffer, user_data);
1797 static inline void *
1800 return wl_proxy_get_user_data((
struct wl_proxy *) wl_buffer);
1806 return wl_proxy_get_version((
struct wl_proxy *) wl_buffer);
1820 wl_proxy_marshal_flags((
struct wl_proxy *) wl_buffer,
1821 WL_BUFFER_DESTROY,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_buffer), WL_MARSHAL_FLAG_DESTROY);
1824 #ifndef WL_DATA_OFFER_ERROR_ENUM
1825 #define WL_DATA_OFFER_ERROR_ENUM
1859 struct wl_data_offer *wl_data_offer,
1860 const char *mime_type);
1872 struct wl_data_offer *wl_data_offer,
1918 struct wl_data_offer *wl_data_offer,
1929 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_offer,
1930 (
void (**)(
void)) listener,
data);
1933 #define WL_DATA_OFFER_ACCEPT 0
1934 #define WL_DATA_OFFER_RECEIVE 1
1935 #define WL_DATA_OFFER_DESTROY 2
1936 #define WL_DATA_OFFER_FINISH 3
1937 #define WL_DATA_OFFER_SET_ACTIONS 4
1942 #define WL_DATA_OFFER_OFFER_SINCE_VERSION 1
1946 #define WL_DATA_OFFER_SOURCE_ACTIONS_SINCE_VERSION 3
1950 #define WL_DATA_OFFER_ACTION_SINCE_VERSION 3
1955 #define WL_DATA_OFFER_ACCEPT_SINCE_VERSION 1
1959 #define WL_DATA_OFFER_RECEIVE_SINCE_VERSION 1
1963 #define WL_DATA_OFFER_DESTROY_SINCE_VERSION 1
1967 #define WL_DATA_OFFER_FINISH_SINCE_VERSION 3
1971 #define WL_DATA_OFFER_SET_ACTIONS_SINCE_VERSION 3
1977 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_offer, user_data);
1981 static inline void *
1984 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_offer);
1990 return wl_proxy_get_version((
struct wl_proxy *) wl_data_offer);
2014 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_offer,
2040 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_offer,
2052 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_offer,
2074 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_offer,
2116 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_offer,
2120 #ifndef WL_DATA_SOURCE_ERROR_ENUM
2121 #define WL_DATA_SOURCE_ERROR_ENUM
2149 struct wl_data_source *wl_data_source,
2150 const char *mime_type);
2161 struct wl_data_source *wl_data_source,
2162 const char *mime_type,
2188 struct wl_data_source *wl_data_source);
2206 struct wl_data_source *wl_data_source);
2219 struct wl_data_source *wl_data_source);
2254 struct wl_data_source *wl_data_source,
2265 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_source,
2266 (
void (**)(
void)) listener,
data);
2269 #define WL_DATA_SOURCE_OFFER 0
2270 #define WL_DATA_SOURCE_DESTROY 1
2271 #define WL_DATA_SOURCE_SET_ACTIONS 2
2276 #define WL_DATA_SOURCE_TARGET_SINCE_VERSION 1
2280 #define WL_DATA_SOURCE_SEND_SINCE_VERSION 1
2284 #define WL_DATA_SOURCE_CANCELLED_SINCE_VERSION 1
2288 #define WL_DATA_SOURCE_DND_DROP_PERFORMED_SINCE_VERSION 3
2292 #define WL_DATA_SOURCE_DND_FINISHED_SINCE_VERSION 3
2296 #define WL_DATA_SOURCE_ACTION_SINCE_VERSION 3
2301 #define WL_DATA_SOURCE_OFFER_SINCE_VERSION 1
2305 #define WL_DATA_SOURCE_DESTROY_SINCE_VERSION 1
2309 #define WL_DATA_SOURCE_SET_ACTIONS_SINCE_VERSION 3
2315 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_source, user_data);
2319 static inline void *
2322 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_source);
2328 return wl_proxy_get_version((
struct wl_proxy *) wl_data_source);
2341 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_source,
2353 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_source,
2377 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_source,
2381 #ifndef WL_DATA_DEVICE_ERROR_ENUM
2382 #define WL_DATA_DEVICE_ERROR_ENUM
2409 struct wl_data_device *wl_data_device,
2410 struct wl_data_offer *
id);
2425 struct wl_data_device *wl_data_device,
2430 struct wl_data_offer *
id);
2439 struct wl_data_device *wl_data_device);
2452 struct wl_data_device *wl_data_device,
2474 struct wl_data_device *wl_data_device);
2491 struct wl_data_device *wl_data_device,
2492 struct wl_data_offer *
id);
2502 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_device,
2503 (
void (**)(
void)) listener,
data);
2506 #define WL_DATA_DEVICE_START_DRAG 0
2507 #define WL_DATA_DEVICE_SET_SELECTION 1
2508 #define WL_DATA_DEVICE_RELEASE 2
2513 #define WL_DATA_DEVICE_DATA_OFFER_SINCE_VERSION 1
2517 #define WL_DATA_DEVICE_ENTER_SINCE_VERSION 1
2521 #define WL_DATA_DEVICE_LEAVE_SINCE_VERSION 1
2525 #define WL_DATA_DEVICE_MOTION_SINCE_VERSION 1
2529 #define WL_DATA_DEVICE_DROP_SINCE_VERSION 1
2533 #define WL_DATA_DEVICE_SELECTION_SINCE_VERSION 1
2538 #define WL_DATA_DEVICE_START_DRAG_SINCE_VERSION 1
2542 #define WL_DATA_DEVICE_SET_SELECTION_SINCE_VERSION 1
2546 #define WL_DATA_DEVICE_RELEASE_SINCE_VERSION 2
2552 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_device, user_data);
2556 static inline void *
2559 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_device);
2565 return wl_proxy_get_version((
struct wl_proxy *) wl_data_device);
2572 wl_proxy_destroy((
struct wl_proxy *) wl_data_device);
2609 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_device,
2624 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_device,
2636 wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_device,
2640 #ifndef WL_DATA_DEVICE_MANAGER_DND_ACTION_ENUM
2641 #define WL_DATA_DEVICE_MANAGER_DND_ACTION_ENUM
2690 #define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE 0
2691 #define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE 1
2697 #define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE_SINCE_VERSION 1
2701 #define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE_SINCE_VERSION 1
2707 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_device_manager, user_data);
2711 static inline void *
2714 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_device_manager);
2720 return wl_proxy_get_version((
struct wl_proxy *) wl_data_device_manager);
2727 wl_proxy_destroy((
struct wl_proxy *) wl_data_device_manager);
2735 static inline struct wl_data_source *
2738 struct wl_proxy *
id;
2740 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_device_manager,
2743 return (
struct wl_data_source *)
id;
2751 static inline struct wl_data_device *
2754 struct wl_proxy *
id;
2756 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_data_device_manager,
2759 return (
struct wl_data_device *)
id;
2762 #ifndef WL_SHELL_ERROR_ENUM
2763 #define WL_SHELL_ERROR_ENUM
2772 #define WL_SHELL_GET_SHELL_SURFACE 0
2778 #define WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION 1
2784 wl_proxy_set_user_data((
struct wl_proxy *) wl_shell, user_data);
2788 static inline void *
2791 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shell);
2797 return wl_proxy_get_version((
struct wl_proxy *) wl_shell);
2804 wl_proxy_destroy((
struct wl_proxy *) wl_shell);
2816 static inline struct wl_shell_surface *
2819 struct wl_proxy *
id;
2821 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell,
2824 return (
struct wl_shell_surface *)
id;
2827 #ifndef WL_SHELL_SURFACE_RESIZE_ENUM
2828 #define WL_SHELL_SURFACE_RESIZE_ENUM
2878 #ifndef WL_SHELL_SURFACE_TRANSIENT_ENUM
2879 #define WL_SHELL_SURFACE_TRANSIENT_ENUM
2895 #ifndef WL_SHELL_SURFACE_FULLSCREEN_METHOD_ENUM
2896 #define WL_SHELL_SURFACE_FULLSCREEN_METHOD_ENUM
2938 struct wl_shell_surface *wl_shell_surface,
2965 struct wl_shell_surface *wl_shell_surface,
2977 struct wl_shell_surface *wl_shell_surface);
2987 return wl_proxy_add_listener((
struct wl_proxy *) wl_shell_surface,
2988 (
void (**)(
void)) listener,
data);
2991 #define WL_SHELL_SURFACE_PONG 0
2992 #define WL_SHELL_SURFACE_MOVE 1
2993 #define WL_SHELL_SURFACE_RESIZE 2
2994 #define WL_SHELL_SURFACE_SET_TOPLEVEL 3
2995 #define WL_SHELL_SURFACE_SET_TRANSIENT 4
2996 #define WL_SHELL_SURFACE_SET_FULLSCREEN 5
2997 #define WL_SHELL_SURFACE_SET_POPUP 6
2998 #define WL_SHELL_SURFACE_SET_MAXIMIZED 7
2999 #define WL_SHELL_SURFACE_SET_TITLE 8
3000 #define WL_SHELL_SURFACE_SET_CLASS 9
3005 #define WL_SHELL_SURFACE_PING_SINCE_VERSION 1
3009 #define WL_SHELL_SURFACE_CONFIGURE_SINCE_VERSION 1
3013 #define WL_SHELL_SURFACE_POPUP_DONE_SINCE_VERSION 1
3018 #define WL_SHELL_SURFACE_PONG_SINCE_VERSION 1
3022 #define WL_SHELL_SURFACE_MOVE_SINCE_VERSION 1
3026 #define WL_SHELL_SURFACE_RESIZE_SINCE_VERSION 1
3030 #define WL_SHELL_SURFACE_SET_TOPLEVEL_SINCE_VERSION 1
3034 #define WL_SHELL_SURFACE_SET_TRANSIENT_SINCE_VERSION 1
3038 #define WL_SHELL_SURFACE_SET_FULLSCREEN_SINCE_VERSION 1
3042 #define WL_SHELL_SURFACE_SET_POPUP_SINCE_VERSION 1
3046 #define WL_SHELL_SURFACE_SET_MAXIMIZED_SINCE_VERSION 1
3050 #define WL_SHELL_SURFACE_SET_TITLE_SINCE_VERSION 1
3054 #define WL_SHELL_SURFACE_SET_CLASS_SINCE_VERSION 1
3060 wl_proxy_set_user_data((
struct wl_proxy *) wl_shell_surface, user_data);
3064 static inline void *
3067 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shell_surface);
3073 return wl_proxy_get_version((
struct wl_proxy *) wl_shell_surface);
3080 wl_proxy_destroy((
struct wl_proxy *) wl_shell_surface);
3092 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3108 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3124 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3138 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3156 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3200 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3230 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3259 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3277 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3294 wl_proxy_marshal_flags((
struct wl_proxy *) wl_shell_surface,
3298 #ifndef WL_SURFACE_ERROR_ENUM
3299 #define WL_SURFACE_ERROR_ENUM
3335 struct wl_surface *wl_surface,
3336 struct wl_output *
output);
3346 struct wl_surface *wl_surface,
3347 struct wl_output *
output);
3357 return wl_proxy_add_listener((
struct wl_proxy *) wl_surface,
3358 (
void (**)(
void)) listener,
data);
3361 #define WL_SURFACE_DESTROY 0
3362 #define WL_SURFACE_ATTACH 1
3363 #define WL_SURFACE_DAMAGE 2
3364 #define WL_SURFACE_FRAME 3
3365 #define WL_SURFACE_SET_OPAQUE_REGION 4
3366 #define WL_SURFACE_SET_INPUT_REGION 5
3367 #define WL_SURFACE_COMMIT 6
3368 #define WL_SURFACE_SET_BUFFER_TRANSFORM 7
3369 #define WL_SURFACE_SET_BUFFER_SCALE 8
3370 #define WL_SURFACE_DAMAGE_BUFFER 9
3375 #define WL_SURFACE_ENTER_SINCE_VERSION 1
3379 #define WL_SURFACE_LEAVE_SINCE_VERSION 1
3384 #define WL_SURFACE_DESTROY_SINCE_VERSION 1
3388 #define WL_SURFACE_ATTACH_SINCE_VERSION 1
3392 #define WL_SURFACE_DAMAGE_SINCE_VERSION 1
3396 #define WL_SURFACE_FRAME_SINCE_VERSION 1
3400 #define WL_SURFACE_SET_OPAQUE_REGION_SINCE_VERSION 1
3404 #define WL_SURFACE_SET_INPUT_REGION_SINCE_VERSION 1
3408 #define WL_SURFACE_COMMIT_SINCE_VERSION 1
3412 #define WL_SURFACE_SET_BUFFER_TRANSFORM_SINCE_VERSION 2
3416 #define WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION 3
3420 #define WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION 4
3426 wl_proxy_set_user_data((
struct wl_proxy *) wl_surface, user_data);
3430 static inline void *
3433 return wl_proxy_get_user_data((
struct wl_proxy *) wl_surface);
3439 return wl_proxy_get_version((
struct wl_proxy *) wl_surface);
3450 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3451 WL_SURFACE_DESTROY,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_surface), WL_MARSHAL_FLAG_DESTROY);
3500 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3532 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3572 static inline struct wl_callback *
3577 callback = wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3580 return (
struct wl_callback *)
callback;
3614 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3647 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3675 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3715 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3749 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3792 wl_proxy_marshal_flags((
struct wl_proxy *) wl_surface,
3796 #ifndef WL_SEAT_CAPABILITY_ENUM
3797 #define WL_SEAT_CAPABILITY_ENUM
3857 struct wl_seat *wl_seat,
3869 struct wl_seat *wl_seat,
3880 return wl_proxy_add_listener((
struct wl_proxy *) wl_seat,
3881 (
void (**)(
void)) listener,
data);
3884 #define WL_SEAT_GET_POINTER 0
3885 #define WL_SEAT_GET_KEYBOARD 1
3886 #define WL_SEAT_GET_TOUCH 2
3887 #define WL_SEAT_RELEASE 3
3892 #define WL_SEAT_CAPABILITIES_SINCE_VERSION 1
3896 #define WL_SEAT_NAME_SINCE_VERSION 2
3901 #define WL_SEAT_GET_POINTER_SINCE_VERSION 1
3905 #define WL_SEAT_GET_KEYBOARD_SINCE_VERSION 1
3909 #define WL_SEAT_GET_TOUCH_SINCE_VERSION 1
3913 #define WL_SEAT_RELEASE_SINCE_VERSION 5
3919 wl_proxy_set_user_data((
struct wl_proxy *) wl_seat, user_data);
3923 static inline void *
3926 return wl_proxy_get_user_data((
struct wl_proxy *) wl_seat);
3932 return wl_proxy_get_version((
struct wl_proxy *) wl_seat);
3939 wl_proxy_destroy((
struct wl_proxy *) wl_seat);
3953 static inline struct wl_pointer *
3956 struct wl_proxy *
id;
3958 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_seat,
3961 return (
struct wl_pointer *)
id;
3975 static inline struct wl_keyboard *
3978 struct wl_proxy *
id;
3980 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_seat,
3983 return (
struct wl_keyboard *)
id;
3997 static inline struct wl_touch *
4000 struct wl_proxy *
id;
4002 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_seat,
4005 return (
struct wl_touch *)
id;
4017 wl_proxy_marshal_flags((
struct wl_proxy *) wl_seat,
4018 WL_SEAT_RELEASE,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_seat), WL_MARSHAL_FLAG_DESTROY);
4021 #ifndef WL_POINTER_ERROR_ENUM
4022 #define WL_POINTER_ERROR_ENUM
4031 #ifndef WL_POINTER_BUTTON_STATE_ENUM
4032 #define WL_POINTER_BUTTON_STATE_ENUM
4052 #ifndef WL_POINTER_AXIS_ENUM
4053 #define WL_POINTER_AXIS_ENUM
4072 #ifndef WL_POINTER_AXIS_SOURCE_ENUM
4073 #define WL_POINTER_AXIS_SOURCE_ENUM
4117 #define WL_POINTER_AXIS_SOURCE_WHEEL_TILT_SINCE_VERSION 6
4140 struct wl_pointer *wl_pointer,
4143 wl_fixed_t surface_x,
4144 wl_fixed_t surface_y);
4157 struct wl_pointer *wl_pointer,
4171 struct wl_pointer *wl_pointer,
4173 wl_fixed_t surface_x,
4174 wl_fixed_t surface_y);
4197 struct wl_pointer *wl_pointer,
4226 struct wl_pointer *wl_pointer,
4270 struct wl_pointer *wl_pointer);
4303 struct wl_pointer *wl_pointer,
4327 struct wl_pointer *wl_pointer,
4365 struct wl_pointer *wl_pointer,
4377 return wl_proxy_add_listener((
struct wl_proxy *) wl_pointer,
4378 (
void (**)(
void)) listener,
data);
4381 #define WL_POINTER_SET_CURSOR 0
4382 #define WL_POINTER_RELEASE 1
4387 #define WL_POINTER_ENTER_SINCE_VERSION 1
4391 #define WL_POINTER_LEAVE_SINCE_VERSION 1
4395 #define WL_POINTER_MOTION_SINCE_VERSION 1
4399 #define WL_POINTER_BUTTON_SINCE_VERSION 1
4403 #define WL_POINTER_AXIS_SINCE_VERSION 1
4407 #define WL_POINTER_FRAME_SINCE_VERSION 5
4411 #define WL_POINTER_AXIS_SOURCE_SINCE_VERSION 5
4415 #define WL_POINTER_AXIS_STOP_SINCE_VERSION 5
4419 #define WL_POINTER_AXIS_DISCRETE_SINCE_VERSION 5
4424 #define WL_POINTER_SET_CURSOR_SINCE_VERSION 1
4428 #define WL_POINTER_RELEASE_SINCE_VERSION 3
4434 wl_proxy_set_user_data((
struct wl_proxy *) wl_pointer, user_data);
4438 static inline void *
4441 return wl_proxy_get_user_data((
struct wl_proxy *) wl_pointer);
4447 return wl_proxy_get_version((
struct wl_proxy *) wl_pointer);
4454 wl_proxy_destroy((
struct wl_proxy *) wl_pointer);
4495 wl_proxy_marshal_flags((
struct wl_proxy *) wl_pointer,
4511 wl_proxy_marshal_flags((
struct wl_proxy *) wl_pointer,
4512 WL_POINTER_RELEASE,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_pointer), WL_MARSHAL_FLAG_DESTROY);
4515 #ifndef WL_KEYBOARD_KEYMAP_FORMAT_ENUM
4516 #define WL_KEYBOARD_KEYMAP_FORMAT_ENUM
4536 #ifndef WL_KEYBOARD_KEY_STATE_ENUM
4537 #define WL_KEYBOARD_KEY_STATE_ENUM
4571 struct wl_keyboard *wl_keyboard,
4585 struct wl_keyboard *wl_keyboard,
4588 struct wl_array *keys);
4601 struct wl_keyboard *wl_keyboard,
4615 struct wl_keyboard *wl_keyboard,
4632 struct wl_keyboard *wl_keyboard,
4659 struct wl_keyboard *wl_keyboard,
4671 return wl_proxy_add_listener((
struct wl_proxy *) wl_keyboard,
4672 (
void (**)(
void)) listener,
data);
4675 #define WL_KEYBOARD_RELEASE 0
4680 #define WL_KEYBOARD_KEYMAP_SINCE_VERSION 1
4684 #define WL_KEYBOARD_ENTER_SINCE_VERSION 1
4688 #define WL_KEYBOARD_LEAVE_SINCE_VERSION 1
4692 #define WL_KEYBOARD_KEY_SINCE_VERSION 1
4696 #define WL_KEYBOARD_MODIFIERS_SINCE_VERSION 1
4700 #define WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION 4
4705 #define WL_KEYBOARD_RELEASE_SINCE_VERSION 3
4711 wl_proxy_set_user_data((
struct wl_proxy *) wl_keyboard, user_data);
4715 static inline void *
4718 return wl_proxy_get_user_data((
struct wl_proxy *) wl_keyboard);
4724 return wl_proxy_get_version((
struct wl_proxy *) wl_keyboard);
4731 wl_proxy_destroy((
struct wl_proxy *) wl_keyboard);
4740 wl_proxy_marshal_flags((
struct wl_proxy *) wl_keyboard,
4764 struct wl_touch *wl_touch,
4782 struct wl_touch *wl_touch,
4796 struct wl_touch *wl_touch,
4814 struct wl_touch *wl_touch);
4826 struct wl_touch *wl_touch);
4862 struct wl_touch *wl_touch,
4897 struct wl_touch *wl_touch,
4909 return wl_proxy_add_listener((
struct wl_proxy *) wl_touch,
4910 (
void (**)(
void)) listener,
data);
4913 #define WL_TOUCH_RELEASE 0
4918 #define WL_TOUCH_DOWN_SINCE_VERSION 1
4922 #define WL_TOUCH_UP_SINCE_VERSION 1
4926 #define WL_TOUCH_MOTION_SINCE_VERSION 1
4930 #define WL_TOUCH_FRAME_SINCE_VERSION 1
4934 #define WL_TOUCH_CANCEL_SINCE_VERSION 1
4938 #define WL_TOUCH_SHAPE_SINCE_VERSION 6
4942 #define WL_TOUCH_ORIENTATION_SINCE_VERSION 6
4947 #define WL_TOUCH_RELEASE_SINCE_VERSION 3
4953 wl_proxy_set_user_data((
struct wl_proxy *) wl_touch, user_data);
4957 static inline void *
4960 return wl_proxy_get_user_data((
struct wl_proxy *) wl_touch);
4966 return wl_proxy_get_version((
struct wl_proxy *) wl_touch);
4973 wl_proxy_destroy((
struct wl_proxy *) wl_touch);
4982 wl_proxy_marshal_flags((
struct wl_proxy *) wl_touch,
4983 WL_TOUCH_RELEASE,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_touch), WL_MARSHAL_FLAG_DESTROY);
4986 #ifndef WL_OUTPUT_SUBPIXEL_ENUM
4987 #define WL_OUTPUT_SUBPIXEL_ENUM
5023 #ifndef WL_OUTPUT_TRANSFORM_ENUM
5024 #define WL_OUTPUT_TRANSFORM_ENUM
5077 #ifndef WL_OUTPUT_MODE_ENUM
5078 #define WL_OUTPUT_MODE_ENUM
5119 struct wl_output *wl_output,
5150 struct wl_output *wl_output,
5166 struct wl_output *wl_output);
5190 struct wl_output *wl_output,
5201 return wl_proxy_add_listener((
struct wl_proxy *) wl_output,
5202 (
void (**)(
void)) listener,
data);
5205 #define WL_OUTPUT_RELEASE 0
5210 #define WL_OUTPUT_GEOMETRY_SINCE_VERSION 1
5214 #define WL_OUTPUT_MODE_SINCE_VERSION 1
5218 #define WL_OUTPUT_DONE_SINCE_VERSION 2
5222 #define WL_OUTPUT_SCALE_SINCE_VERSION 2
5227 #define WL_OUTPUT_RELEASE_SINCE_VERSION 3
5233 wl_proxy_set_user_data((
struct wl_proxy *) wl_output, user_data);
5237 static inline void *
5240 return wl_proxy_get_user_data((
struct wl_proxy *) wl_output);
5246 return wl_proxy_get_version((
struct wl_proxy *) wl_output);
5253 wl_proxy_destroy((
struct wl_proxy *) wl_output);
5265 wl_proxy_marshal_flags((
struct wl_proxy *) wl_output,
5266 WL_OUTPUT_RELEASE,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_output), WL_MARSHAL_FLAG_DESTROY);
5269 #define WL_REGION_DESTROY 0
5270 #define WL_REGION_ADD 1
5271 #define WL_REGION_SUBTRACT 2
5277 #define WL_REGION_DESTROY_SINCE_VERSION 1
5281 #define WL_REGION_ADD_SINCE_VERSION 1
5285 #define WL_REGION_SUBTRACT_SINCE_VERSION 1
5291 wl_proxy_set_user_data((
struct wl_proxy *) wl_region, user_data);
5295 static inline void *
5298 return wl_proxy_get_user_data((
struct wl_proxy *) wl_region);
5304 return wl_proxy_get_version((
struct wl_proxy *) wl_region);
5315 wl_proxy_marshal_flags((
struct wl_proxy *) wl_region,
5316 WL_REGION_DESTROY,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_region), WL_MARSHAL_FLAG_DESTROY);
5327 wl_proxy_marshal_flags((
struct wl_proxy *) wl_region,
5339 wl_proxy_marshal_flags((
struct wl_proxy *) wl_region,
5343 #ifndef WL_SUBCOMPOSITOR_ERROR_ENUM
5344 #define WL_SUBCOMPOSITOR_ERROR_ENUM
5353 #define WL_SUBCOMPOSITOR_DESTROY 0
5354 #define WL_SUBCOMPOSITOR_GET_SUBSURFACE 1
5360 #define WL_SUBCOMPOSITOR_DESTROY_SINCE_VERSION 1
5364 #define WL_SUBCOMPOSITOR_GET_SUBSURFACE_SINCE_VERSION 1
5370 wl_proxy_set_user_data((
struct wl_proxy *) wl_subcompositor, user_data);
5374 static inline void *
5377 return wl_proxy_get_user_data((
struct wl_proxy *) wl_subcompositor);
5383 return wl_proxy_get_version((
struct wl_proxy *) wl_subcompositor);
5396 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subcompositor,
5411 static inline struct wl_subsurface *
5414 struct wl_proxy *
id;
5416 id = wl_proxy_marshal_flags((
struct wl_proxy *) wl_subcompositor,
5419 return (
struct wl_subsurface *)
id;
5422 #ifndef WL_SUBSURFACE_ERROR_ENUM
5423 #define WL_SUBSURFACE_ERROR_ENUM
5432 #define WL_SUBSURFACE_DESTROY 0
5433 #define WL_SUBSURFACE_SET_POSITION 1
5434 #define WL_SUBSURFACE_PLACE_ABOVE 2
5435 #define WL_SUBSURFACE_PLACE_BELOW 3
5436 #define WL_SUBSURFACE_SET_SYNC 4
5437 #define WL_SUBSURFACE_SET_DESYNC 5
5443 #define WL_SUBSURFACE_DESTROY_SINCE_VERSION 1
5447 #define WL_SUBSURFACE_SET_POSITION_SINCE_VERSION 1
5451 #define WL_SUBSURFACE_PLACE_ABOVE_SINCE_VERSION 1
5455 #define WL_SUBSURFACE_PLACE_BELOW_SINCE_VERSION 1
5459 #define WL_SUBSURFACE_SET_SYNC_SINCE_VERSION 1
5463 #define WL_SUBSURFACE_SET_DESYNC_SINCE_VERSION 1
5469 wl_proxy_set_user_data((
struct wl_proxy *) wl_subsurface, user_data);
5473 static inline void *
5476 return wl_proxy_get_user_data((
struct wl_proxy *) wl_subsurface);
5482 return wl_proxy_get_version((
struct wl_proxy *) wl_subsurface);
5497 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
5524 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
5550 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
5563 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
5587 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
5617 wl_proxy_marshal_flags((
struct wl_proxy *) wl_subsurface,
static void wl_shell_set_user_data(struct wl_shell *wl_shell, void *user_data)
static void * wl_data_offer_get_user_data(struct wl_data_offer *wl_data_offer)
void(* delete_id)(void *data, struct wl_display *wl_display, uint32_t id)
@ WL_POINTER_AXIS_SOURCE_WHEEL
static void wl_data_offer_set_user_data(struct wl_data_offer *wl_data_offer, void *user_data)
static int wl_data_offer_add_listener(struct wl_data_offer *wl_data_offer, const struct wl_data_offer_listener *listener, void *data)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
static struct wl_surface * wl_compositor_create_surface(struct wl_compositor *wl_compositor)
static struct wl_shell_surface * wl_shell_get_shell_surface(struct wl_shell *wl_shell, struct wl_surface *surface)
static struct wl_registry * wl_display_get_registry(struct wl_display *wl_display)
static void wl_subcompositor_destroy(struct wl_subcompositor *wl_subcompositor)
static void wl_subcompositor_set_user_data(struct wl_subcompositor *wl_subcompositor, void *user_data)
@ WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1
static uint32_t wl_output_get_version(struct wl_output *wl_output)
void(* orientation)(void *data, struct wl_touch *wl_touch, int32_t id, wl_fixed_t orientation)
static void wl_seat_destroy(struct wl_seat *wl_seat)
static void wl_surface_damage_buffer(struct wl_surface *wl_surface, int32_t x, int32_t y, int32_t width, int32_t height)
static uint32_t wl_shell_surface_get_version(struct wl_shell_surface *wl_shell_surface)
@ WL_DATA_SOURCE_ERROR_INVALID_SOURCE
void(* source_actions)(void *data, struct wl_data_offer *wl_data_offer, uint32_t source_actions)
void(* done)(void *data, struct wl_output *wl_output)
@ WL_DATA_OFFER_ERROR_INVALID_OFFER
static int wl_output_add_listener(struct wl_output *wl_output, const struct wl_output_listener *listener, void *data)
void(* motion)(void *data, struct wl_pointer *wl_pointer, uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y)
static uint32_t wl_shm_get_version(struct wl_shm *wl_shm)
static void wl_surface_set_buffer_transform(struct wl_surface *wl_surface, int32_t transform)
static struct wl_keyboard * wl_seat_get_keyboard(struct wl_seat *wl_seat)
GLenum GLenum GLenum GLenum GLenum scale
static void wl_subsurface_place_below(struct wl_subsurface *wl_subsurface, struct wl_surface *sibling)
#define WL_SHELL_SURFACE_SET_TRANSIENT
@ WL_SHELL_SURFACE_RESIZE_TOP_RIGHT
static void wl_surface_set_user_data(struct wl_surface *wl_surface, void *user_data)
const struct wl_interface wl_data_device_interface
static void * wl_output_get_user_data(struct wl_output *wl_output)
EGLSurface EGLnsecsANDROID time
static void wl_region_set_user_data(struct wl_region *wl_region, void *user_data)
static void wl_data_device_start_drag(struct wl_data_device *wl_data_device, struct wl_data_source *source, struct wl_surface *origin, struct wl_surface *icon, uint32_t serial)
static void wl_surface_commit(struct wl_surface *wl_surface)
static void wl_subsurface_set_sync(struct wl_subsurface *wl_subsurface)
static void wl_region_subtract(struct wl_region *wl_region, int32_t x, int32_t y, int32_t width, int32_t height)
void(* cancel)(void *data, struct wl_touch *wl_touch)
const struct wl_interface wl_pointer_interface
static void * wl_subsurface_get_user_data(struct wl_subsurface *wl_subsurface)
#define WL_SHELL_SURFACE_RESIZE
static uint32_t wl_touch_get_version(struct wl_touch *wl_touch)
@ WL_POINTER_AXIS_SOURCE_WHEEL_TILT
void(* down)(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, struct wl_surface *surface, int32_t id, wl_fixed_t x, wl_fixed_t y)
static void wl_surface_set_opaque_region(struct wl_surface *wl_surface, struct wl_region *region)
static void wl_output_destroy(struct wl_output *wl_output)
@ WL_SHELL_SURFACE_RESIZE_BOTTOM_RIGHT
@ WL_SHM_FORMAT_ABGR2101010
@ WL_SHM_FORMAT_ARGB2101010
@ WL_SEAT_CAPABILITY_KEYBOARD
#define WL_POINTER_RELEASE
GLsizei GLsizei GLchar * source
static void wl_pointer_set_cursor(struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface, int32_t hotspot_x, int32_t hotspot_y)
static int wl_data_source_add_listener(struct wl_data_source *wl_data_source, const struct wl_data_source_listener *listener, void *data)
static void * wl_data_source_get_user_data(struct wl_data_source *wl_data_source)
#define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE
const struct wl_interface wl_shm_pool_interface
static void wl_data_source_offer(struct wl_data_source *wl_data_source, const char *mime_type)
GLint GLint GLsizei width
GLuint GLsizei const GLchar * message
static void wl_compositor_destroy(struct wl_compositor *wl_compositor)
static void wl_shm_pool_set_user_data(struct wl_shm_pool *wl_shm_pool, void *user_data)
@ WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK
void(* up)(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id)
#define WL_DISPLAY_GET_REGISTRY
#define WL_SUBCOMPOSITOR_DESTROY
wl_data_device_manager_dnd_action
#define WL_DATA_DEVICE_SET_SELECTION
EGLint EGLint EGLuint64KHR * modifiers
static void wl_shell_surface_pong(struct wl_shell_surface *wl_shell_surface, uint32_t serial)
static uint32_t wl_callback_get_version(struct wl_callback *wl_callback)
const struct wl_interface wl_shell_surface_interface
@ WL_SHM_FORMAT_XRGB2101010
#define WL_SUBSURFACE_SET_DESYNC
static uint32_t wl_subsurface_get_version(struct wl_subsurface *wl_subsurface)
static struct wl_subsurface * wl_subcompositor_get_subsurface(struct wl_subcompositor *wl_subcompositor, struct wl_surface *surface, struct wl_surface *parent)
static int wl_shell_surface_add_listener(struct wl_shell_surface *wl_shell_surface, const struct wl_shell_surface_listener *listener, void *data)
static void wl_touch_set_user_data(struct wl_touch *wl_touch, void *user_data)
void(* capabilities)(void *data, struct wl_seat *wl_seat, uint32_t capabilities)
#define WL_SURFACE_SET_OPAQUE_REGION
void(* dnd_finished)(void *data, struct wl_data_source *wl_data_source)
#define WL_SUBSURFACE_SET_POSITION
#define WL_DATA_OFFER_FINISH
static uint32_t wl_display_get_version(struct wl_display *wl_display)
@ WL_SHELL_SURFACE_RESIZE_LEFT
@ WL_KEYBOARD_KEY_STATE_RELEASED
static uint32_t wl_region_get_version(struct wl_region *wl_region)
void(* key)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state)
static void * wl_surface_get_user_data(struct wl_surface *wl_surface)
void(* axis_discrete)(void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t discrete)
@ WL_OUTPUT_TRANSFORM_180
@ WL_OUTPUT_SUBPIXEL_NONE
void(* axis_stop)(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
@ WL_KEYBOARD_KEY_STATE_PRESSED
void(* frame)(void *data, struct wl_touch *wl_touch)
@ WL_DATA_DEVICE_ERROR_ROLE
static void wl_region_add(struct wl_region *wl_region, int32_t x, int32_t y, int32_t width, int32_t height)
static void wl_seat_set_user_data(struct wl_seat *wl_seat, void *user_data)
static uint32_t wl_buffer_get_version(struct wl_buffer *wl_buffer)
static void wl_data_offer_destroy(struct wl_data_offer *wl_data_offer)
static void * wl_compositor_get_user_data(struct wl_compositor *wl_compositor)
#define WL_SUBSURFACE_DESTROY
static Uint32 callback(Uint32 interval, void *param)
#define WL_DATA_OFFER_DESTROY
@ WL_SHM_ERROR_INVALID_STRIDE
#define WL_KEYBOARD_RELEASE
@ WL_OUTPUT_TRANSFORM_270
#define WL_REGION_DESTROY
#define WL_SHELL_SURFACE_SET_POPUP
static void wl_shell_surface_set_transient(struct wl_shell_surface *wl_shell_surface, struct wl_surface *parent, int32_t x, int32_t y, uint32_t flags)
static void * wl_region_get_user_data(struct wl_region *wl_region)
@ WL_DATA_OFFER_ERROR_INVALID_FINISH
@ WL_OUTPUT_TRANSFORM_FLIPPED
void(* drop)(void *data, struct wl_data_device *wl_data_device)
static void wl_shell_destroy(struct wl_shell *wl_shell)
@ WL_SHELL_SURFACE_RESIZE_BOTTOM
static uint32_t wl_subcompositor_get_version(struct wl_subcompositor *wl_subcompositor)
static uint32_t wl_compositor_get_version(struct wl_compositor *wl_compositor)
#define WL_REGION_SUBTRACT
static uint32_t wl_pointer_get_version(struct wl_pointer *wl_pointer)
const struct wl_interface wl_display_interface
static int wl_callback_add_listener(struct wl_callback *wl_callback, const struct wl_callback_listener *listener, void *data)
const struct wl_interface wl_compositor_interface
static void wl_pointer_destroy(struct wl_pointer *wl_pointer)
@ WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE
@ WL_SHM_ERROR_INVALID_FORMAT
@ WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP
#define WL_DATA_SOURCE_OFFER
@ WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE
void(* global)(void *data, struct wl_registry *wl_registry, uint32_t name, const char *interface, uint32_t version)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define WL_DATA_OFFER_SET_ACTIONS
static void wl_shm_pool_destroy(struct wl_shm_pool *wl_shm_pool)
void(* action)(void *data, struct wl_data_source *wl_data_source, uint32_t dnd_action)
void(* leave)(void *data, struct wl_data_device *wl_data_device)
const struct wl_interface wl_data_device_manager_interface
static uint32_t wl_shell_get_version(struct wl_shell *wl_shell)
@ WL_SHM_ERROR_INVALID_FD
void(* enter)(void *data, struct wl_data_device *wl_data_device, uint32_t serial, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *id)
static void * wl_registry_bind(struct wl_registry *wl_registry, uint32_t name, const struct wl_interface *interface, uint32_t version)
static void * wl_pointer_get_user_data(struct wl_pointer *wl_pointer)
static void wl_region_destroy(struct wl_region *wl_region)
#define WL_POINTER_SET_CURSOR
static void wl_shell_surface_set_class(struct wl_shell_surface *wl_shell_surface, const char *class_)
static struct wl_region * wl_compositor_create_region(struct wl_compositor *wl_compositor)
static void wl_callback_destroy(struct wl_callback *wl_callback)
static void * wl_display_get_user_data(struct wl_display *wl_display)
static int wl_data_device_add_listener(struct wl_data_device *wl_data_device, const struct wl_data_device_listener *listener, void *data)
static void wl_surface_set_input_region(struct wl_surface *wl_surface, struct wl_region *region)
static void wl_data_device_set_user_data(struct wl_data_device *wl_data_device, void *user_data)
static uint32_t wl_data_source_get_version(struct wl_data_source *wl_data_source)
static void wl_data_device_destroy(struct wl_data_device *wl_data_device)
static void wl_surface_attach(struct wl_surface *wl_surface, struct wl_buffer *buffer, int32_t x, int32_t y)
static uint32_t wl_data_offer_get_version(struct wl_data_offer *wl_data_offer)
@ WL_DATA_SOURCE_ERROR_INVALID_ACTION_MASK
static void wl_shell_surface_destroy(struct wl_shell_surface *wl_shell_surface)
static void wl_data_device_manager_destroy(struct wl_data_device_manager *wl_data_device_manager)
static void * wl_shell_surface_get_user_data(struct wl_shell_surface *wl_shell_surface)
static uint32_t wl_keyboard_get_version(struct wl_keyboard *wl_keyboard)
@ WL_SUBSURFACE_ERROR_BAD_SURFACE
static uint32_t wl_registry_get_version(struct wl_registry *wl_registry)
#define WL_COMPOSITOR_CREATE_SURFACE
@ WL_SHM_FORMAT_RGBX1010102
void(* configure)(void *data, struct wl_shell_surface *wl_shell_surface, uint32_t edges, int32_t width, int32_t height)
@ WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE
static void wl_data_source_set_user_data(struct wl_data_source *wl_data_source, void *user_data)
void(* enter)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
static void wl_compositor_set_user_data(struct wl_compositor *wl_compositor, void *user_data)
static uint32_t wl_seat_get_version(struct wl_seat *wl_seat)
static uint32_t wl_surface_get_version(struct wl_surface *wl_surface)
#define WL_SHM_POOL_RESIZE
@ WL_DISPLAY_ERROR_INVALID_METHOD
static void wl_shm_set_user_data(struct wl_shm *wl_shm, void *user_data)
wl_shell_surface_fullscreen_method
static void wl_shell_surface_set_title(struct wl_shell_surface *wl_shell_surface, const char *title)
static uint32_t wl_data_device_manager_get_version(struct wl_data_device_manager *wl_data_device_manager)
GLint GLint GLint GLint GLint x
void(* selection)(void *data, struct wl_data_device *wl_data_device, struct wl_data_offer *id)
@ WL_DATA_OFFER_ERROR_INVALID_ACTION
const struct wl_interface wl_shell_interface
#define WL_SHELL_SURFACE_SET_TOPLEVEL
static void wl_display_set_user_data(struct wl_display *wl_display, void *user_data)
wl_shell_surface_transient
void(* name)(void *data, struct wl_seat *wl_seat, const char *name)
static void wl_shell_surface_move(struct wl_shell_surface *wl_shell_surface, struct wl_seat *seat, uint32_t serial)
@ WL_SHELL_SURFACE_RESIZE_RIGHT
#define WL_SEAT_GET_TOUCH
void(* done)(void *data, struct wl_callback *wl_callback, uint32_t callback_data)
@ WL_SHELL_SURFACE_FULLSCREEN_METHOD_DRIVER
static void * wl_buffer_get_user_data(struct wl_buffer *wl_buffer)
@ WL_POINTER_BUTTON_STATE_RELEASED
static struct wl_pointer * wl_seat_get_pointer(struct wl_seat *wl_seat)
const struct wl_interface wl_subsurface_interface
@ WL_POINTER_AXIS_SOURCE_FINGER
GLint GLint GLsizei GLsizei height
const struct wl_interface wl_shm_interface
static int wl_surface_add_listener(struct wl_surface *wl_surface, const struct wl_surface_listener *listener, void *data)
void(* motion)(void *data, struct wl_data_device *wl_data_device, uint32_t time, wl_fixed_t x, wl_fixed_t y)
static void wl_keyboard_release(struct wl_keyboard *wl_keyboard)
@ WL_DISPLAY_ERROR_INVALID_OBJECT
@ WL_SHM_FORMAT_RGBA1010102
GLuint const GLchar * name
static void wl_output_release(struct wl_output *wl_output)
static void wl_pointer_set_user_data(struct wl_pointer *wl_pointer, void *user_data)
static struct wl_callback * wl_surface_frame(struct wl_surface *wl_surface)
static void wl_data_device_release(struct wl_data_device *wl_data_device)
#define WL_SURFACE_SET_BUFFER_TRANSFORM
static struct wl_buffer * wl_shm_pool_create_buffer(struct wl_shm_pool *wl_shm_pool, int32_t offset, int32_t width, int32_t height, int32_t stride, uint32_t format)
static void wl_subsurface_set_desync(struct wl_subsurface *wl_subsurface)
@ WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT
@ WL_SEAT_CAPABILITY_TOUCH
static void wl_data_offer_finish(struct wl_data_offer *wl_data_offer)
static int wl_touch_add_listener(struct wl_touch *wl_touch, const struct wl_touch_listener *listener, void *data)
static void * wl_subcompositor_get_user_data(struct wl_subcompositor *wl_subcompositor)
#define WL_SUBSURFACE_PLACE_ABOVE
#define WL_DATA_OFFER_RECEIVE
@ WL_DISPLAY_ERROR_NO_MEMORY
void(* button)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state)
void(* leave)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface)
@ WL_SHELL_SURFACE_RESIZE_BOTTOM_LEFT
@ WL_POINTER_AXIS_VERTICAL_SCROLL
const struct wl_interface wl_output_interface
#define WL_SHELL_SURFACE_SET_CLASS
static void wl_shm_destroy(struct wl_shm *wl_shm)
static void * wl_data_device_get_user_data(struct wl_data_device *wl_data_device)
static void * wl_seat_get_user_data(struct wl_seat *wl_seat)
@ WL_SURFACE_ERROR_INVALID_SCALE
#define WL_COMPOSITOR_CREATE_REGION
void(* enter)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x, wl_fixed_t surface_y)
const struct wl_interface wl_region_interface
@ WL_SHM_FORMAT_BGRA1010102
@ WL_OUTPUT_MODE_PREFERRED
#define WL_SHELL_GET_SHELL_SURFACE
@ WL_SHM_FORMAT_XBGR2101010
static void wl_touch_destroy(struct wl_touch *wl_touch)
static void wl_data_offer_accept(struct wl_data_offer *wl_data_offer, uint32_t serial, const char *mime_type)
@ WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE
static void wl_keyboard_destroy(struct wl_keyboard *wl_keyboard)
const struct wl_interface wl_subcompositor_interface
@ WL_OUTPUT_SUBPIXEL_HORIZONTAL_BGR
#define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE
@ WL_DATA_OFFER_ERROR_INVALID_ACTION_MASK
@ WL_OUTPUT_TRANSFORM_FLIPPED_270
void(* ping)(void *data, struct wl_shell_surface *wl_shell_surface, uint32_t serial)
static void wl_shell_surface_set_maximized(struct wl_shell_surface *wl_shell_surface, struct wl_output *output)
static int wl_pointer_add_listener(struct wl_pointer *wl_pointer, const struct wl_pointer_listener *listener, void *data)
static void wl_data_device_set_selection(struct wl_data_device *wl_data_device, struct wl_data_source *source, uint32_t serial)
static int wl_display_add_listener(struct wl_display *wl_display, const struct wl_display_listener *listener, void *data)
void(* repeat_info)(void *data, struct wl_keyboard *wl_keyboard, int32_t rate, int32_t delay)
static void wl_subsurface_set_user_data(struct wl_subsurface *wl_subsurface, void *user_data)
const struct wl_interface wl_buffer_interface
#define WL_DATA_DEVICE_START_DRAG
GLint GLint GLint GLint GLint GLint y
void(* popup_done)(void *data, struct wl_shell_surface *wl_shell_surface)
void(* frame)(void *data, struct wl_pointer *wl_pointer)
static void * wl_registry_get_user_data(struct wl_registry *wl_registry)
static void wl_shell_surface_set_popup(struct wl_shell_surface *wl_shell_surface, struct wl_seat *seat, uint32_t serial, struct wl_surface *parent, int32_t x, int32_t y, uint32_t flags)
void(* cancelled)(void *data, struct wl_data_source *wl_data_source)
@ WL_SHM_FORMAT_BGRX1010102
#define WL_SHELL_SURFACE_SET_MAXIMIZED
@ WL_SHELL_SURFACE_TRANSIENT_INACTIVE
@ WL_SHELL_SURFACE_RESIZE_NONE
static void wl_surface_set_buffer_scale(struct wl_surface *wl_surface, int32_t scale)
#define WL_SURFACE_COMMIT
@ WL_OUTPUT_SUBPIXEL_VERTICAL_RGB
static int wl_seat_add_listener(struct wl_seat *wl_seat, const struct wl_seat_listener *listener, void *data)
#define WL_SHM_POOL_CREATE_BUFFER
static void wl_data_source_destroy(struct wl_data_source *wl_data_source)
GLuint GLenum GLenum transform
#define WL_SHM_CREATE_POOL
@ WL_SURFACE_ERROR_INVALID_TRANSFORM
static void wl_shell_surface_set_fullscreen(struct wl_shell_surface *wl_shell_surface, uint32_t method, uint32_t framerate, struct wl_output *output)
#define WL_SURFACE_DAMAGE
@ WL_OUTPUT_TRANSFORM_FLIPPED_180
#define WL_SHM_POOL_DESTROY
@ WL_POINTER_AXIS_HORIZONTAL_SCROLL
@ WL_SHELL_SURFACE_FULLSCREEN_METHOD_FILL
static void wl_keyboard_set_user_data(struct wl_keyboard *wl_keyboard, void *user_data)
static void wl_output_set_user_data(struct wl_output *wl_output, void *user_data)
#define WL_DATA_SOURCE_DESTROY
static void wl_touch_release(struct wl_touch *wl_touch)
#define WL_SHELL_SURFACE_MOVE
void(* motion)(void *data, struct wl_touch *wl_touch, uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y)
void(* offer)(void *data, struct wl_data_offer *wl_data_offer, const char *mime_type)
static void wl_data_device_manager_set_user_data(struct wl_data_device_manager *wl_data_device_manager, void *user_data)
const struct wl_interface wl_callback_interface
static int wl_keyboard_add_listener(struct wl_keyboard *wl_keyboard, const struct wl_keyboard_listener *listener, void *data)
GLsizei const GLfloat * value
#define WL_SEAT_GET_KEYBOARD
static struct wl_touch * wl_seat_get_touch(struct wl_seat *wl_seat)
static void wl_registry_set_user_data(struct wl_registry *wl_registry, void *user_data)
#define WL_SHELL_SURFACE_SET_FULLSCREEN
static void * wl_data_device_manager_get_user_data(struct wl_data_device_manager *wl_data_device_manager)
void(* release)(void *data, struct wl_buffer *wl_buffer)
static void wl_shm_pool_resize(struct wl_shm_pool *wl_shm_pool, int32_t size)
const struct wl_interface wl_data_offer_interface
static void wl_buffer_set_user_data(struct wl_buffer *wl_buffer, void *user_data)
void(* enter)(void *data, struct wl_surface *wl_surface, struct wl_output *output)
const struct wl_interface wl_surface_interface
void(* send)(void *data, struct wl_data_source *wl_data_source, const char *mime_type, int32_t fd)
#define WL_SURFACE_DAMAGE_BUFFER
static void wl_seat_release(struct wl_seat *wl_seat)
void(* axis)(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
@ WL_POINTER_BUTTON_STATE_PRESSED
#define WL_SUBSURFACE_SET_SYNC
void(* global_remove)(void *data, struct wl_registry *wl_registry, uint32_t name)
static struct wl_data_source * wl_data_device_manager_create_data_source(struct wl_data_device_manager *wl_data_device_manager)
@ WL_SEAT_CAPABILITY_POINTER
static void wl_callback_set_user_data(struct wl_callback *wl_callback, void *user_data)
#define WL_SUBCOMPOSITOR_GET_SUBSURFACE
const struct wl_interface wl_touch_interface
#define WL_SURFACE_ATTACH
static uint32_t wl_shm_pool_get_version(struct wl_shm_pool *wl_shm_pool)
void(* data_offer)(void *data, struct wl_data_device *wl_data_device, struct wl_data_offer *id)
#define WL_SURFACE_SET_INPUT_REGION
@ WL_OUTPUT_SUBPIXEL_VERTICAL_BGR
#define WL_SHELL_SURFACE_SET_TITLE
static void * wl_shm_pool_get_user_data(struct wl_shm_pool *wl_shm_pool)
@ WL_OUTPUT_SUBPIXEL_UNKNOWN
static void wl_data_source_set_actions(struct wl_data_source *wl_data_source, uint32_t dnd_actions)
#define WL_SEAT_GET_POINTER
#define WL_SUBSURFACE_PLACE_BELOW
static void * wl_shell_get_user_data(struct wl_shell *wl_shell)
#define WL_BUFFER_DESTROY
@ WL_SHELL_SURFACE_RESIZE_TOP_LEFT
#define WL_DATA_DEVICE_RELEASE
static void wl_data_offer_set_actions(struct wl_data_offer *wl_data_offer, uint32_t dnd_actions, uint32_t preferred_action)
#define WL_DATA_OFFER_ACCEPT
void(* shape)(void *data, struct wl_touch *wl_touch, int32_t id, wl_fixed_t major, wl_fixed_t minor)
void(* format)(void *data, struct wl_shm *wl_shm, uint32_t format)
static struct wl_callback * wl_display_sync(struct wl_display *wl_display)
#define WL_OUTPUT_RELEASE
static uint32_t wl_data_device_get_version(struct wl_data_device *wl_data_device)
static void * wl_callback_get_user_data(struct wl_callback *wl_callback)
const struct wl_interface wl_registry_interface
static void wl_pointer_release(struct wl_pointer *wl_pointer)
static void wl_surface_damage(struct wl_surface *wl_surface, int32_t x, int32_t y, int32_t width, int32_t height)
static void wl_surface_destroy(struct wl_surface *wl_surface)
const struct wl_interface wl_keyboard_interface
void(* action)(void *data, struct wl_data_offer *wl_data_offer, uint32_t dnd_action)
#define WL_SURFACE_DESTROY
const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char int const SDL_PRINTF_FORMAT_STRING char const char const SDL_SCANF_FORMAT_STRING char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
static void wl_shell_surface_set_user_data(struct wl_shell_surface *wl_shell_surface, void *user_data)
static int wl_shm_add_listener(struct wl_shm *wl_shm, const struct wl_shm_listener *listener, void *data)
static struct wl_data_device * wl_data_device_manager_get_data_device(struct wl_data_device_manager *wl_data_device_manager, struct wl_seat *seat)
#define WL_DATA_SOURCE_SET_ACTIONS
@ WL_SHELL_SURFACE_RESIZE_TOP
static int wl_registry_add_listener(struct wl_registry *wl_registry, const struct wl_registry_listener *listener, void *data)
static void wl_subsurface_destroy(struct wl_subsurface *wl_subsurface)
static void * wl_touch_get_user_data(struct wl_touch *wl_touch)
void(* leave)(void *data, struct wl_surface *wl_surface, struct wl_output *output)
void(* leave)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface)
static void * wl_keyboard_get_user_data(struct wl_keyboard *wl_keyboard)
static void wl_shell_surface_set_toplevel(struct wl_shell_surface *wl_shell_surface)
static int wl_buffer_add_listener(struct wl_buffer *wl_buffer, const struct wl_buffer_listener *listener, void *data)
void(* keymap)(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size)
#define WL_SURFACE_SET_BUFFER_SCALE
@ WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY
const struct wl_interface wl_data_source_interface
const struct wl_interface wl_seat_interface
static void wl_registry_destroy(struct wl_registry *wl_registry)
static void wl_data_offer_receive(struct wl_data_offer *wl_data_offer, const char *mime_type, int32_t fd)
wl_keyboard_keymap_format
static void * wl_shm_get_user_data(struct wl_shm *wl_shm)
static struct wl_shm_pool * wl_shm_create_pool(struct wl_shm *wl_shm, int32_t fd, int32_t size)
#define WL_SHELL_SURFACE_PONG
@ WL_OUTPUT_SUBPIXEL_HORIZONTAL_RGB
@ WL_OUTPUT_TRANSFORM_NORMAL
void(* dnd_drop_performed)(void *data, struct wl_data_source *wl_data_source)
void(* axis_source)(void *data, struct wl_pointer *wl_pointer, uint32_t axis_source)
static void wl_subsurface_place_above(struct wl_subsurface *wl_subsurface, struct wl_surface *sibling)
@ WL_POINTER_AXIS_SOURCE_CONTINUOUS
static void wl_buffer_destroy(struct wl_buffer *wl_buffer)
static void wl_subsurface_set_position(struct wl_subsurface *wl_subsurface, int32_t x, int32_t y)
@ WL_OUTPUT_TRANSFORM_FLIPPED_90
void(* error)(void *data, struct wl_display *wl_display, void *object_id, uint32_t code, const char *message)
void(* geometry)(void *data, struct wl_output *wl_output, int32_t x, int32_t y, int32_t physical_width, int32_t physical_height, int32_t subpixel, const char *make, const char *model, int32_t transform)