glutpositionwindow(3) - Linux man page

Name

glutPositionWindow - Request to change the position of the current window

Library

OpenGLUT - window

Synopsis

#include <openglut.h>

void

glutPositionWindow(int x, int y);

Parameters

x Requested horizontal position of the current window

y Requested vertical position of the current window

Description

The glutPositionWindow() function requests that the window system position a top-level or subwindow relative to the top-left corner. Subwindows are typically resized and repositioned in response to window resize events.

Caveats

The position of top-level windows is ultimately determined by the windowing system. Therefore, a position request by an OpenGLUT application may not necessarily succeed.

May not take immediate effect; wait for the callback.

Not applicable to offscreen windows.

See Also

glutinit(3) glutinitwindowposition(3) glutreshapefunc(3) glutcreatesubwindow(3)

BSD Epoch BSD

Referenced By

glutfullscreen(3)