aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/include/SDL_video.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-07-09 11:42:54 -0700
committerJesse Hall <jessehall@google.com>2012-07-22 00:35:08 -0700
commite4c5d95ed37611acc6a186522315195b4ebfb9ef (patch)
treeb39ee901bb528b7e3593117cde724ef75d438b67 /distrib/sdl-1.2.15/include/SDL_video.h
parent9682c8870b8ff5e4ac2e4c70b759f791c6f38c1f (diff)
downloadexternal_qemu-e4c5d95ed37611acc6a186522315195b4ebfb9ef.zip
external_qemu-e4c5d95ed37611acc6a186522315195b4ebfb9ef.tar.gz
external_qemu-e4c5d95ed37611acc6a186522315195b4ebfb9ef.tar.bz2
Apply Android changes from sdl-1.2.12 to sdl-1.2.15
These changes come from diffing Android's sdl-1.2.12 tree against a pure upstream sdl-1.2.12 tree, and then manually applying those differences to the sdl-1.2.15 tree. Change-Id: I05fa6e8004bb629fa2482f092b6ab127b7e51e73
Diffstat (limited to 'distrib/sdl-1.2.15/include/SDL_video.h')
-rw-r--r--distrib/sdl-1.2.15/include/SDL_video.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/include/SDL_video.h b/distrib/sdl-1.2.15/include/SDL_video.h
index f9c4e07..9a2df0c 100644
--- a/distrib/sdl-1.2.15/include/SDL_video.h
+++ b/distrib/sdl-1.2.15/include/SDL_video.h
@@ -936,6 +936,36 @@ typedef enum {
*/
extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
+/*
+ * Move the SDL Window to a specific position. Does nothing in fullscreen mode.
+ */
+extern DECLSPEC void SDL_WM_SetPos(int x, int y);
+
+/*
+ * Get the current SDL window position. Returns (0,0) in fullscreen mode.
+ */
+extern DECLSPEC void SDL_WM_GetPos(int *px, int *py);
+
+/*
+ * If the window is fully visible, return TRUE; otherwise, recenter the window
+ * if the 'recenter' parameter is non-0, and return FALSE.
+ */
+extern DECLSPEC int SDL_WM_IsFullyVisible(int recenter);
+
+/*
+ * Get the resolution of the main monitor in DPIs, if available.
+ * Return 0 on success, or -1 if the data is not available.
+ */
+extern DECLSPEC int SDL_WM_GetMonitorDPI(int *xDPI, int *yDPI);
+
+/*
+ * Get the coordinates of the monitor in virtual desktop space.
+ * In the case of multi-monitor systems, returns the rectangle of
+ * the 'nearest' monitor relative to the main SDL_window. Returns
+ * 0 on success, or -1 if the data is not available.
+ */
+extern DECLSPEC int SDL_WM_GetMonitorRect(SDL_Rect *rect);
+
/*@}*/
/** @internal Not in public API at the moment - do not use! */