include/SDL_video.h
branchSDL-1.3
changeset 1719 5b9f50c957ed
parent 1707 57ce47f033a5
child 1720 a1ebb17f9c52
     1.1 --- a/include/SDL_video.h	Tue Jun 27 07:46:36 2006 +0000
     1.2 +++ b/include/SDL_video.h	Wed Jun 28 08:12:07 2006 +0000
     1.3 @@ -116,18 +116,29 @@
     1.4  typedef enum
     1.5  {
     1.6      SDL_WINDOW_FULLSCREEN = 0x00000001,         /**< fullscreen window, implies borderless */
     1.7 -    SDL_WINDOW_BORDERLESS = 0x00000002,         /**< no window decoration */
     1.8 +    SDL_WINDOW_OPENGL = 0x00000002,             /**< window usable with OpenGL context */
     1.9      SDL_WINDOW_SHOWN = 0x00000004,              /**< window is visible */
    1.10 -    SDL_WINDOW_OPENGL = 0x00000008,             /**< window usable with OpenGL context */
    1.11 +    SDL_WINDOW_BORDERLESS = 0x00000008,         /**< no window decoration */
    1.12      SDL_WINDOW_RESIZABLE = 0x00000010,          /**< window can be resized */
    1.13      SDL_WINDOW_MAXIMIZED = 0x00000020,          /**< maximized */
    1.14      SDL_WINDOW_MINIMIZED = 0x00000040,          /**< minimized */
    1.15 -    SDL_WINDOW_INPUT_GRABBED = 0x00000080,      /**< window has grabbed input focus */
    1.16 -    SDL_WINDOW_KEYBOARD_FOCUS = 0x00000100,     /**< window has keyboard focus */
    1.17 -    SDL_WINDOW_MOUSE_FOCUS = 0x00000200,        /**< window has mouse focus */
    1.18 +    SDL_WINDOW_INPUT_GRABBED = 0x00000100,      /**< window has grabbed input focus */
    1.19 +    SDL_WINDOW_KEYBOARD_FOCUS = 0x00000200,     /**< window has keyboard focus */
    1.20 +    SDL_WINDOW_MOUSE_FOCUS = 0x00000400,        /**< window has mouse focus */
    1.21  } SDL_WindowFlags;
    1.22  
    1.23  /**
    1.24 + * \def SDL_WINDOWPOS_UNDEFINED
    1.25 + * \brief Used to indicate that you don't care what the window position is.
    1.26 + */
    1.27 +#define SDL_WINDOWPOS_UNDEFINED 0x7FFFFFF
    1.28 +/**
    1.29 + * \def SDL_WINDOWPOS_CENTERED
    1.30 + * \brief Used to indicate that the window position should be centered.
    1.31 + */
    1.32 +#define SDL_WINDOWPOS_CENTERED  0x7FFFFFE
    1.33 +
    1.34 +/**
    1.35   * \enum SDL_WindowEventID
    1.36   *
    1.37   * \brief Event subtype for window events
    1.38 @@ -584,6 +595,12 @@
    1.39   *
    1.40   * \brief Set the position of the window.
    1.41   *
    1.42 + * \param windowID The window to reposition
    1.43 + * \param x The x coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
    1.44 + * \param y The y coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
    1.45 + *
    1.46 + * \note The window coordinate origin is the upper left of the display.
    1.47 + *
    1.48   * \sa SDL_GetWindowPosition()
    1.49   */
    1.50  extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_WindowID windowID,
    1.51 @@ -737,7 +754,7 @@
    1.52   *
    1.53   * \brief Create and make active a 2D rendering context for a window.
    1.54   *
    1.55 - * \param windowID The window used for rendering.
    1.56 + * \param windowID The window used for rendering
    1.57   * \param index The index of the render manager to initialize, or -1 to initialize the first one supporting the requested flags.
    1.58   * \param flags SDL_RendererFlags
    1.59   *