comparison 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
comparison
equal deleted inserted replaced
1718:ed4d4f1ea201 1719:5b9f50c957ed
114 * \sa SDL_GetWindowFlags() 114 * \sa SDL_GetWindowFlags()
115 */ 115 */
116 typedef enum 116 typedef enum
117 { 117 {
118 SDL_WINDOW_FULLSCREEN = 0x00000001, /**< fullscreen window, implies borderless */ 118 SDL_WINDOW_FULLSCREEN = 0x00000001, /**< fullscreen window, implies borderless */
119 SDL_WINDOW_BORDERLESS = 0x00000002, /**< no window decoration */ 119 SDL_WINDOW_OPENGL = 0x00000002, /**< window usable with OpenGL context */
120 SDL_WINDOW_SHOWN = 0x00000004, /**< window is visible */ 120 SDL_WINDOW_SHOWN = 0x00000004, /**< window is visible */
121 SDL_WINDOW_OPENGL = 0x00000008, /**< window usable with OpenGL context */ 121 SDL_WINDOW_BORDERLESS = 0x00000008, /**< no window decoration */
122 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */ 122 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */
123 SDL_WINDOW_MAXIMIZED = 0x00000020, /**< maximized */ 123 SDL_WINDOW_MAXIMIZED = 0x00000020, /**< maximized */
124 SDL_WINDOW_MINIMIZED = 0x00000040, /**< minimized */ 124 SDL_WINDOW_MINIMIZED = 0x00000040, /**< minimized */
125 SDL_WINDOW_INPUT_GRABBED = 0x00000080, /**< window has grabbed input focus */ 125 SDL_WINDOW_INPUT_GRABBED = 0x00000100, /**< window has grabbed input focus */
126 SDL_WINDOW_KEYBOARD_FOCUS = 0x00000100, /**< window has keyboard focus */ 126 SDL_WINDOW_KEYBOARD_FOCUS = 0x00000200, /**< window has keyboard focus */
127 SDL_WINDOW_MOUSE_FOCUS = 0x00000200, /**< window has mouse focus */ 127 SDL_WINDOW_MOUSE_FOCUS = 0x00000400, /**< window has mouse focus */
128 } SDL_WindowFlags; 128 } SDL_WindowFlags;
129
130 /**
131 * \def SDL_WINDOWPOS_UNDEFINED
132 * \brief Used to indicate that you don't care what the window position is.
133 */
134 #define SDL_WINDOWPOS_UNDEFINED 0x7FFFFFF
135 /**
136 * \def SDL_WINDOWPOS_CENTERED
137 * \brief Used to indicate that the window position should be centered.
138 */
139 #define SDL_WINDOWPOS_CENTERED 0x7FFFFFE
129 140
130 /** 141 /**
131 * \enum SDL_WindowEventID 142 * \enum SDL_WindowEventID
132 * 143 *
133 * \brief Event subtype for window events 144 * \brief Event subtype for window events
582 /** 593 /**
583 * \fn void SDL_SetWindowPosition(SDL_WindowID windowID, int x, int y) 594 * \fn void SDL_SetWindowPosition(SDL_WindowID windowID, int x, int y)
584 * 595 *
585 * \brief Set the position of the window. 596 * \brief Set the position of the window.
586 * 597 *
598 * \param windowID The window to reposition
599 * \param x The x coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
600 * \param y The y coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
601 *
602 * \note The window coordinate origin is the upper left of the display.
603 *
587 * \sa SDL_GetWindowPosition() 604 * \sa SDL_GetWindowPosition()
588 */ 605 */
589 extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_WindowID windowID, 606 extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_WindowID windowID,
590 int x, int y); 607 int x, int y);
591 608
735 /** 752 /**
736 * \fn int SDL_CreateRenderer(SDL_WindowID window, int index, Uint32 flags) 753 * \fn int SDL_CreateRenderer(SDL_WindowID window, int index, Uint32 flags)
737 * 754 *
738 * \brief Create and make active a 2D rendering context for a window. 755 * \brief Create and make active a 2D rendering context for a window.
739 * 756 *
740 * \param windowID The window used for rendering. 757 * \param windowID The window used for rendering
741 * \param index The index of the render manager to initialize, or -1 to initialize the first one supporting the requested flags. 758 * \param index The index of the render manager to initialize, or -1 to initialize the first one supporting the requested flags.
742 * \param flags SDL_RendererFlags 759 * \param flags SDL_RendererFlags
743 * 760 *
744 * \return 0 on success, -1 if the flags were not supported, or -2 if 761 * \return 0 on success, -1 if the flags were not supported, or -2 if
745 * there isn't enough memory to support the requested flags 762 * there isn't enough memory to support the requested flags