|
SDL
2.0
|
#include "../SDL_internal.h"#include "SDL_messagebox.h"#include "SDL_shape.h"#include "SDL_thread.h"#include "SDL_metal.h"#include "SDL_vulkan_internal.h"
Include dependency graph for SDL_sysvideo.h:Go to the source code of this file.
Data Structures | |
| struct | SDL_WindowShaper |
| struct | SDL_ShapeDriver |
| struct | SDL_WindowUserData |
| struct | SDL_Window |
| The type used to identify a window. More... | |
| struct | SDL_VideoDisplay |
| struct | SDL_VideoDevice |
| struct | VideoBootStrap |
Macros | |
| #define | FULLSCREEN_VISIBLE(W) |
| #define | _THIS SDL_VideoDevice *_this |
| #define _THIS SDL_VideoDevice *_this |
Definition at line 147 of file SDL_sysvideo.h.
| #define FULLSCREEN_VISIBLE | ( | W | ) |
Definition at line 117 of file SDL_sysvideo.h.
| int SDL_AddBasicVideoDisplay | ( | const SDL_DisplayMode * | desktop_mode | ) |
Definition at line 593 of file SDL_video.c.
References SDL_VideoDisplay::current_mode, SDL_VideoDisplay::desktop_mode, SDL_AddVideoDisplay(), SDL_FALSE, and SDL_zero.
| SDL_bool SDL_AddDisplayMode | ( | SDL_VideoDisplay * | display, |
| const SDL_DisplayMode * | mode | ||
| ) |
Definition at line 792 of file SDL_video.c.
References cmpmodes(), SDL_VideoDisplay::display_modes, i, SDL_VideoDisplay::max_display_modes, SDL_VideoDisplay::num_display_modes, SDL_FALSE, SDL_qsort, SDL_realloc, and SDL_TRUE.
| int SDL_AddVideoDisplay | ( | const SDL_VideoDisplay * | display, |
| SDL_bool | send_event | ||
| ) |
Definition at line 607 of file SDL_video.c.
References _this, SDL_VideoDisplay::device, SDL_VideoDevice::displays, SDL_VideoDisplay::name, SDL_VideoDevice::num_displays, SDL_DISPLAYEVENT_CONNECTED, SDL_itoa, SDL_OutOfMemory, SDL_realloc, SDL_SendDisplayEvent(), and SDL_strdup.
Referenced by SDL_AddBasicVideoDisplay(), and videoInit().
Definition at line 640 of file SDL_video.c.
References _this, SDL_VideoDevice::displays, SDL_VideoDevice::num_displays, SDL_DISPLAYEVENT_DISCONNECTED, SDL_memmove, and SDL_SendDisplayEvent().
| SDL_VideoDisplay* SDL_GetDisplay | ( | int | displayIndex | ) |
Definition at line 1062 of file SDL_video.c.
References _this, CHECK_DISPLAY_INDEX, SDL_VideoDevice::displays, and NULL.
Definition at line 680 of file SDL_video.c.
References _this, CHECK_DISPLAY_INDEX, SDL_VideoDevice::displays, SDL_VideoDisplay::driverdata, and NULL.
| SDL_VideoDisplay* SDL_GetDisplayForWindow | ( | SDL_Window * | window | ) |
Definition at line 1130 of file SDL_video.c.
References _this, SDL_VideoDevice::displays, NULL, and SDL_GetWindowDisplayIndex().
Referenced by SDL_CreateWindow(), SDL_DestroyWindow(), SDL_Fcitx_UpdateTextRect(), SDL_GetWindowDisplayMode(), SDL_GetWindowPixelFormat(), SDL_SetWindowDisplayMode(), and SDL_UpdateFullscreenMode().
| SDL_Window* SDL_GetFocusWindow | ( | void | ) |
Definition at line 2812 of file SDL_video.c.
References _this, SDL_Window::next, NULL, SDL_WINDOW_INPUT_FOCUS, and SDL_VideoDevice::windows.
Referenced by SDL_PromptAssertion(), SDL_StartTextInput(), and SDL_StopTextInput().
| int SDL_GetIndexOfDisplay | ( | SDL_VideoDisplay * | display | ) |
Definition at line 665 of file SDL_video.c.
References _this, SDL_VideoDevice::displays, and SDL_VideoDevice::num_displays.
Referenced by SDL_CreateWindow(), and SDL_SendDisplayEvent().
| SDL_VideoDevice* SDL_GetVideoDevice | ( | void | ) |
Definition at line 587 of file SDL_video.c.
References _this.
Referenced by SDL_CreateShapedWindow(), SDL_GetClipboardText(), SDL_GetTouch(), SDL_HasClipboardText(), SDL_PumpEvents(), SDL_SetClipboardText(), SDL_SetKeyboardFocus(), and SDL_SetWindowShape().
Definition at line 3162 of file SDL_video.c.
References SDL_GL_ExtensionSupported().
Definition at line 1822 of file SDL_video.c.
References _this, NULL, and SDL_VideoDevice::windows.
Referenced by SDL_PrivateJoystickShouldIgnoreEvent().
Definition at line 688 of file SDL_video.c.
References SDL_FALSE, SDL_GetHintBoolean, and SDL_HINT_VIDEO_EXTERNAL_CONTEXT.
Referenced by SDL_CreateWindow().
| void SDL_OnWindowEnter | ( | SDL_Window * | window | ) |
Definition at line 2739 of file SDL_video.c.
References _this, and SDL_VideoDevice::OnWindowEnter.
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowFocusGained | ( | SDL_Window * | window | ) |
Definition at line 2752 of file SDL_video.c.
References _this, SDL_Mouse::relative_mode, SDL_GetMouse(), SDL_SetMouseFocus(), SDL_UpdateWindowGrab(), SDL_WarpMouseInWindow, and SDL_VideoDevice::SetWindowGammaRamp.
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowFocusLost | ( | SDL_Window * | window | ) |
Definition at line 2796 of file SDL_video.c.
References _this, SDL_MinimizeWindow(), SDL_UpdateWindowGrab(), SDL_VideoDevice::SetWindowGammaRamp, and ShouldMinimizeOnFocusLoss().
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowHidden | ( | SDL_Window * | window | ) |
Definition at line 2704 of file SDL_video.c.
References SDL_FALSE, and SDL_UpdateFullscreenMode().
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowLeave | ( | SDL_Window * | window | ) |
| void SDL_OnWindowMinimized | ( | SDL_Window * | window | ) |
Definition at line 2717 of file SDL_video.c.
References SDL_FALSE, and SDL_UpdateFullscreenMode().
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowResized | ( | SDL_Window * | window | ) |
Definition at line 2710 of file SDL_video.c.
References SDL_FALSE, SDL_SendWindowEvent(), and SDL_WINDOWEVENT_SIZE_CHANGED.
Referenced by SDL_SendWindowEvent(), SDL_SetWindowSize(), and SDL_UpdateFullscreenMode().
| void SDL_OnWindowRestored | ( | SDL_Window * | window | ) |
Definition at line 2723 of file SDL_video.c.
References FULLSCREEN_VISIBLE, SDL_TRUE, and SDL_UpdateFullscreenMode().
Referenced by SDL_OnWindowShown(), and SDL_SendWindowEvent().
| void SDL_OnWindowShown | ( | SDL_Window * | window | ) |
Definition at line 2698 of file SDL_video.c.
References SDL_OnWindowRestored().
Referenced by SDL_SendWindowEvent().
| int SDL_RecreateWindow | ( | SDL_Window * | window, |
| Uint32 | flags | ||
| ) |
Definition at line 1673 of file SDL_video.c.
References _this, CREATE_FLAGS, SDL_VideoDevice::CreateSDLWindow, SDL_VideoDevice::DestroyWindow, SDL_VideoDevice::DestroyWindowFramebuffer, SDL_VideoDevice::GL_CreateContext, SDL_VideoDevice::name, NULL, SDL_DONTFREE, SDL_FALSE, SDL_FinishWindowCreation(), SDL_FreeSurface, SDL_GL_LoadLibrary(), SDL_GL_UnloadLibrary(), SDL_HideWindow(), SDL_SetError, SDL_TRUE, SDL_Vulkan_LoadLibrary(), SDL_Vulkan_UnloadLibrary(), SDL_WINDOW_FOREIGN, SDL_WINDOW_HIDDEN, SDL_WINDOW_METAL, SDL_WINDOW_OPENGL, SDL_WINDOW_VULKAN, SDL_VideoDevice::SetWindowHitTest, SDL_VideoDevice::SetWindowIcon, and SDL_VideoDevice::SetWindowTitle.
Definition at line 4139 of file SDL_video.c.
References SDL_GetHintBoolean, SDL_HINT_ALLOW_TOPMOST, and SDL_TRUE.
Definition at line 1412 of file SDL_video.c.
References _this, SDL_VideoDevice::AcceptDragAndDrop, IsAcceptingDragAndDrop(), SDL_Window::next, and SDL_VideoDevice::windows.
Referenced by SDL_EventState().
| void SDL_UpdateWindowGrab | ( | SDL_Window * | window | ) |
Definition at line 2636 of file SDL_video.c.
References _this, SDL_Window::flags, SDL_VideoDevice::grabbed_window, NULL, SDL_FALSE, SDL_GetMouse(), SDL_TRUE, SDL_WINDOW_INPUT_FOCUS, SDL_WINDOW_INPUT_GRABBED, and SDL_VideoDevice::SetWindowGrab.
Referenced by SDL_OnWindowFocusGained(), SDL_OnWindowFocusLost(), SDL_SetRelativeMouseMode(), and SDL_SetWindowGrab().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |