Name

glutPositionWindow  - requests a change to the position of
the current window.

Python Specification

glutPositionWindow
	glutPositionWindow(x, y) -> None

C Specification

void glutPositionWindow(int x, int y);

Parameters

x         New X location of window in pixels.

y         New Y location of window in pixels.

Description

glutPositionWindow requests a change in  the  position  of
the  current  window.  For  top-level windows, the x and y
parameters are pixel offsets from the screen  origin.  For
subwindows,  the x and y parameters are pixel offsets from
the window's parent window origin.

The requests by glutPositionWindow are not processed imme-
diately.   The  request is executed after returning to the
main event loop. This allows multiple  glutPositionWindow,
glutReshapeWindow, and glutFullScreen requests to the same
window to be coalesced.

In the case of  top-level  windows,  a  glutPositionWindow
call is considered only a request for positioning the win-
dow. The window system is free to apply its  own  policies
to  top-level  window  placement.  The intent is that top-
level windows should be repositioned  according  glutPosi-
tionWindow's parameters.

glutPositionWindow  disables  the  full screen status of a
window if previously enabled.

See Also

glutInitWindowPosition, glutReshapeWindow

Author

Mark J. Kilgard (mjk@nvidia.com)

:: Documentation :: References :: GLUT ::
:: Index (n/a) ::