|
SDL
2.0
|
#include "../SDL_internal.h"#include "SDL_messagebox.h"#include "SDL_shape.h"#include "SDL_thread.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 146 of file SDL_sysvideo.h.
| #define FULLSCREEN_VISIBLE | ( | W | ) |
Definition at line 116 of file SDL_sysvideo.h.
| int SDL_AddBasicVideoDisplay | ( | const SDL_DisplayMode * | desktop_mode | ) |
Definition at line 589 of file SDL_video.c.
References SDL_VideoDisplay::current_mode, SDL_VideoDisplay::desktop_mode, SDL_AddVideoDisplay(), and SDL_zero.
| SDL_bool SDL_AddDisplayMode | ( | SDL_VideoDisplay * | display, |
| const SDL_DisplayMode * | mode | ||
| ) |
Definition at line 751 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 | ) |
Definition at line 603 of file SDL_video.c.
References _this, SDL_VideoDisplay::device, SDL_VideoDevice::displays, SDL_VideoDisplay::name, SDL_VideoDevice::num_displays, SDL_itoa, SDL_OutOfMemory, SDL_realloc, and SDL_strdup.
Referenced by SDL_AddBasicVideoDisplay(), and videoInit().
| float SDL_ComputeDiagonalDPI | ( | int | hpix, |
| int | vpix, | ||
| float | hinches, | ||
| float | vinches | ||
| ) |
| SDL_VideoDisplay* SDL_GetDisplay | ( | int | displayIndex | ) |
Definition at line 1021 of file SDL_video.c.
References _this, CHECK_DISPLAY_INDEX, SDL_VideoDevice::displays, and NULL.
| void* SDL_GetDisplayDriverData | ( | int | displayIndex | ) |
Definition at line 657 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 1089 of file SDL_video.c.
References _this, SDL_VideoDevice::displays, NULL, and SDL_GetWindowDisplayIndex().
Referenced by SDL_CreateWindow(), SDL_DestroyWindow(), SDL_GetWindowDisplayMode(), SDL_GetWindowPixelFormat(), SDL_SetWindowDisplayMode(), and SDL_UpdateFullscreenMode().
| SDL_Window* SDL_GetFocusWindow | ( | void | ) |
Definition at line 2696 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 642 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 583 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().
| void SDL_GL_DeduceMaxSupportedESProfile | ( | int * | major, |
| int * | minor | ||
| ) |
Definition at line 1711 of file SDL_video.c.
References _this, NULL, and SDL_VideoDevice::windows.
Referenced by SDL_PrivateJoystickShouldIgnoreEvent().
Definition at line 4061 of file SDL_video.c.
References _this, NULL, SDL_APP_DIDENTERFOREGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_GAINED, SDL_WINDOWEVENT_RESTORED, and SDL_VideoDevice::windows.
Referenced by SDL_SendPendingSignalEvents().
Definition at line 4051 of file SDL_video.c.
References SDL_APP_DIDENTERBACKGROUND, and SDL_SendAppEvent().
Definition at line 4034 of file SDL_video.c.
References SDL_APP_LOWMEMORY, and SDL_SendAppEvent().
Definition at line 4056 of file SDL_video.c.
References SDL_APP_WILLENTERFOREGROUND, and SDL_SendAppEvent().
Definition at line 4039 of file SDL_video.c.
References _this, NULL, SDL_APP_WILLENTERBACKGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_LOST, SDL_WINDOWEVENT_MINIMIZED, and SDL_VideoDevice::windows.
Referenced by SDL_SendPendingSignalEvents().
Definition at line 4029 of file SDL_video.c.
References SDL_APP_TERMINATING, and SDL_SendAppEvent().
| void SDL_OnWindowEnter | ( | SDL_Window * | window | ) |
Definition at line 2623 of file SDL_video.c.
References _this, and SDL_VideoDevice::OnWindowEnter.
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowFocusGained | ( | SDL_Window * | window | ) |
Definition at line 2636 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 2680 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 2588 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 2601 of file SDL_video.c.
References SDL_FALSE, and SDL_UpdateFullscreenMode().
Referenced by SDL_SendWindowEvent().
| void SDL_OnWindowResized | ( | SDL_Window * | window | ) |
Definition at line 2594 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 2607 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 2582 of file SDL_video.c.
References SDL_OnWindowRestored().
Referenced by SDL_SendWindowEvent().
| int SDL_RecreateWindow | ( | SDL_Window * | window, |
| Uint32 | flags | ||
| ) |
Definition at line 1614 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_WINDOW_FOREIGN, SDL_WINDOW_HIDDEN, SDL_WINDOW_OPENGL, SDL_WINDOW_VULKAN, SDL_VideoDevice::SetWindowHitTest, SDL_VideoDevice::SetWindowIcon, and SDL_VideoDevice::SetWindowTitle.
Definition at line 3992 of file SDL_video.c.
References SDL_GetHintBoolean, SDL_HINT_ALLOW_TOPMOST, and SDL_TRUE.
Definition at line 1371 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 2520 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().
| VideoBootStrap Android_bootstrap |
| VideoBootStrap COCOA_bootstrap |
| VideoBootStrap DirectFB_bootstrap |
| VideoBootStrap DUMMY_bootstrap |
| VideoBootStrap Emscripten_bootstrap |
| VideoBootStrap HAIKU_bootstrap |
| VideoBootStrap KMSDRM_bootstrap |
| VideoBootStrap NACL_bootstrap |
| VideoBootStrap PND_bootstrap |
| VideoBootStrap PSP_bootstrap |
| VideoBootStrap QNX_bootstrap |
| VideoBootStrap RPI_bootstrap |
| VideoBootStrap UIKIT_bootstrap |
| VideoBootStrap VIVANTE_bootstrap |
| VideoBootStrap Wayland_bootstrap |
| VideoBootStrap WINDOWS_bootstrap |
| VideoBootStrap WINRT_bootstrap |
| VideoBootStrap X11_bootstrap |