Lines Matching refs:window

20 /*!	Helper function to get a new window slot */
51 __glutFatalError("redisplay needed for window %d, but no display callback.",
60 /* Adjust the viewport of the window */
68 /*! Creates a new GLUT window
80 // add myself to window list
144 // if I'm a top-level window, create my BWindow
158 // make myself the default window
163 /*! Creates a new GLUT window */
178 GlutWindow *window = new GlutWindow(0, name,
182 return window->num + 1;
198 GlutWindow *window = new GlutWindow(gState.windowList[win-1], "child",
201 return window->num + 1;
205 /*! Set the current window (utility function) */
207 __glutSetWindow(GlutWindow *window)
211 gState.currentWindow = window;
216 /*! Set and get the current window */
220 GlutWindow *window;
223 __glutWarning("glutSetWindow attempted on bogus window.");
227 window = gState.windowList[win - 1];
228 if (!window) {
229 __glutWarning("glutSetWindow attempted on bogus window.");
232 __glutSetWindow(window);
248 __glutDestroyWindow(GlutWindow *window, GlutWindow *initialWindow)
251 GlutWindow *cur = window->children;
260 GlutWindow *parent = window->parent;
265 if (cur == window) {
274 // finally, check if we are the current window, and set to 0
275 if (gState.currentWindow == window)
278 gState.windowList[window->num] = 0;
282 /*! Destroy window and all its children. */
286 // can't destroy a window if another window has the GL context
290 // lock the window
291 GlutWindow *window = gState.windowList[win - 1];
292 BWindow *bwindow = window->Window();
295 // if win is the current window, set current window to 0
296 if (gState.currentWindow == window)
300 __glutDestroyWindow(window, window);
303 window->LockGL();
305 window->UnlockGL();
307 // now, if the window was top-level, delete its BWindow
308 if (!window->parent) {
312 window->RemoveSelf();
313 delete window;
317 // relock GL if the current window is still valid
342 /*! Mark window as needing redisplay */
354 /*! Mark window as needing redisplay */
374 /*! Move window */
389 win->MoveTo(x, y); // move the window
395 /*! Reshape window (we'll catch the callback when the view gets
420 /*! Makes the window full screen */
434 /*! Supposed to change the stacking order of the current window
481 /*! Minimizes window */
494 /*! Sets the window title */
499 __glutFatalError("glutSetWindowTitle: isn't a top-level window");