| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | |
| | | #include "../SDL_sysvideo.h" |
| | | #include "SDL_syswm.h" |
| | | #include "../../events/SDL_touch_c.h" |
| | | |
| | | #include "SDL_waylandvideo.h" |
| | | |
| | |
| | | struct SDL_WaylandInput *keyboard_device; |
| | | EGLSurface egl_surface; |
| | | struct zwp_locked_pointer_v1 *locked_pointer; |
| | | struct zxdg_toplevel_decoration_v1 *server_decoration; |
| | | struct org_kde_kwin_server_decoration *kwin_server_decoration; |
| | | |
| | | #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH |
| | | struct qt_extended_surface *extended_surface; |
| | | #endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */ |
| | | #endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */ |
| | | |
| | | struct { |
| | | SDL_bool pending, configure; |
| | | uint32_t serial; |
| | | int width, height; |
| | | float scale_factor; |
| | | } resize; |
| | | |
| | | struct wl_output **outputs; |
| | | int num_outputs; |
| | | |
| | | float scale_factor; |
| | | } SDL_WindowData; |
| | | |
| | | extern void Wayland_ShowWindow(_THIS, SDL_Window *window); |
| | |
| | | SDL_bool fullscreen); |
| | | extern void Wayland_MaximizeWindow(_THIS, SDL_Window * window); |
| | | extern void Wayland_RestoreWindow(_THIS, SDL_Window * window); |
| | | extern void Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered); |
| | | extern int Wayland_CreateWindow(_THIS, SDL_Window *window); |
| | | extern void Wayland_SetWindowSize(_THIS, SDL_Window * window); |
| | | extern void Wayland_SetWindowTitle(_THIS, SDL_Window * window); |
| | |
| | | Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info); |
| | | extern int Wayland_SetWindowHitTest(SDL_Window *window, SDL_bool enabled); |
| | | |
| | | extern void Wayland_HandlePendingResize(SDL_Window *window); |
| | | |
| | | #endif /* SDL_waylandwindow_h_ */ |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |