diff include/SDL_video.h @ 1719:5b9f50c957ed SDL-1.3

You can now create multiple windows on Win32
author Sam Lantinga <slouken@libsdl.org>
date Wed, 28 Jun 2006 08:12:07 +0000
parents 57ce47f033a5
children a1ebb17f9c52
line wrap: on
line diff
--- a/include/SDL_video.h	Tue Jun 27 07:46:36 2006 +0000
+++ b/include/SDL_video.h	Wed Jun 28 08:12:07 2006 +0000
@@ -116,18 +116,29 @@
 typedef enum
 {
     SDL_WINDOW_FULLSCREEN = 0x00000001,         /**< fullscreen window, implies borderless */
-    SDL_WINDOW_BORDERLESS = 0x00000002,         /**< no window decoration */
+    SDL_WINDOW_OPENGL = 0x00000002,             /**< window usable with OpenGL context */
     SDL_WINDOW_SHOWN = 0x00000004,              /**< window is visible */
-    SDL_WINDOW_OPENGL = 0x00000008,             /**< window usable with OpenGL context */
+    SDL_WINDOW_BORDERLESS = 0x00000008,         /**< no window decoration */
     SDL_WINDOW_RESIZABLE = 0x00000010,          /**< window can be resized */
     SDL_WINDOW_MAXIMIZED = 0x00000020,          /**< maximized */
     SDL_WINDOW_MINIMIZED = 0x00000040,          /**< minimized */
-    SDL_WINDOW_INPUT_GRABBED = 0x00000080,      /**< window has grabbed input focus */
-    SDL_WINDOW_KEYBOARD_FOCUS = 0x00000100,     /**< window has keyboard focus */
-    SDL_WINDOW_MOUSE_FOCUS = 0x00000200,        /**< window has mouse focus */
+    SDL_WINDOW_INPUT_GRABBED = 0x00000100,      /**< window has grabbed input focus */
+    SDL_WINDOW_KEYBOARD_FOCUS = 0x00000200,     /**< window has keyboard focus */
+    SDL_WINDOW_MOUSE_FOCUS = 0x00000400,        /**< window has mouse focus */
 } SDL_WindowFlags;
 
 /**
+ * \def SDL_WINDOWPOS_UNDEFINED
+ * \brief Used to indicate that you don't care what the window position is.
+ */
+#define SDL_WINDOWPOS_UNDEFINED 0x7FFFFFF
+/**
+ * \def SDL_WINDOWPOS_CENTERED
+ * \brief Used to indicate that the window position should be centered.
+ */
+#define SDL_WINDOWPOS_CENTERED  0x7FFFFFE
+
+/**
  * \enum SDL_WindowEventID
  *
  * \brief Event subtype for window events
@@ -584,6 +595,12 @@
  *
  * \brief Set the position of the window.
  *
+ * \param windowID The window to reposition
+ * \param x The x coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
+ * \param y The y coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
+ *
+ * \note The window coordinate origin is the upper left of the display.
+ *
  * \sa SDL_GetWindowPosition()
  */
 extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_WindowID windowID,
@@ -737,7 +754,7 @@
  *
  * \brief Create and make active a 2D rendering context for a window.
  *
- * \param windowID The window used for rendering.
+ * \param windowID The window used for rendering
  * \param index The index of the render manager to initialize, or -1 to initialize the first one supporting the requested flags.
  * \param flags SDL_RendererFlags
  *