include/SDL_video.h
changeset 9996 11cba4a517a9
parent 9995 d79480c1e151
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9995:d79480c1e151 9996:11cba4a517a9
   425  *
   425  *
   426  *  \return The id of the window created, or zero if window creation failed.
   426  *  \return The id of the window created, or zero if window creation failed.
   427  *
   427  *
   428  *  If the window is created with the SDL_WINDOW_ALLOW_HIGHDPI flag, its size
   428  *  If the window is created with the SDL_WINDOW_ALLOW_HIGHDPI flag, its size
   429  *  in pixels may differ from its size in screen coordinates on platforms with
   429  *  in pixels may differ from its size in screen coordinates on platforms with
   430  *  high-DPI support (e.g. iOS and Mac OS X). Use SDL_GetWindowSize to query the
   430  *  high-DPI support (e.g. iOS and Mac OS X). Use SDL_GetWindowSize() to query
   431  *  size of the client area in screen coordinates, and SDL_GL_GetDrawableSize or
   431  *  the client area's size in screen coordinates, and SDL_GL_GetDrawableSize()
   432  *  SDL_GetRendererOutputSize to query the drawable size in pixels.
   432  *  or SDL_GetRendererOutputSize() to query the drawable size in pixels.
   433  *
   433  *
   434  *  \sa SDL_DestroyWindow()
   434  *  \sa SDL_DestroyWindow()
   435  */
   435  */
   436 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
   436 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
   437                                                       int x, int y, int w,
   437                                                       int x, int y, int w,
   557  *  \note You can't change the size of a fullscreen window, it automatically
   557  *  \note You can't change the size of a fullscreen window, it automatically
   558  *        matches the size of the display mode.
   558  *        matches the size of the display mode.
   559  *
   559  *
   560  *  The window size in screen coordinates may differ from the size in pixels, if
   560  *  The window size in screen coordinates may differ from the size in pixels, if
   561  *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
   561  *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
   562  *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize or
   562  *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
   563  *  SDL_GetRendererOutputSize to get the real client area size in pixels.
   563  *  SDL_GetRendererOutputSize() to get the real client area size in pixels.
   564  *
   564  *
   565  *  \sa SDL_GetWindowSize()
   565  *  \sa SDL_GetWindowSize()
   566  */
   566  */
   567 extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
   567 extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
   568                                                int h);
   568                                                int h);
   576  *  \param h        Pointer to variable for storing the height, in screen
   576  *  \param h        Pointer to variable for storing the height, in screen
   577  *                  coordinates. May be NULL.
   577  *                  coordinates. May be NULL.
   578  *
   578  *
   579  *  The window size in screen coordinates may differ from the size in pixels, if
   579  *  The window size in screen coordinates may differ from the size in pixels, if
   580  *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
   580  *  the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
   581  *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize or
   581  *  high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
   582  *  SDL_GetRendererOutputSize to get the real client area size in pixels.
   582  *  SDL_GetRendererOutputSize() to get the real client area size in pixels.
   583  *
   583  *
   584  *  \sa SDL_SetWindowSize()
   584  *  \sa SDL_SetWindowSize()
   585  */
   585  */
   586 extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
   586 extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
   587                                                int *h);
   587                                                int *h);