ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



glutPositionWindow(3GLUT)                           GLUT                           glutPositionWindow(3GLUT)



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

SYNTAX
       void glutPositionWindow(int x, int y);

ARGUMENTS
       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  parame-ters parameters
       ters are pixel offsets from the window's parent window origin.

       The  requests  by  glutPositionWindow  are  not processed immediately.  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 posi-tioning positioning
       tioning the window. The window system is free to apply its own policies to  top-level  window  place-ment. placement.
       ment.   The  intent  is  that top-level windows should be repositioned according glutPositionWindow's
       parameters.

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

SEE ALSO
       glutInitWindowPosition(3G), glutReshapeWindow(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                           glutPositionWindow(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.