SDL
2.0
|
#include "../SDL_internal.h"
#include "SDL_messagebox.h"
#include "SDL_shape.h"
#include "SDL_thread.h"
#include "SDL_vulkan_internal.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 145 of file SDL_sysvideo.h.
#define FULLSCREEN_VISIBLE | ( | W | ) |
Definition at line 116 of file SDL_sysvideo.h.
Referenced by SDL_CreateWindow(), SDL_OnWindowRestored(), SDL_SetWindowDisplayMode(), SDL_SetWindowFullscreen(), SDL_SetWindowSize(), and SDL_UpdateFullscreenMode().
int SDL_AddBasicVideoDisplay | ( | const SDL_DisplayMode * | desktop_mode | ) |
Definition at line 592 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 743 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 606 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 | ||
) |
void* SDL_GetDisplayDriverData | ( | int | displayIndex | ) |
Definition at line 660 of file SDL_video.c.
References CHECK_DISPLAY_INDEX, SDL_VideoDevice::displays, SDL_VideoDisplay::driverdata, and NULL.
SDL_VideoDisplay* SDL_GetDisplayForWindow | ( | SDL_Window * | window | ) |
Definition at line 1073 of file SDL_video.c.
References 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 2594 of file SDL_video.c.
References SDL_Window::flags, SDL_Window::next, NULL, SDL_WINDOW_INPUT_FOCUS, and SDL_VideoDevice::windows.
Referenced by SDL_PromptAssertion(), SDL_StartTextInput(), and SDL_StopTextInput().
SDL_VideoDevice* SDL_GetVideoDevice | ( | void | ) |
Definition at line 586 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 2942 of file SDL_video.c.
References SDL_GL_ExtensionSupported().
Definition at line 1630 of file SDL_video.c.
References NULL, and SDL_VideoDevice::windows.
Referenced by SDL_PrivateJoystickShouldIgnoreEvent().
Definition at line 3957 of file SDL_video.c.
References SDL_Window::next, NULL, SDL_APP_DIDENTERFOREGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_GAINED, SDL_WINDOWEVENT_RESTORED, and SDL_VideoDevice::windows.
Definition at line 3947 of file SDL_video.c.
References SDL_APP_DIDENTERBACKGROUND, and SDL_SendAppEvent().
Definition at line 3930 of file SDL_video.c.
References SDL_APP_LOWMEMORY, and SDL_SendAppEvent().
Definition at line 3952 of file SDL_video.c.
References SDL_APP_WILLENTERFOREGROUND, and SDL_SendAppEvent().
Definition at line 3935 of file SDL_video.c.
References SDL_Window::next, NULL, SDL_APP_WILLENTERBACKGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_LOST, SDL_WINDOWEVENT_MINIMIZED, and SDL_VideoDevice::windows.
Definition at line 3925 of file SDL_video.c.
References SDL_APP_TERMINATING, and SDL_SendAppEvent().
void SDL_OnWindowEnter | ( | SDL_Window * | window | ) |
Definition at line 2530 of file SDL_video.c.
References SDL_VideoDevice::OnWindowEnter.
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowFocusGained | ( | SDL_Window * | window | ) |
Definition at line 2543 of file SDL_video.c.
References SDL_Window::gamma, SDL_Window::h, SDL_Mouse::relative_mode, SDL_GetMouse(), SDL_SetMouseFocus(), SDL_UpdateWindowGrab(), SDL_WarpMouseInWindow, SDL_VideoDevice::SetWindowGammaRamp, and SDL_Window::w.
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowFocusLost | ( | SDL_Window * | window | ) |
Definition at line 2578 of file SDL_video.c.
References SDL_Window::gamma, SDL_Window::saved_gamma, SDL_MinimizeWindow(), SDL_UpdateWindowGrab(), SDL_VideoDevice::SetWindowGammaRamp, and ShouldMinimizeOnFocusLoss().
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowHidden | ( | SDL_Window * | window | ) |
Definition at line 2495 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 2508 of file SDL_video.c.
References SDL_FALSE, and SDL_UpdateFullscreenMode().
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowResized | ( | SDL_Window * | window | ) |
Definition at line 2501 of file SDL_video.c.
References SDL_Window::h, SDL_FALSE, SDL_SendWindowEvent(), SDL_WINDOWEVENT_SIZE_CHANGED, SDL_Window::surface_valid, and SDL_Window::w.
Referenced by SDL_SendWindowEvent(), SDL_SetWindowSize(), and SDL_UpdateFullscreenMode().
void SDL_OnWindowRestored | ( | SDL_Window * | window | ) |
Definition at line 2514 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 2489 of file SDL_video.c.
References SDL_OnWindowRestored().
Referenced by SDL_SendWindowEvent().
int SDL_RecreateWindow | ( | SDL_Window * | window, |
Uint32 | flags | ||
) |
Definition at line 1542 of file SDL_video.c.
References CREATE_FLAGS, SDL_VideoDevice::CreateSDLWindow, SDL_VideoDevice::DestroyWindow, SDL_VideoDevice::DestroyWindowFramebuffer, SDL_Surface::flags, SDL_Window::flags, SDL_VideoDevice::GL_CreateContext, SDL_Window::hit_test, SDL_Window::icon, SDL_Window::is_destroying, SDL_Window::last_fullscreen_flags, 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, SDL_VideoDevice::SetWindowTitle, SDL_Window::surface, and SDL_Window::title.
Definition at line 3888 of file SDL_video.c.
References SDL_GetHintBoolean, SDL_HINT_ALLOW_TOPMOST, and SDL_TRUE.
void SDL_UpdateWindowGrab | ( | SDL_Window * | window | ) |
Definition at line 2427 of file SDL_video.c.
References 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 MIR_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 |