Lines Matching refs:bindPtr

589 			    BindingTable *bindPtr, PatSeq *psPtr,
681 BindingTable *bindPtr;
728 bindPtr = (BindingTable *) ckalloc(sizeof(BindingTable));
730 bindPtr->eventRing[i].type = -1;
732 bindPtr->curEvent = 0;
733 Tcl_InitHashTable(&bindPtr->patternTable,
735 Tcl_InitHashTable(&bindPtr->objectTable, TCL_ONE_WORD_KEYS);
736 bindPtr->interp = interp;
737 return (Tk_BindingTable) bindPtr;
764 BindingTable *bindPtr = (BindingTable *) bindingTable;
774 for (hPtr = Tcl_FirstHashEntry(&bindPtr->patternTable, &search);
789 Tcl_DeleteHashTable(&bindPtr->patternTable);
790 Tcl_DeleteHashTable(&bindPtr->objectTable);
791 ckfree((char *) bindPtr);
833 BindingTable *bindPtr = (BindingTable *) bindingTable;
837 psPtr = FindSequence(interp, &bindPtr->patternTable, object, eventString,
851 hPtr = Tcl_CreateHashEntry(&bindPtr->objectTable, (char *) object,
908 BindingTable *bindPtr = (BindingTable *) bindingTable;
913 psPtr = FindSequence(interp, &bindPtr->patternTable, object, eventString,
925 hPtr = Tcl_FindHashEntry(&bindPtr->objectTable, (char *) object);
999 BindingTable *bindPtr = (BindingTable *) bindingTable;
1003 psPtr = FindSequence(interp, &bindPtr->patternTable, object, eventString,
1041 BindingTable *bindPtr = (BindingTable *) bindingTable;
1046 hPtr = Tcl_FindHashEntry(&bindPtr->objectTable, (char *) object);
1090 BindingTable *bindPtr = (BindingTable *) bindingTable;
1095 hPtr = Tcl_FindHashEntry(&bindPtr->objectTable, (char *) object);
1168 BindingTable *bindPtr = (BindingTable *) bindingTable;
1221 && (bindPtr->eventRing[bindPtr->curEvent].type == MotionNotify)) {
1235 ringPtr = &bindPtr->eventRing[bindPtr->curEvent];
1240 if (bindPtr->curEvent <= 0) {
1243 i = bindPtr->curEvent - 1;
1245 ringPtr = &bindPtr->eventRing[i];
1250 bindPtr->eventRing[bindPtr->curEvent].type = -1;
1251 bindPtr->curEvent = i;
1254 bindPtr->curEvent++;
1255 if (bindPtr->curEvent >= EVENT_BUFFER_SIZE) {
1256 bindPtr->curEvent = 0;
1259 ringPtr = &bindPtr->eventRing[bindPtr->curEvent];
1273 bindPtr->detailRing[bindPtr->curEvent] = detail;
1332 hPtr = Tcl_FindHashEntry(&bindPtr->patternTable, (char *) &key);
1334 matchPtr = MatchPatterns(dispPtr, bindPtr,
1340 matchPtr = MatchPatterns(dispPtr, bindPtr, vMatchDetailList,
1352 hPtr = Tcl_FindHashEntry(&bindPtr->patternTable, (char *) &key);
1354 matchPtr = MatchPatterns(dispPtr, bindPtr,
1360 matchPtr = MatchPatterns(dispPtr, bindPtr, vMatchNoDetailList,
1392 * so bindPtr may not point to anything valid once the action
1393 * completes. Thus we have to save bindPtr->interp in a
1397 interp = bindPtr->interp;
1498 * the recent events from bindPtr. Otherwise the return value is
1510 MatchPatterns(dispPtr, bindPtr, psPtr, bestPtr, object, bestCommandPtr)
1512 BindingTable *bindPtr; /* Information about binding table, such as
1524 * object in bindPtr. */
1551 eventPtr = &bindPtr->eventRing[bindPtr->curEvent];
1552 detailPtr = &bindPtr->detailRing[bindPtr->curEvent];
1665 firstPtr = &bindPtr->eventRing[bindPtr->curEvent];
1682 if (eventPtr == bindPtr->eventRing) {
1683 eventPtr = &bindPtr->eventRing[EVENT_BUFFER_SIZE-1];
1684 detailPtr = &bindPtr->detailRing[EVENT_BUFFER_SIZE-1];
1718 hPtr = Tcl_FindHashEntry(&bindPtr->patternTable,