Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-15 04:15:51
Size: 871
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Revision 4 as of 2010-09-18 03:38:07
Size: 869
Editor: SheenaSmith
Comment: update content - "the" to "a" window update
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Use this function to set the position of the window. Use this function to set the position of a window.

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, 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

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