SDL
2.0
|
#include "../SDL_internal.h"
#include "SDL_messagebox.h"
#include "SDL_shape.h"
#include "SDL_thread.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 140 of file SDL_sysvideo.h.
#define FULLSCREEN_VISIBLE | ( | W | ) |
Definition at line 111 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 579 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 709 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 593 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().
float SDL_ComputeDiagonalDPI | ( | int | hpix, |
int | vpix, | ||
float | hinches, | ||
float | vinches | ||
) |
void* SDL_GetDisplayDriverData | ( | int | displayIndex | ) |
Definition at line 647 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 1039 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 2403 of file SDL_video.c.
References SDL_Window::flags, SDL_Window::next, NULL, SDL_WINDOW_INPUT_FOCUS, window, and SDL_VideoDevice::windows.
Referenced by SDL_PromptAssertion(), SDL_StartTextInput(), and SDL_StopTextInput().
SDL_VideoDevice* SDL_GetVideoDevice | ( | void | ) |
Definition at line 573 of file SDL_video.c.
References _this.
Referenced by SDL_CreateShapedWindow(), SDL_GetClipboardText(), SDL_HasClipboardText(), SDL_PumpEvents(), SDL_SetClipboardText(), SDL_SetKeyboardFocus(), and SDL_SetWindowShape().
void SDL_OnWindowEnter | ( | SDL_Window * | window | ) |
Definition at line 2330 of file SDL_video.c.
References SDL_VideoDevice::OnWindowEnter.
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowFocusGained | ( | SDL_Window * | window | ) |
Definition at line 2343 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 2387 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 2295 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 2308 of file SDL_video.c.
References SDL_FALSE, and SDL_UpdateFullscreenMode().
Referenced by SDL_SendWindowEvent().
void SDL_OnWindowResized | ( | SDL_Window * | window | ) |
Definition at line 2301 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 2314 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 2289 of file SDL_video.c.
References SDL_OnWindowRestored().
Referenced by SDL_SendWindowEvent().
int SDL_RecreateWindow | ( | SDL_Window * | window, |
Uint32 | flags | ||
) |
Definition at line 1469 of file SDL_video.c.
References CREATE_FLAGS, SDL_VideoDevice::CreateWindow, 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_VideoDevice::SetWindowHitTest, SDL_VideoDevice::SetWindowIcon, SDL_VideoDevice::SetWindowTitle, SDL_Window::surface, and SDL_Window::title.
Definition at line 3619 of file SDL_video.c.
References SDL_FALSE, SDL_GetHint, SDL_HINT_ALLOW_TOPMOST, and SDL_TRUE.
void SDL_UpdateWindowGrab | ( | SDL_Window * | window | ) |
Definition at line 2227 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, SDL_VideoDevice::SetWindowGrab, and window.
Referenced by SDL_OnWindowFocusGained(), SDL_OnWindowFocusLost(), SDL_SetRelativeMouseMode(), and SDL_SetWindowGrab().