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;
812 #ifndef WL_DISPLAY_ERROR_ENUM
813 #define WL_DISPLAY_ERROR_ENUM
857 struct wl_display *wl_display,
872 struct wl_display *wl_display,
883 return wl_proxy_add_listener((
struct wl_proxy *) wl_display,
884 (
void (**)(
void)) listener,
data);
887 #define WL_DISPLAY_SYNC 0
888 #define WL_DISPLAY_GET_REGISTRY 1
893 #define WL_DISPLAY_ERROR_SINCE_VERSION 1
897 #define WL_DISPLAY_DELETE_ID_SINCE_VERSION 1
902 #define WL_DISPLAY_SYNC_SINCE_VERSION 1
906 #define WL_DISPLAY_GET_REGISTRY_SINCE_VERSION 1
912 wl_proxy_set_user_data((
struct wl_proxy *) wl_display, user_data);
919 return wl_proxy_get_user_data((
struct wl_proxy *) wl_display);
925 return wl_proxy_get_version((
struct wl_proxy *) wl_display);
943 static inline struct wl_callback *
948 callback = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_display,
951 return (
struct wl_callback *)
callback;
961 static inline struct wl_registry *
964 struct wl_proxy *registry;
966 registry = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_display,
969 return (
struct wl_registry *) registry;
990 struct wl_registry *wl_registry,
992 const char *interface,
1010 struct wl_registry *wl_registry,
1021 return wl_proxy_add_listener((
struct wl_proxy *) wl_registry,
1022 (
void (**)(
void)) listener,
data);
1025 #define WL_REGISTRY_BIND 0
1030 #define WL_REGISTRY_GLOBAL_SINCE_VERSION 1
1034 #define WL_REGISTRY_GLOBAL_REMOVE_SINCE_VERSION 1
1039 #define WL_REGISTRY_BIND_SINCE_VERSION 1
1045 wl_proxy_set_user_data((
struct wl_proxy *) wl_registry, user_data);
1049 static inline void *
1052 return wl_proxy_get_user_data((
struct wl_proxy *) wl_registry);
1058 return wl_proxy_get_version((
struct wl_proxy *) wl_registry);
1065 wl_proxy_destroy((
struct wl_proxy *) wl_registry);
1074 static inline void *
1077 struct wl_proxy *
id;
1079 id = wl_proxy_marshal_constructor_versioned((
struct wl_proxy *) wl_registry,
1097 struct wl_callback *wl_callback,
1108 return wl_proxy_add_listener((
struct wl_proxy *) wl_callback,
1109 (
void (**)(
void)) listener,
data);
1115 #define WL_CALLBACK_DONE_SINCE_VERSION 1
1122 wl_proxy_set_user_data((
struct wl_proxy *) wl_callback, user_data);
1126 static inline void *
1129 return wl_proxy_get_user_data((
struct wl_proxy *) wl_callback);
1135 return wl_proxy_get_version((
struct wl_proxy *) wl_callback);
1142 wl_proxy_destroy((
struct wl_proxy *) wl_callback);
1145 #define WL_COMPOSITOR_CREATE_SURFACE 0
1146 #define WL_COMPOSITOR_CREATE_REGION 1
1152 #define WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION 1
1156 #define WL_COMPOSITOR_CREATE_REGION_SINCE_VERSION 1
1162 wl_proxy_set_user_data((
struct wl_proxy *) wl_compositor, user_data);
1166 static inline void *
1169 return wl_proxy_get_user_data((
struct wl_proxy *) wl_compositor);
1175 return wl_proxy_get_version((
struct wl_proxy *) wl_compositor);
1182 wl_proxy_destroy((
struct wl_proxy *) wl_compositor);
1190 static inline struct wl_surface *
1193 struct wl_proxy *
id;
1195 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_compositor,
1198 return (
struct wl_surface *)
id;
1206 static inline struct wl_region *
1209 struct wl_proxy *
id;
1211 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_compositor,
1214 return (
struct wl_region *)
id;
1217 #define WL_SHM_POOL_CREATE_BUFFER 0
1218 #define WL_SHM_POOL_DESTROY 1
1219 #define WL_SHM_POOL_RESIZE 2
1225 #define WL_SHM_POOL_CREATE_BUFFER_SINCE_VERSION 1
1229 #define WL_SHM_POOL_DESTROY_SINCE_VERSION 1
1233 #define WL_SHM_POOL_RESIZE_SINCE_VERSION 1
1239 wl_proxy_set_user_data((
struct wl_proxy *) wl_shm_pool, user_data);
1243 static inline void *
1246 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shm_pool);
1252 return wl_proxy_get_version((
struct wl_proxy *) wl_shm_pool);
1270 static inline struct wl_buffer *
1273 struct wl_proxy *
id;
1275 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_shm_pool,
1278 return (
struct wl_buffer *)
id;
1293 wl_proxy_marshal((
struct wl_proxy *) wl_shm_pool,
1296 wl_proxy_destroy((
struct wl_proxy *) wl_shm_pool);
1310 wl_proxy_marshal((
struct wl_proxy *) wl_shm_pool,
1314 #ifndef WL_SHM_ERROR_ENUM
1315 #define WL_SHM_ERROR_ENUM
1338 #ifndef WL_SHM_FORMAT_ENUM
1339 #define WL_SHM_FORMAT_ENUM
1603 struct wl_shm *wl_shm,
1614 return wl_proxy_add_listener((
struct wl_proxy *) wl_shm,
1615 (
void (**)(
void)) listener,
data);
1618 #define WL_SHM_CREATE_POOL 0
1623 #define WL_SHM_FORMAT_SINCE_VERSION 1
1628 #define WL_SHM_CREATE_POOL_SINCE_VERSION 1
1634 wl_proxy_set_user_data((
struct wl_proxy *) wl_shm, user_data);
1638 static inline void *
1641 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shm);
1647 return wl_proxy_get_version((
struct wl_proxy *) wl_shm);
1654 wl_proxy_destroy((
struct wl_proxy *) wl_shm);
1666 static inline struct wl_shm_pool *
1669 struct wl_proxy *
id;
1671 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_shm,
1674 return (
struct wl_shm_pool *)
id;
1699 struct wl_buffer *wl_buffer);
1709 return wl_proxy_add_listener((
struct wl_proxy *) wl_buffer,
1710 (
void (**)(
void)) listener,
data);
1713 #define WL_BUFFER_DESTROY 0
1718 #define WL_BUFFER_RELEASE_SINCE_VERSION 1
1723 #define WL_BUFFER_DESTROY_SINCE_VERSION 1
1729 wl_proxy_set_user_data((
struct wl_proxy *) wl_buffer, user_data);
1733 static inline void *
1736 return wl_proxy_get_user_data((
struct wl_proxy *) wl_buffer);
1742 return wl_proxy_get_version((
struct wl_proxy *) wl_buffer);
1756 wl_proxy_marshal((
struct wl_proxy *) wl_buffer,
1759 wl_proxy_destroy((
struct wl_proxy *) wl_buffer);
1762 #ifndef WL_DATA_OFFER_ERROR_ENUM
1763 #define WL_DATA_OFFER_ERROR_ENUM
1797 struct wl_data_offer *wl_data_offer,
1798 const char *mime_type);
1810 struct wl_data_offer *wl_data_offer,
1856 struct wl_data_offer *wl_data_offer,
1867 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_offer,
1868 (
void (**)(
void)) listener,
data);
1871 #define WL_DATA_OFFER_ACCEPT 0
1872 #define WL_DATA_OFFER_RECEIVE 1
1873 #define WL_DATA_OFFER_DESTROY 2
1874 #define WL_DATA_OFFER_FINISH 3
1875 #define WL_DATA_OFFER_SET_ACTIONS 4
1880 #define WL_DATA_OFFER_OFFER_SINCE_VERSION 1
1884 #define WL_DATA_OFFER_SOURCE_ACTIONS_SINCE_VERSION 3
1888 #define WL_DATA_OFFER_ACTION_SINCE_VERSION 3
1893 #define WL_DATA_OFFER_ACCEPT_SINCE_VERSION 1
1897 #define WL_DATA_OFFER_RECEIVE_SINCE_VERSION 1
1901 #define WL_DATA_OFFER_DESTROY_SINCE_VERSION 1
1905 #define WL_DATA_OFFER_FINISH_SINCE_VERSION 3
1909 #define WL_DATA_OFFER_SET_ACTIONS_SINCE_VERSION 3
1915 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_offer, user_data);
1919 static inline void *
1922 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_offer);
1928 return wl_proxy_get_version((
struct wl_proxy *) wl_data_offer);
1952 wl_proxy_marshal((
struct wl_proxy *) wl_data_offer,
1978 wl_proxy_marshal((
struct wl_proxy *) wl_data_offer,
1990 wl_proxy_marshal((
struct wl_proxy *) wl_data_offer,
1993 wl_proxy_destroy((
struct wl_proxy *) wl_data_offer);
2014 wl_proxy_marshal((
struct wl_proxy *) wl_data_offer,
2056 wl_proxy_marshal((
struct wl_proxy *) wl_data_offer,
2060 #ifndef WL_DATA_SOURCE_ERROR_ENUM
2061 #define WL_DATA_SOURCE_ERROR_ENUM
2089 struct wl_data_source *wl_data_source,
2090 const char *mime_type);
2101 struct wl_data_source *wl_data_source,
2102 const char *mime_type,
2128 struct wl_data_source *wl_data_source);
2146 struct wl_data_source *wl_data_source);
2159 struct wl_data_source *wl_data_source);
2194 struct wl_data_source *wl_data_source,
2205 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_source,
2206 (
void (**)(
void)) listener,
data);
2209 #define WL_DATA_SOURCE_OFFER 0
2210 #define WL_DATA_SOURCE_DESTROY 1
2211 #define WL_DATA_SOURCE_SET_ACTIONS 2
2216 #define WL_DATA_SOURCE_TARGET_SINCE_VERSION 1
2220 #define WL_DATA_SOURCE_SEND_SINCE_VERSION 1
2224 #define WL_DATA_SOURCE_CANCELLED_SINCE_VERSION 1
2228 #define WL_DATA_SOURCE_DND_DROP_PERFORMED_SINCE_VERSION 3
2232 #define WL_DATA_SOURCE_DND_FINISHED_SINCE_VERSION 3
2236 #define WL_DATA_SOURCE_ACTION_SINCE_VERSION 3
2241 #define WL_DATA_SOURCE_OFFER_SINCE_VERSION 1
2245 #define WL_DATA_SOURCE_DESTROY_SINCE_VERSION 1
2249 #define WL_DATA_SOURCE_SET_ACTIONS_SINCE_VERSION 3
2255 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_source, user_data);
2259 static inline void *
2262 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_source);
2268 return wl_proxy_get_version((
struct wl_proxy *) wl_data_source);
2281 wl_proxy_marshal((
struct wl_proxy *) wl_data_source,
2293 wl_proxy_marshal((
struct wl_proxy *) wl_data_source,
2296 wl_proxy_destroy((
struct wl_proxy *) wl_data_source);
2319 wl_proxy_marshal((
struct wl_proxy *) wl_data_source,
2323 #ifndef WL_DATA_DEVICE_ERROR_ENUM
2324 #define WL_DATA_DEVICE_ERROR_ENUM
2351 struct wl_data_device *wl_data_device,
2352 struct wl_data_offer *
id);
2367 struct wl_data_device *wl_data_device,
2372 struct wl_data_offer *
id);
2381 struct wl_data_device *wl_data_device);
2394 struct wl_data_device *wl_data_device,
2416 struct wl_data_device *wl_data_device);
2433 struct wl_data_device *wl_data_device,
2434 struct wl_data_offer *
id);
2444 return wl_proxy_add_listener((
struct wl_proxy *) wl_data_device,
2445 (
void (**)(
void)) listener,
data);
2448 #define WL_DATA_DEVICE_START_DRAG 0
2449 #define WL_DATA_DEVICE_SET_SELECTION 1
2450 #define WL_DATA_DEVICE_RELEASE 2
2455 #define WL_DATA_DEVICE_DATA_OFFER_SINCE_VERSION 1
2459 #define WL_DATA_DEVICE_ENTER_SINCE_VERSION 1
2463 #define WL_DATA_DEVICE_LEAVE_SINCE_VERSION 1
2467 #define WL_DATA_DEVICE_MOTION_SINCE_VERSION 1
2471 #define WL_DATA_DEVICE_DROP_SINCE_VERSION 1
2475 #define WL_DATA_DEVICE_SELECTION_SINCE_VERSION 1
2480 #define WL_DATA_DEVICE_START_DRAG_SINCE_VERSION 1
2484 #define WL_DATA_DEVICE_SET_SELECTION_SINCE_VERSION 1
2488 #define WL_DATA_DEVICE_RELEASE_SINCE_VERSION 2
2494 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_device, user_data);
2498 static inline void *
2501 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_device);
2507 return wl_proxy_get_version((
struct wl_proxy *) wl_data_device);
2514 wl_proxy_destroy((
struct wl_proxy *) wl_data_device);
2551 wl_proxy_marshal((
struct wl_proxy *) wl_data_device,
2566 wl_proxy_marshal((
struct wl_proxy *) wl_data_device,
2578 wl_proxy_marshal((
struct wl_proxy *) wl_data_device,
2581 wl_proxy_destroy((
struct wl_proxy *) wl_data_device);
2584 #ifndef WL_DATA_DEVICE_MANAGER_DND_ACTION_ENUM
2585 #define WL_DATA_DEVICE_MANAGER_DND_ACTION_ENUM
2634 #define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE 0
2635 #define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE 1
2641 #define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE_SINCE_VERSION 1
2645 #define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE_SINCE_VERSION 1
2651 wl_proxy_set_user_data((
struct wl_proxy *) wl_data_device_manager, user_data);
2655 static inline void *
2658 return wl_proxy_get_user_data((
struct wl_proxy *) wl_data_device_manager);
2664 return wl_proxy_get_version((
struct wl_proxy *) wl_data_device_manager);
2671 wl_proxy_destroy((
struct wl_proxy *) wl_data_device_manager);
2679 static inline struct wl_data_source *
2682 struct wl_proxy *
id;
2684 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_data_device_manager,
2687 return (
struct wl_data_source *)
id;
2695 static inline struct wl_data_device *
2698 struct wl_proxy *
id;
2700 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_data_device_manager,
2703 return (
struct wl_data_device *)
id;
2706 #ifndef WL_SHELL_ERROR_ENUM
2707 #define WL_SHELL_ERROR_ENUM
2716 #define WL_SHELL_GET_SHELL_SURFACE 0
2722 #define WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION 1
2728 wl_proxy_set_user_data((
struct wl_proxy *) wl_shell, user_data);
2732 static inline void *
2735 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shell);
2741 return wl_proxy_get_version((
struct wl_proxy *) wl_shell);
2748 wl_proxy_destroy((
struct wl_proxy *) wl_shell);
2760 static inline struct wl_shell_surface *
2763 struct wl_proxy *
id;
2765 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_shell,
2768 return (
struct wl_shell_surface *)
id;
2771 #ifndef WL_SHELL_SURFACE_RESIZE_ENUM
2772 #define WL_SHELL_SURFACE_RESIZE_ENUM
2822 #ifndef WL_SHELL_SURFACE_TRANSIENT_ENUM
2823 #define WL_SHELL_SURFACE_TRANSIENT_ENUM
2839 #ifndef WL_SHELL_SURFACE_FULLSCREEN_METHOD_ENUM
2840 #define WL_SHELL_SURFACE_FULLSCREEN_METHOD_ENUM
2882 struct wl_shell_surface *wl_shell_surface,
2909 struct wl_shell_surface *wl_shell_surface,
2921 struct wl_shell_surface *wl_shell_surface);
2931 return wl_proxy_add_listener((
struct wl_proxy *) wl_shell_surface,
2932 (
void (**)(
void)) listener,
data);
2935 #define WL_SHELL_SURFACE_PONG 0
2936 #define WL_SHELL_SURFACE_MOVE 1
2937 #define WL_SHELL_SURFACE_RESIZE 2
2938 #define WL_SHELL_SURFACE_SET_TOPLEVEL 3
2939 #define WL_SHELL_SURFACE_SET_TRANSIENT 4
2940 #define WL_SHELL_SURFACE_SET_FULLSCREEN 5
2941 #define WL_SHELL_SURFACE_SET_POPUP 6
2942 #define WL_SHELL_SURFACE_SET_MAXIMIZED 7
2943 #define WL_SHELL_SURFACE_SET_TITLE 8
2944 #define WL_SHELL_SURFACE_SET_CLASS 9
2949 #define WL_SHELL_SURFACE_PING_SINCE_VERSION 1
2953 #define WL_SHELL_SURFACE_CONFIGURE_SINCE_VERSION 1
2957 #define WL_SHELL_SURFACE_POPUP_DONE_SINCE_VERSION 1
2962 #define WL_SHELL_SURFACE_PONG_SINCE_VERSION 1
2966 #define WL_SHELL_SURFACE_MOVE_SINCE_VERSION 1
2970 #define WL_SHELL_SURFACE_RESIZE_SINCE_VERSION 1
2974 #define WL_SHELL_SURFACE_SET_TOPLEVEL_SINCE_VERSION 1
2978 #define WL_SHELL_SURFACE_SET_TRANSIENT_SINCE_VERSION 1
2982 #define WL_SHELL_SURFACE_SET_FULLSCREEN_SINCE_VERSION 1
2986 #define WL_SHELL_SURFACE_SET_POPUP_SINCE_VERSION 1
2990 #define WL_SHELL_SURFACE_SET_MAXIMIZED_SINCE_VERSION 1
2994 #define WL_SHELL_SURFACE_SET_TITLE_SINCE_VERSION 1
2998 #define WL_SHELL_SURFACE_SET_CLASS_SINCE_VERSION 1
3004 wl_proxy_set_user_data((
struct wl_proxy *) wl_shell_surface, user_data);
3008 static inline void *
3011 return wl_proxy_get_user_data((
struct wl_proxy *) wl_shell_surface);
3017 return wl_proxy_get_version((
struct wl_proxy *) wl_shell_surface);
3024 wl_proxy_destroy((
struct wl_proxy *) wl_shell_surface);
3036 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3052 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3068 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3082 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3100 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3144 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3174 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3203 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3221 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3238 wl_proxy_marshal((
struct wl_proxy *) wl_shell_surface,
3242 #ifndef WL_SURFACE_ERROR_ENUM
3243 #define WL_SURFACE_ERROR_ENUM
3279 struct wl_surface *wl_surface,
3280 struct wl_output *
output);
3290 struct wl_surface *wl_surface,
3291 struct wl_output *
output);
3301 return wl_proxy_add_listener((
struct wl_proxy *) wl_surface,
3302 (
void (**)(
void)) listener,
data);
3305 #define WL_SURFACE_DESTROY 0
3306 #define WL_SURFACE_ATTACH 1
3307 #define WL_SURFACE_DAMAGE 2
3308 #define WL_SURFACE_FRAME 3
3309 #define WL_SURFACE_SET_OPAQUE_REGION 4
3310 #define WL_SURFACE_SET_INPUT_REGION 5
3311 #define WL_SURFACE_COMMIT 6
3312 #define WL_SURFACE_SET_BUFFER_TRANSFORM 7
3313 #define WL_SURFACE_SET_BUFFER_SCALE 8
3314 #define WL_SURFACE_DAMAGE_BUFFER 9
3319 #define WL_SURFACE_ENTER_SINCE_VERSION 1
3323 #define WL_SURFACE_LEAVE_SINCE_VERSION 1
3328 #define WL_SURFACE_DESTROY_SINCE_VERSION 1
3332 #define WL_SURFACE_ATTACH_SINCE_VERSION 1
3336 #define WL_SURFACE_DAMAGE_SINCE_VERSION 1
3340 #define WL_SURFACE_FRAME_SINCE_VERSION 1
3344 #define WL_SURFACE_SET_OPAQUE_REGION_SINCE_VERSION 1
3348 #define WL_SURFACE_SET_INPUT_REGION_SINCE_VERSION 1
3352 #define WL_SURFACE_COMMIT_SINCE_VERSION 1
3356 #define WL_SURFACE_SET_BUFFER_TRANSFORM_SINCE_VERSION 2
3360 #define WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION 3
3364 #define WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION 4
3370 wl_proxy_set_user_data((
struct wl_proxy *) wl_surface, user_data);
3374 static inline void *
3377 return wl_proxy_get_user_data((
struct wl_proxy *) wl_surface);
3383 return wl_proxy_get_version((
struct wl_proxy *) wl_surface);
3394 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3397 wl_proxy_destroy((
struct wl_proxy *) wl_surface);
3446 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3478 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3518 static inline struct wl_callback *
3523 callback = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_surface,
3526 return (
struct wl_callback *)
callback;
3560 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3593 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3621 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3661 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3695 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3738 wl_proxy_marshal((
struct wl_proxy *) wl_surface,
3742 #ifndef WL_SEAT_CAPABILITY_ENUM
3743 #define WL_SEAT_CAPABILITY_ENUM
3803 struct wl_seat *wl_seat,
3815 struct wl_seat *wl_seat,
3826 return wl_proxy_add_listener((
struct wl_proxy *) wl_seat,
3827 (
void (**)(
void)) listener,
data);
3830 #define WL_SEAT_GET_POINTER 0
3831 #define WL_SEAT_GET_KEYBOARD 1
3832 #define WL_SEAT_GET_TOUCH 2
3833 #define WL_SEAT_RELEASE 3
3838 #define WL_SEAT_CAPABILITIES_SINCE_VERSION 1
3842 #define WL_SEAT_NAME_SINCE_VERSION 2
3847 #define WL_SEAT_GET_POINTER_SINCE_VERSION 1
3851 #define WL_SEAT_GET_KEYBOARD_SINCE_VERSION 1
3855 #define WL_SEAT_GET_TOUCH_SINCE_VERSION 1
3859 #define WL_SEAT_RELEASE_SINCE_VERSION 5
3865 wl_proxy_set_user_data((
struct wl_proxy *) wl_seat, user_data);
3869 static inline void *
3872 return wl_proxy_get_user_data((
struct wl_proxy *) wl_seat);
3878 return wl_proxy_get_version((
struct wl_proxy *) wl_seat);
3885 wl_proxy_destroy((
struct wl_proxy *) wl_seat);
3899 static inline struct wl_pointer *
3902 struct wl_proxy *
id;
3904 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_seat,
3907 return (
struct wl_pointer *)
id;
3921 static inline struct wl_keyboard *
3924 struct wl_proxy *
id;
3926 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_seat,
3929 return (
struct wl_keyboard *)
id;
3943 static inline struct wl_touch *
3946 struct wl_proxy *
id;
3948 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_seat,
3951 return (
struct wl_touch *)
id;
3963 wl_proxy_marshal((
struct wl_proxy *) wl_seat,
3966 wl_proxy_destroy((
struct wl_proxy *) wl_seat);
3969 #ifndef WL_POINTER_ERROR_ENUM
3970 #define WL_POINTER_ERROR_ENUM
3979 #ifndef WL_POINTER_BUTTON_STATE_ENUM
3980 #define WL_POINTER_BUTTON_STATE_ENUM
4000 #ifndef WL_POINTER_AXIS_ENUM
4001 #define WL_POINTER_AXIS_ENUM
4020 #ifndef WL_POINTER_AXIS_SOURCE_ENUM
4021 #define WL_POINTER_AXIS_SOURCE_ENUM
4065 #define WL_POINTER_AXIS_SOURCE_WHEEL_TILT_SINCE_VERSION 6
4088 struct wl_pointer *wl_pointer,
4091 wl_fixed_t surface_x,
4092 wl_fixed_t surface_y);
4105 struct wl_pointer *wl_pointer,
4119 struct wl_pointer *wl_pointer,
4121 wl_fixed_t surface_x,
4122 wl_fixed_t surface_y);
4145 struct wl_pointer *wl_pointer,
4174 struct wl_pointer *wl_pointer,
4218 struct wl_pointer *wl_pointer);
4251 struct wl_pointer *wl_pointer,
4275 struct wl_pointer *wl_pointer,
4313 struct wl_pointer *wl_pointer,
4325 return wl_proxy_add_listener((
struct wl_proxy *) wl_pointer,
4326 (
void (**)(
void)) listener,
data);
4329 #define WL_POINTER_SET_CURSOR 0
4330 #define WL_POINTER_RELEASE 1
4335 #define WL_POINTER_ENTER_SINCE_VERSION 1
4339 #define WL_POINTER_LEAVE_SINCE_VERSION 1
4343 #define WL_POINTER_MOTION_SINCE_VERSION 1
4347 #define WL_POINTER_BUTTON_SINCE_VERSION 1
4351 #define WL_POINTER_AXIS_SINCE_VERSION 1
4355 #define WL_POINTER_FRAME_SINCE_VERSION 5
4359 #define WL_POINTER_AXIS_SOURCE_SINCE_VERSION 5
4363 #define WL_POINTER_AXIS_STOP_SINCE_VERSION 5
4367 #define WL_POINTER_AXIS_DISCRETE_SINCE_VERSION 5
4372 #define WL_POINTER_SET_CURSOR_SINCE_VERSION 1
4376 #define WL_POINTER_RELEASE_SINCE_VERSION 3
4382 wl_proxy_set_user_data((
struct wl_proxy *) wl_pointer, user_data);
4386 static inline void *
4389 return wl_proxy_get_user_data((
struct wl_proxy *) wl_pointer);
4395 return wl_proxy_get_version((
struct wl_proxy *) wl_pointer);
4402 wl_proxy_destroy((
struct wl_proxy *) wl_pointer);
4443 wl_proxy_marshal((
struct wl_proxy *) wl_pointer,
4459 wl_proxy_marshal((
struct wl_proxy *) wl_pointer,
4462 wl_proxy_destroy((
struct wl_proxy *) wl_pointer);
4465 #ifndef WL_KEYBOARD_KEYMAP_FORMAT_ENUM
4466 #define WL_KEYBOARD_KEYMAP_FORMAT_ENUM
4486 #ifndef WL_KEYBOARD_KEY_STATE_ENUM
4487 #define WL_KEYBOARD_KEY_STATE_ENUM
4521 struct wl_keyboard *wl_keyboard,
4535 struct wl_keyboard *wl_keyboard,
4538 struct wl_array *keys);
4551 struct wl_keyboard *wl_keyboard,
4565 struct wl_keyboard *wl_keyboard,
4582 struct wl_keyboard *wl_keyboard,
4609 struct wl_keyboard *wl_keyboard,
4621 return wl_proxy_add_listener((
struct wl_proxy *) wl_keyboard,
4622 (
void (**)(
void)) listener,
data);
4625 #define WL_KEYBOARD_RELEASE 0
4630 #define WL_KEYBOARD_KEYMAP_SINCE_VERSION 1
4634 #define WL_KEYBOARD_ENTER_SINCE_VERSION 1
4638 #define WL_KEYBOARD_LEAVE_SINCE_VERSION 1
4642 #define WL_KEYBOARD_KEY_SINCE_VERSION 1
4646 #define WL_KEYBOARD_MODIFIERS_SINCE_VERSION 1
4650 #define WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION 4
4655 #define WL_KEYBOARD_RELEASE_SINCE_VERSION 3
4661 wl_proxy_set_user_data((
struct wl_proxy *) wl_keyboard, user_data);
4665 static inline void *
4668 return wl_proxy_get_user_data((
struct wl_proxy *) wl_keyboard);
4674 return wl_proxy_get_version((
struct wl_proxy *) wl_keyboard);
4681 wl_proxy_destroy((
struct wl_proxy *) wl_keyboard);
4690 wl_proxy_marshal((
struct wl_proxy *) wl_keyboard,
4693 wl_proxy_destroy((
struct wl_proxy *) wl_keyboard);
4716 struct wl_touch *wl_touch,
4734 struct wl_touch *wl_touch,
4748 struct wl_touch *wl_touch,
4766 struct wl_touch *wl_touch);
4778 struct wl_touch *wl_touch);
4814 struct wl_touch *wl_touch,
4849 struct wl_touch *wl_touch,
4861 return wl_proxy_add_listener((
struct wl_proxy *) wl_touch,
4862 (
void (**)(
void)) listener,
data);
4865 #define WL_TOUCH_RELEASE 0
4870 #define WL_TOUCH_DOWN_SINCE_VERSION 1
4874 #define WL_TOUCH_UP_SINCE_VERSION 1
4878 #define WL_TOUCH_MOTION_SINCE_VERSION 1
4882 #define WL_TOUCH_FRAME_SINCE_VERSION 1
4886 #define WL_TOUCH_CANCEL_SINCE_VERSION 1
4890 #define WL_TOUCH_SHAPE_SINCE_VERSION 6
4894 #define WL_TOUCH_ORIENTATION_SINCE_VERSION 6
4899 #define WL_TOUCH_RELEASE_SINCE_VERSION 3
4905 wl_proxy_set_user_data((
struct wl_proxy *) wl_touch, user_data);
4909 static inline void *
4912 return wl_proxy_get_user_data((
struct wl_proxy *) wl_touch);
4918 return wl_proxy_get_version((
struct wl_proxy *) wl_touch);
4925 wl_proxy_destroy((
struct wl_proxy *) wl_touch);
4934 wl_proxy_marshal((
struct wl_proxy *) wl_touch,
4937 wl_proxy_destroy((
struct wl_proxy *) wl_touch);
4940 #ifndef WL_OUTPUT_SUBPIXEL_ENUM
4941 #define WL_OUTPUT_SUBPIXEL_ENUM
4977 #ifndef WL_OUTPUT_TRANSFORM_ENUM
4978 #define WL_OUTPUT_TRANSFORM_ENUM
5031 #ifndef WL_OUTPUT_MODE_ENUM
5032 #define WL_OUTPUT_MODE_ENUM
5073 struct wl_output *wl_output,
5104 struct wl_output *wl_output,
5120 struct wl_output *wl_output);
5144 struct wl_output *wl_output,
5155 return wl_proxy_add_listener((
struct wl_proxy *) wl_output,
5156 (
void (**)(
void)) listener,
data);
5159 #define WL_OUTPUT_RELEASE 0
5164 #define WL_OUTPUT_GEOMETRY_SINCE_VERSION 1
5168 #define WL_OUTPUT_MODE_SINCE_VERSION 1
5172 #define WL_OUTPUT_DONE_SINCE_VERSION 2
5176 #define WL_OUTPUT_SCALE_SINCE_VERSION 2
5181 #define WL_OUTPUT_RELEASE_SINCE_VERSION 3
5187 wl_proxy_set_user_data((
struct wl_proxy *) wl_output, user_data);
5191 static inline void *
5194 return wl_proxy_get_user_data((
struct wl_proxy *) wl_output);
5200 return wl_proxy_get_version((
struct wl_proxy *) wl_output);
5207 wl_proxy_destroy((
struct wl_proxy *) wl_output);
5219 wl_proxy_marshal((
struct wl_proxy *) wl_output,
5222 wl_proxy_destroy((
struct wl_proxy *) wl_output);
5225 #define WL_REGION_DESTROY 0
5226 #define WL_REGION_ADD 1
5227 #define WL_REGION_SUBTRACT 2
5233 #define WL_REGION_DESTROY_SINCE_VERSION 1
5237 #define WL_REGION_ADD_SINCE_VERSION 1
5241 #define WL_REGION_SUBTRACT_SINCE_VERSION 1
5247 wl_proxy_set_user_data((
struct wl_proxy *) wl_region, user_data);
5251 static inline void *
5254 return wl_proxy_get_user_data((
struct wl_proxy *) wl_region);
5260 return wl_proxy_get_version((
struct wl_proxy *) wl_region);
5271 wl_proxy_marshal((
struct wl_proxy *) wl_region,
5274 wl_proxy_destroy((
struct wl_proxy *) wl_region);
5285 wl_proxy_marshal((
struct wl_proxy *) wl_region,
5297 wl_proxy_marshal((
struct wl_proxy *) wl_region,
5301 #ifndef WL_SUBCOMPOSITOR_ERROR_ENUM
5302 #define WL_SUBCOMPOSITOR_ERROR_ENUM
5311 #define WL_SUBCOMPOSITOR_DESTROY 0
5312 #define WL_SUBCOMPOSITOR_GET_SUBSURFACE 1
5318 #define WL_SUBCOMPOSITOR_DESTROY_SINCE_VERSION 1
5322 #define WL_SUBCOMPOSITOR_GET_SUBSURFACE_SINCE_VERSION 1
5328 wl_proxy_set_user_data((
struct wl_proxy *) wl_subcompositor, user_data);
5332 static inline void *
5335 return wl_proxy_get_user_data((
struct wl_proxy *) wl_subcompositor);
5341 return wl_proxy_get_version((
struct wl_proxy *) wl_subcompositor);
5354 wl_proxy_marshal((
struct wl_proxy *) wl_subcompositor,
5357 wl_proxy_destroy((
struct wl_proxy *) wl_subcompositor);
5371 static inline struct wl_subsurface *
5374 struct wl_proxy *
id;
5376 id = wl_proxy_marshal_constructor((
struct wl_proxy *) wl_subcompositor,
5379 return (
struct wl_subsurface *)
id;
5382 #ifndef WL_SUBSURFACE_ERROR_ENUM
5383 #define WL_SUBSURFACE_ERROR_ENUM
5392 #define WL_SUBSURFACE_DESTROY 0
5393 #define WL_SUBSURFACE_SET_POSITION 1
5394 #define WL_SUBSURFACE_PLACE_ABOVE 2
5395 #define WL_SUBSURFACE_PLACE_BELOW 3
5396 #define WL_SUBSURFACE_SET_SYNC 4
5397 #define WL_SUBSURFACE_SET_DESYNC 5
5403 #define WL_SUBSURFACE_DESTROY_SINCE_VERSION 1
5407 #define WL_SUBSURFACE_SET_POSITION_SINCE_VERSION 1
5411 #define WL_SUBSURFACE_PLACE_ABOVE_SINCE_VERSION 1
5415 #define WL_SUBSURFACE_PLACE_BELOW_SINCE_VERSION 1
5419 #define WL_SUBSURFACE_SET_SYNC_SINCE_VERSION 1
5423 #define WL_SUBSURFACE_SET_DESYNC_SINCE_VERSION 1
5429 wl_proxy_set_user_data((
struct wl_proxy *) wl_subsurface, user_data);
5433 static inline void *
5436 return wl_proxy_get_user_data((
struct wl_proxy *) wl_subsurface);
5442 return wl_proxy_get_version((
struct wl_proxy *) wl_subsurface);
5457 wl_proxy_marshal((
struct wl_proxy *) wl_subsurface,
5460 wl_proxy_destroy((
struct wl_proxy *) wl_subsurface);
5486 wl_proxy_marshal((
struct wl_proxy *) wl_subsurface,
5512 wl_proxy_marshal((
struct wl_proxy *) wl_subsurface,
5525 wl_proxy_marshal((
struct wl_proxy *) wl_subsurface,
5549 wl_proxy_marshal((
struct wl_proxy *) wl_subsurface,
5579 wl_proxy_marshal((
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)