Wiki Page Content

Revision 5 as of 2010-10-09 06:00:27

Clear message

SDL_SetWindowPosition

Use this function to set the position of a window.

Syntax

void SDL_SetWindowPosition(SDL_Window* window,
                           int         x,
                           int         y)

Function Parameters

window

the SDL_Window to reposition

x

the x coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED

y

the y coordinate of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED

Code Examples

You can add your code example here

Remarks

The window coordinate origin is the upper left of the display.


CategoryAPI, CategoryVideo

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit