comparison include/SDL_video.h @ 1956:ba0d62354872

Simplified driver window creation code. Implemented several Cocoa window functions
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Jul 2006 21:51:00 +0000
parents 83946ee0ff1f
children 2590b68531ef
comparison
equal deleted inserted replaced
1955:8c6106e45fc1 1956:ba0d62354872
572 /** 572 /**
573 * \fn SDL_WindowID SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) 573 * \fn SDL_WindowID SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
574 * 574 *
575 * \brief Create a window with the specified position, dimensions, and flags. 575 * \brief Create a window with the specified position, dimensions, and flags.
576 * 576 *
577 * \param title The title of the window 577 * \param title The title of the window, in UTF-8 encoding
578 * \param x The x position of the window 578 * \param x The x position of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
579 * \param y The y position of the window 579 * \param y The y position of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED
580 * \param w The width of the window 580 * \param w The width of the window
581 * \param h The height of the window 581 * \param h The height of the window
582 * \param flags The flags for the window, a mask of any of the following: SDL_WINDOW_FULLSCREEN, SDL_WINDOW_OPENGL, SDL_WINDOW_SHOWN, SDL_WINDOW_BORDERLESS, SDL_WINDOW_RESIZABLE, SDL_WINDOW_MAXIMIZED, SDL_WINDOW_MINIMIZED, SDL_WINDOW_INPUT_GRABBED 582 * \param flags The flags for the window, a mask of any of the following: SDL_WINDOW_FULLSCREEN, SDL_WINDOW_OPENGL, SDL_WINDOW_SHOWN, SDL_WINDOW_BORDERLESS, SDL_WINDOW_RESIZABLE, SDL_WINDOW_MAXIMIZED, SDL_WINDOW_MINIMIZED, SDL_WINDOW_INPUT_GRABBED
583 * 583 *
584 * \return The id of the window created, or zero if window creation failed. 584 * \return The id of the window created, or zero if window creation failed.
585 *
586 * \note Setting the position to -1, -1, indicates any position is fine.
587 * 585 *
588 * \sa SDL_DestroyWindow() 586 * \sa SDL_DestroyWindow()
589 */ 587 */
590 extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindow(const char *title, 588 extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindow(const char *title,
591 int x, int y, int w, 589 int x, int y, int w,