aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/include/SDL_video.h
diff options
context:
space:
mode:
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! */