#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include "glutint.h"
Include dependency graph for glut_event.c:
Go to the source code of this file.
Defines | |
#define | XK_KP_Home 0xFF95 |
#define | XK_KP_Left 0xFF96 |
#define | XK_KP_Up 0xFF97 |
#define | XK_KP_Right 0xFF98 |
#define | XK_KP_Down 0xFF99 |
#define | XK_KP_Prior 0xFF9A |
#define | XK_KP_Next 0xFF9B |
#define | XK_KP_End 0xFF9C |
#define | XK_KP_Insert 0xFF9E |
#define | XK_KP_Delete 0xFF9F |
Functions | |
void APIENTRY | glutIdleFunc (GLUTidleCB idleFunc) |
void APIENTRY | glutTimerFunc (unsigned int interval, GLUTtimerCB timerFunc, int value) |
void | handleTimeouts (void) |
void | __glutPutOnWorkList (GLUTwindow *window, int workMask) |
void | __glutPostRedisplay (GLUTwindow *window, int layerMask) |
void APIENTRY | glutPostRedisplay (void) |
void APIENTRY | glutPostWindowRedisplay (int win) |
void | __glutRegisterEventParser (GLUTeventParser *parser) |
static void | markWindowHidden (GLUTwindow *window) |
static void | purgeStaleWindow (Window win) |
static int | interruptibleXNextEvent (Display *dpy, XEvent *event) |
static void | processEventsAndTimeouts (void) |
static void | waitForSomething (void) |
static void | idleWait (void) |
static GLUTwindow * | processWindowWorkList (GLUTwindow *window) |
void APIENTRY | glutMainLoop (void) |
Variables | |
static GLUTtimer * | freeTimerList = NULL |
GLUTidleCB | __glutIdleFunc = NULL |
GLUTtimer * | __glutTimerList = NULL |
GLUTwindow * | __glutWindowWorkList = NULL |
GLUTmenu * | __glutMappedMenu |
GLUTmenu * | __glutCurrentMenu = NULL |
void(* | __glutUpdateInputDeviceMaskFunc )(GLUTwindow *) |
void(* | __glutMenuItemEnterOrLeave )(GLUTmenuItem *item, int num, int type) = NULL |
void(* | __glutFinishMenu )(Window win, int x, int y) |
void(* | __glutPaintMenu )(GLUTmenu *menu) |
void(* | __glutStartMenu )(GLUTmenu *menu, GLUTwindow *window, int x, int y, int x_win, int y_win) |
GLUTmenu *(* | __glutGetMenuByNum )(int menunum) |
GLUTmenuItem *(* | __glutGetMenuItem )(GLUTmenu *menu, Window win, int *which) |
GLUTmenu *(* | __glutGetMenu )(Window win) |
Atom | __glutMotifHints = None |
unsigned int | __glutModifierMask = (unsigned int) ~0 |
int | __glutWindowDamaged = 0 |
static GLUTeventParser * | eventParserList = NULL |
static GLUTwindow ** | beforeEnd |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Referenced by processEventsAndTimeouts(). |
|
Definition at line 191 of file glut_event.c. References __glutPutOnWorkList(), GLUT_REDISPLAY_WORK, GLUT_REPAIR_WORK, _GLUTwindow::overlay, _GLUTwindow::shownState, _GLUToverlay::shownState, and _GLUTwindow::visState. Referenced by glutPostOverlayRedisplay(), glutPostRedisplay(), glutPostWindowOverlayRedisplay(), glutPostWindowRedisplay(), and processEventsAndTimeouts(). |
|
Definition at line 173 of file glut_event.c. References _GLUTwindow::prevWorkWin, and _GLUTwindow::workMask. Referenced by __glutChangeWindowEventMask(), __glutPostRedisplay(), __glutSetWindow(), glutCreateSubWindow(), glutDestroyWindow(), glutEstablishOverlay(), glutRemoveOverlay(), glutTabletButtonFunc(), glutTabletMotionFunc(), glutWacomButtonFunc(), and glutWacomMotionFunc(). |
|
Definition at line 232 of file glut_event.c. References _GLUTeventParser::next. Referenced by addDeviceEventParser(). |
|
Definition at line 103 of file glut_event.c. References __glutIdleFunc. |
|
Definition at line 1350 of file glut_event.c. References __glutDisplay, __glutFatalUsage(), __glutIdleFunc, __glutWindowListSize, idleWait(), processEventsAndTimeouts(), processWindowWorkList(), and waitForSomething(). Referenced by GLUT_MANAGER::loop(). |
|
Definition at line 207 of file glut_event.c. References __glutCurrentWindow, __glutPostRedisplay(), and GLUT_REDISPLAY_WORK. Referenced by GLUT_MANAGER::do_idle(). |
|
Definition at line 217 of file glut_event.c. References __glutPostRedisplay(), __glutWindowList, and GLUT_REDISPLAY_WORK. |
|
Definition at line 109 of file glut_event.c. References __glutFatalError(), ADD_TIME, _GLUTtimer::func, GETTIMEOFDAY, int(), IS_AFTER, _GLUTtimer::next, _GLUTtimer::timeout, and _GLUTtimer::value. |
|
Definition at line 153 of file glut_event.c. References _GLUTtimer::func, GETTIMEOFDAY, IS_AT_OR_AFTER, _GLUTtimer::next, and _GLUTtimer::timeout. Referenced by idleWait(), processEventsAndTimeouts(), and waitForSomething(). |
|
Definition at line 967 of file glut_event.c. References __glutDisplay, __glutIdleFunc, handleTimeouts(), and processEventsAndTimeouts(). Referenced by glutMainLoop(). |
|
Definition at line 291 of file glut_event.c. References __glutConnectionFD, __glutDisplay, and __glutFatalError(). Referenced by processEventsAndTimeouts(). |
|
Definition at line 239 of file glut_event.c. References __glutSetWindow(), _GLUTwindow::children, _GLUTwindow::visState, and _GLUTwindow::windowStatus. Referenced by processEventsAndTimeouts(). |
|
|
|
Definition at line 262 of file glut_event.c. References __glutStaleWindowList, _GLUTstale::next, and _GLUTstale::win. Referenced by processEventsAndTimeouts(). |
|
Definition at line 861 of file glut_event.c. References __glutConnectionFD, __glutDisplay, __glutFatalError(), GETTIMEOFDAY, handleTimeouts(), IS_AFTER, processEventsAndTimeouts(), TIMEDELTA, and _GLUTtimer::timeout. Referenced by glutMainLoop(). |
|
Definition at line 84 of file glut_event.c. |
|
Definition at line 89 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 94 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 92 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 93 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 77 of file glut_event.c. Referenced by glutIdleFunc(), glutMainLoop(), and idleWait(). |
|
Definition at line 83 of file glut_event.c. Referenced by glutDestroyWindow(). |
|
Definition at line 88 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 99 of file glut_event.c. Referenced by __glutProcessDeviceEvents(), and processEventsAndTimeouts(). |
|
Definition at line 97 of file glut_event.c. Referenced by processWindowWorkList(). |
|
Definition at line 90 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 91 of file glut_event.c. Referenced by processEventsAndTimeouts(). |
|
Definition at line 78 of file glut_event.c. |
|
Definition at line 86 of file glut_event.c. Referenced by glutTabletButtonFunc(), glutTabletMotionFunc(), glutWacomButtonFunc(), glutWacomMotionFunc(), and processWindowWorkList(). |
|
Definition at line 100 of file glut_event.c. Referenced by glutLayerGet(), and processWindowWorkList(). |
|
Definition at line 82 of file glut_event.c. Referenced by __glutCreateWindow(), and cleanWindowWorkList(). |
|
Definition at line 982 of file glut_event.c. |
|
Definition at line 223 of file glut_event.c. |
|
Definition at line 75 of file glut_event.c. |