Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutpositionwindow(3glut) [osx man page]

glutPositionWindow(3GLUT)					       GLUT						 glutPositionWindow(3GLUT)

NAME
glutPositionWindow - requests a change to the position of the current window. SYNTAX
#include <GLUT/glut.h> 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 parameters 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 positioning the window. 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 glut- PositionWindow'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) GLUT
3.7 glutPositionWindow(3GLUT)

Check Out this Related Man Page

glutReshapeWindow(3GLUT)					       GLUT						  glutReshapeWindow(3GLUT)

NAME
glutReshapeWindow - requests a change to the size of the current window. SYNTAX
void glutReshapeWindow(int width, int height); ARGUMENTS
width New width of window in pixels. height New height of window in pixels. DESCRIPTION
glutReshapeWindow requests a change in the size of the current window. The width and height parameters are size extents in pixels. The width and height must be positive values. The requests by glutReshapeWindow are not processed immediately. The request is executed after returning to the main event loop. This allows multiple glutReshapeWindow, glutPositionWindow, and glutFullScreen requests to the same window to be coalesced. In the case of top-level windows, a glutReshapeWindow call is considered only a request for sizing the window. The window system is free to apply its own policies to top-level window sizing. The intent is that top-level windows should be reshaped according glutReshapeWindow's parameters. Whether a reshape actually takes effect and, if so, the reshaped dimensions are reported to the program by a reshape callback. glutReshapeWindow disables the full screen status of a window if previously enabled. SEE ALSO
glutPositionWindow, glutReshapeFunc AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutReshapeWindow(3GLUT)
Man Page