#include <stdlib.h>#include <stdio.h>#include <string.h>#include <assert.h>#include <X11/Xlib.h>#include <X11/Xatom.h>#include "glutint.h"Include dependency graph for glut_win.c:

Go to the source code of this file.
| Functions | |
| static void | cleanWindowWorkList (GLUTwindow *window) | 
| static void | cleanStaleWindowList (GLUTwindow *window) | 
| GLUTwindow * | __glutGetWindow (Window win) | 
| int APIENTRY | glutGetWindow (void) | 
| void | __glutSetWindow (GLUTwindow *window) | 
| void APIENTRY | glutSetWindow (int win) | 
| static int | getUnusedWindowSlot (void) | 
| static XVisualInfo * | getVisualInfoCI (unsigned int mode) | 
| static XVisualInfo * | getVisualInfoRGB (unsigned int mode) | 
| XVisualInfo * | __glutGetVisualInfo (unsigned int mode) | 
| XVisualInfo * | __glutDetermineVisual (unsigned int displayMode, Bool *treatAsSingle, XVisualInfo *(getVisualInfo)(unsigned int)) | 
| void | __glutDefaultDisplay (void) | 
| void | __glutDefaultReshape (int width, int height) | 
| XVisualInfo * | __glutDetermineWindowVisual (Bool *treatAsSingle, Bool *visAlloced, void **fbc) | 
| GLUTwindow * | __glutCreateWindow (GLUTwindow *parent, int x, int y, int width, int height, int gameMode) | 
| int APIENTRY | glutCreateWindow (const char *title) | 
| int APIENTRY | glutCreateSubWindow (int win, int x, int y, int width, int height) | 
| void | __glutDestroyWindow (GLUTwindow *window, GLUTwindow *initialWindow) | 
| void APIENTRY | glutDestroyWindow (int win) | 
| void | __glutChangeWindowEventMask (long eventMask, Bool add) | 
| void APIENTRY | glutDisplayFunc (GLUTdisplayCB displayFunc) | 
| void APIENTRY | glutMouseFunc (GLUTmouseCB mouseFunc) | 
| void APIENTRY | glutMotionFunc (GLUTmotionCB motionFunc) | 
| void APIENTRY | glutPassiveMotionFunc (GLUTpassiveCB passiveMotionFunc) | 
| void APIENTRY | glutEntryFunc (GLUTentryCB entryFunc) | 
| void APIENTRY | glutWindowStatusFunc (GLUTwindowStatusCB windowStatusFunc) | 
| static void | visibilityHelper (int status) | 
| void APIENTRY | glutVisibilityFunc (GLUTvisibilityCB visibilityFunc) | 
| void APIENTRY | glutReshapeFunc (GLUTreshapeCB reshapeFunc) | 
| void APIENTRY | glutMoveFunc (GLUTmoveCB moveFunc) | 
| Variables | |
| GLUTwindow * | __glutCurrentWindow = NULL | 
| GLUTwindow ** | __glutWindowList = NULL | 
| int | __glutWindowListSize = 0 | 
| GLUTstale * | __glutStaleWindowList = NULL | 
| GLUTwindow * | __glutMenuWindow = NULL | 
| void(* | __glutFreeOverlayFunc )(GLUToverlay *) | 
| XVisualInfo *(* | __glutDetermineVisualFromString )(char *string, Bool *treatAsSingle, Criterion *requiredCriteria, int nRequired, int requiredMask, void **fbc) = NULL | 
| static Criterion | requiredWindowCriteria [] | 
| static int | numRequiredWindowCriteria = sizeof(requiredWindowCriteria) / sizeof(Criterion) | 
| static int | requiredWindowCriteriaMask = (1 << LEVEL) | (1 << TRANSPARENT) | 
| static GLUTwindow * | __glutWindowCache = NULL | 
| 
 | ||||||||||||
| 
 Definition at line 855 of file glut_win.c. References __glutPutOnWorkList(), _GLUTwindow::eventMask, and GLUT_EVENT_MASK_WORK. Referenced by glutEntryFunc(), glutMotionFunc(), glutMouseFunc(), glutPassiveMotionFunc(), and glutWindowStatusFunc(). | 
| 
 | ||||||||||||||||||||||||||||
| 
 | 
| 
 Definition at line 398 of file glut_win.c. References __glutFatalError(), __glutWarning(), and _GLUTwindow::num. Referenced by __glutCreateWindow(). | 
| 
 | ||||||||||||
| 
 Definition at line 408 of file glut_win.c. References glViewport(), MAKE_CURRENT_LAYER, MAKE_CURRENT_OVERLAY, MAKE_CURRENT_WINDOW, and _GLUTwindow::overlay. Referenced by __glutCreateWindow(), and glutReshapeFunc(). | 
| 
 | ||||||||||||
| 
 | ||||||||||||||||
| 
 Definition at line 357 of file glut_win.c. References __glutDisplayString, GLUT_WIND_IS_MULTISAMPLE, and GLUT_WIND_IS_SINGLE. Referenced by __glutDetermineWindowVisual(), and determineOverlayVisual(). | 
| 
 | ||||||||||||||||
| 
 Definition at line 428 of file glut_win.c. References __glutDetermineVisual(), __glutDetermineVisualFromString, __glutDisplayMode, __glutDisplayString, __glutGetVisualInfo(), numRequiredWindowCriteria, and requiredWindowCriteriaMask. Referenced by __glutCreateWindow(). | 
| 
 | 
| 
 Definition at line 344 of file glut_win.c. References getVisualInfoCI(), getVisualInfoRGB(), GLUT_WIND_IS_LUMINANCE, and GLUT_WIND_IS_RGB. Referenced by __glutDetermineWindowVisual(). | 
| 
 | 
| 
 Definition at line 87 of file glut_win.c. References __glutWindowListSize, _GLUTstale::next, _GLUTwindow::overlay, _GLUTwindow::win, _GLUToverlay::win, _GLUTstale::win, and _GLUTstale::window. Referenced by __glutProcessDeviceEvents(), and processEventsAndTimeouts(). | 
| 
 | 
| 
 Definition at line 141 of file glut_win.c. References __glutDebug, __glutPutOnWorkList(), GLUT_DEBUG_WORK, GLUT_FINISH_WORK, _GLUTwindow::isDirect, and MAKE_CURRENT_LAYER. Referenced by __glutCreateWindow(), __glutProcessDeviceEvents(), glutSetWindow(), glutUseLayer(), markWindowHidden(), processEventsAndTimeouts(), and processWindowWorkList(). | 
| 
 | 
| 
 Definition at line 62 of file glut_win.c. References _GLUTstale::next, and _GLUTstale::window. Referenced by __glutDestroyWindow(). | 
| 
 | 
| 
 Definition at line 40 of file glut_win.c. References __glutWindowWorkList, and _GLUTwindow::prevWorkWin. Referenced by __glutDestroyWindow(). | 
| 
 | 
| 
 Definition at line 195 of file glut_win.c. References __glutFatalError(), and __glutWindowListSize. Referenced by __glutCreateWindow(). | 
| 
 | 
| 
 Definition at line 225 of file glut_win.c. References __glutDisplay, __glutDisplayString, __glutScreen, GLUT_WIND_HAS_DEPTH, GLUT_WIND_HAS_STENCIL, GLUT_WIND_IS_DOUBLE, GLUT_WIND_IS_STEREO, GLX_BUFFER_SIZE, GLX_DEPTH_SIZE, GLX_DOUBLEBUFFER, GLX_STENCIL_SIZE, GLX_STEREO, glXChooseVisual(), and int(). Referenced by __glutGetVisualInfo(). | 
| 
 | 
| 
 | ||||||||||||||||||||||||
| 
 Definition at line 741 of file glut_win.c. References __glutCreateWindow(), __glutPutOnWorkList(), __glutToplevelOf(), _GLUTwindow::cmap, GLUT_COLORMAP_WORK, and _GLUTwindow::num. | 
| 
 | 
| 
 Definition at line 695 of file glut_win.c. References __glutArgc, __glutArgv, __glutCreateWindow(), __glutDisplay, __glutFatalError(), __glutGameModeWindow, __glutIconic, __glutInitHeight, __glutInitWidth, __glutSizeHints, __glutWMDeleteWindow, _GLUTwindow::desiredMapState, _GLUTwindow::num, and _GLUTwindow::win. Referenced by GLUT_WINSYS::setup(). | 
| 
 | 
| 
 Definition at line 833 of file glut_win.c. References __glutDestroyWindow(), __glutFatalUsage(), __glutMappedMenu, __glutPutOnWorkList(), __glutToplevelOf(), GLUT_COLORMAP_WORK, and _GLUTwindow::parent. | 
| 
 | 
| 
 Definition at line 876 of file glut_win.c. References __glutFatalError(), and _GLUTwindow::display. Referenced by GLUT_WINSYS::setup(). | 
| 
 | 
| 
 Definition at line 953 of file glut_win.c. References __glutChangeWindowEventMask(), _GLUTwindow::entry, _GLUTwindow::entryState, and _GLUTwindow::passive. | 
| 
 | 
| 
 | 
| 
 Definition at line 907 of file glut_win.c. References __glutChangeWindowEventMask(), _GLUTwindow::buttonUses, and _GLUTwindow::motion. Referenced by GLUT_MOUSE::GLUT_MOUSE(). | 
| 
 | 
| 
 Definition at line 885 of file glut_win.c. References __glutChangeWindowEventMask(), _GLUTwindow::buttonUses, and _GLUTwindow::mouse. Referenced by GLUT_MOUSE::GLUT_MOUSE(). | 
| 
 | 
| 
 Definition at line 1005 of file glut_win.c. References _GLUTwindow::move. | 
| 
 | 
| 
 Definition at line 938 of file glut_win.c. References __glutChangeWindowEventMask(), _GLUTwindow::entry, and _GLUTwindow::passive. Referenced by GLUT_MOUSE::GLUT_MOUSE(). | 
| 
 | 
| 
 Definition at line 995 of file glut_win.c. References __glutDefaultReshape(), and _GLUTwindow::reshape. Referenced by GLUT_WINSYS::setup(). | 
| 
 | 
| 
 Definition at line 177 of file glut_win.c. References __glutSetWindow(), __glutWarning(), and __glutWindowListSize. Referenced by GLUIMoveMenu::create_menu(), GLUT_MANAGER::do_display(), GLUT_MANAGER::do_idle(), GLUT_WINSYS::get_cursor(), GLUT_WINSYS::position(), GLUT_WINSYS::position_manually(), GLUT_WINSYS::set_context(), GLUT_WINSYS::set_cursor(), GLUT_WINSYS::set_focus(), GLUIMoveMenu::show(), GLUT_WINSYS::size_manually(), and GLUT_WINSYS::unblock(). | 
| 
 | 
| 
 Definition at line 985 of file glut_win.c. References glutWindowStatusFunc(), _GLUTwindow::visibility, and visibilityHelper(). Referenced by GLUT_WINSYS::setup(). | 
| 
 | 
| 
 Definition at line 964 of file glut_win.c. References __glutChangeWindowEventMask(), _GLUTwindow::visState, and _GLUTwindow::windowStatus. Referenced by glutVisibilityFunc(). | 
| 
 | 
| 
 Definition at line 976 of file glut_win.c. References _GLUTwindow::visibility. Referenced by glutVisibilityFunc(). | 
| 
 | 
| 
 Definition at line 19 of file glut_win.c. Referenced by glutDeviceGet(), glutEstablishOverlay(), glutHideOverlay(), glutLayerGet(), glutOverlayDisplayFunc(), glutPostOverlayRedisplay(), glutPostRedisplay(), glutRemoveOverlay(), glutShowOverlay(), glutTabletButtonFunc(), glutTabletMotionFunc(), glutUseLayer(), glutWacomButtonFunc(), and glutWacomMotionFunc(). | 
| 
 | 
| 
 Definition at line 28 of file glut_win.c. Referenced by __glutDetermineWindowVisual(), and determineOverlayVisual(). | 
| 
 | 
| 
 Definition at line 27 of file glut_win.c. Referenced by __glutDestroyWindow(), and glutEstablishOverlay(). | 
| 
 | 
| 
 Definition at line 25 of file glut_win.c. | 
| 
 | 
| 
 Definition at line 23 of file glut_win.c. Referenced by addStaleWindow(), and purgeStaleWindow(). | 
| 
 | 
| 
 Definition at line 84 of file glut_win.c. | 
| 
 | 
| 
 Definition at line 20 of file glut_win.c. Referenced by glutPostWindowOverlayRedisplay(), glutPostWindowRedisplay(), processEventsAndTimeouts(), and processWindowWorkList(). | 
| 
 | 
| 
 Definition at line 21 of file glut_win.c. Referenced by __glutGetWindow(), getUnusedWindowSlot(), glutMainLoop(), and glutSetWindow(). | 
| 
 | 
| 
 Definition at line 36 of file glut_win.c. Referenced by __glutDetermineWindowVisual(). | 
| 
 | 
| Initial value: 
{
  {LEVEL, EQ, 0},
  {TRANSPARENT, EQ, 0}
}
Definition at line 31 of file glut_win.c. | 
| 
 | 
| 
 Definition at line 37 of file glut_win.c. Referenced by __glutDetermineWindowVisual(). | 
 1.4.4
 1.4.4