Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2010-10-18 03:13:55
Size: 869
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 7 as of 2016-01-01 18:28:03
Size: 917
Comment: Updated with content from header file.
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
||'''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||
||'''x'''||the x coordinate of the window in screen coordinates, or SDL_WINDOWPOS_CENTERED or SDL_WINDOWPOS_UNDEFINED||
||'''y'''||the y coordinate of the window in screen coordinates, or SDL_WINDOWPOS_CENTERED or SDL_WINDOWPOS_UNDEFINED||

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 window to reposition

x

the x coordinate of the window in screen coordinates, or SDL_WINDOWPOS_CENTERED or SDL_WINDOWPOS_UNDEFINED

y

the y coordinate of the window in screen coordinates, or 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

None: SDL_SetWindowPosition (last edited 2016-01-01 18:28:03 by PhilippWiesemann)

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