| 36 | |
| 37 | #define EVENT_BUFFER_SIZE 10 |
| 38 | typedef struct BindingTable { |
| 39 | XEvent eventRing[EVENT_BUFFER_SIZE];/* Circular queue of recent events |
| 40 | * (higher indices are for more recent |
| 41 | * events). */ |
| 42 | int detailRing[EVENT_BUFFER_SIZE]; /* "Detail" information (keySym or |
| 43 | * button or 0) for each entry in |
| 44 | * eventRing. */ |
| 45 | int curEvent; /* Index in eventRing of most recent |
| 46 | * event. Newer events have higher |
| 47 | * indices. */ |
| 48 | Tcl_HashTable patternTable; /* Used to map from an event to a list |
| 49 | * of patterns that may match that |
| 50 | * event. Keys are PatternTableKey |
| 51 | * structs, values are (PatSeq *). */ |
| 52 | Tcl_HashTable objectTable; /* Used to map from an object to a list |
| 53 | * of patterns associated with that |
| 54 | * object. Keys are ClientData, |
| 55 | * values are (PatSeq *). */ |
| 56 | Tcl_Interp *interp; /* Interpreter in which commands are |
| 57 | * executed. */ |
| 58 | } BindingTable; |
| 59 | |
| 60 | /* |
| 61 | * Structures of the following form are used as keys in the patternTable |
nothing calls this directly
no outgoing calls
no test coverage detected