Lines Matching defs:patPtr

593 			    char **eventStringPtr, Pattern *patPtr,
1540 Pattern *patPtr;
1554 patPtr = psPtr->pats;
1561 if (eventPtr->xany.type != patPtr->eventType) {
1580 if ((patPtr->eventType == KeyPress)
1581 || (patPtr->eventType == KeyRelease)) {
1586 } else if ((patPtr->eventType == ButtonPress)
1587 || (patPtr->eventType == ButtonRelease)) {
1620 if ((patPtr->detail.clientData != 0)
1621 && (patPtr->detail.clientData != detailPtr->clientData)) {
1649 if (patPtr->needMods != 0) {
1650 modMask = patPtr->needMods;
1679 patPtr++;
1766 for (i = 0, patPtr = matchPtr->pats, patPtr2 = bestPtr->pats;
1767 i < matchPtr->numPats; i++, patPtr++, patPtr2++) {
1768 if (patPtr->detail.clientData != patPtr2->detail.clientData) {
1769 if (patPtr->detail.clientData == 0) {
1775 if (patPtr->needMods != patPtr2->needMods) {
1776 if ((patPtr->needMods & patPtr2->needMods)
1777 == patPtr->needMods) {
1779 } else if ((patPtr->needMods & patPtr2->needMods)
3338 Pattern *patPtr;
3360 patPtr = &pats[EVENT_BUFFER_SIZE-1];
3361 for (numPats = 0; numPats < EVENT_BUFFER_SIZE; numPats++, patPtr--) {
3369 count = ParseEventDescription(interp, &p, patPtr, &eventMask);
3389 patPtr[-1] = patPtr[0];
3390 patPtr--;
3393 patPtr[-1] = patPtr[0];
3394 patPtr--;
3416 patPtr = &pats[EVENT_BUFFER_SIZE-numPats];
3419 key.type = patPtr->eventType;
3420 key.detail = patPtr->detail;
3428 && (memcmp((char *) patPtr, (char *) psPtr->pats,
3453 memcpy((VOID *) psPtr->pats, (VOID *) patPtr, sequenceSize);
3484 ParseEventDescription(interp, eventStringPtr, patPtr,
3490 Pattern *patPtr; /* Filled with the pattern parsed from the
3504 patPtr->eventType = -1;
3505 patPtr->needMods = 0;
3506 patPtr->detail.clientData = 0;
3518 patPtr->eventType = KeyPress;
3522 patPtr->detail.keySym = TkStringToKeysym(string);
3523 if (patPtr->detail.keySym == NoSymbol) {
3525 patPtr->detail.keySym = *p;
3576 patPtr->eventType = VirtualEvent;
3578 patPtr->detail.name = Tk_GetUid(field);
3593 patPtr->needMods |= modPtr->mask;
3612 patPtr->eventType = eiPtr->type;
3623 patPtr->eventType = ButtonPress;
3632 patPtr->detail.button = (*field - '0');
3635 patPtr->detail.keySym = TkStringToKeysym(field);
3636 if (patPtr->detail.keySym == NoSymbol) {
3642 patPtr->eventType = KeyPress;
3742 Pattern *patPtr;
3753 for (patsLeft = psPtr->numPats, patPtr = &psPtr->pats[psPtr->numPats - 1];
3754 patsLeft > 0; patsLeft--, patPtr--) {
3760 if ((patPtr->eventType == KeyPress)
3762 && (patPtr->needMods == 0)
3763 && (patPtr->detail.keySym < 128)
3764 && isprint(UCHAR(patPtr->detail.keySym))
3765 && (patPtr->detail.keySym != '<')
3766 && (patPtr->detail.keySym != ' ')) {
3768 c = (char) patPtr->detail.keySym;
3777 if (patPtr->eventType == VirtualEvent) {
3779 Tcl_DStringAppend(dsPtr, patPtr->detail.name, -1);
3792 && (memcmp((char *) patPtr, (char *) (patPtr-1),
3795 patPtr--;
3796 if ((patsLeft > 1) && (memcmp((char *) patPtr,
3797 (char *) (patPtr-1), sizeof(Pattern)) == 0)) {
3799 patPtr--;
3805 for (needMods = patPtr->needMods, modPtr = modArray;
3814 if (eiPtr->type == patPtr->eventType) {
3816 if (patPtr->detail.clientData != 0) {
3823 if (patPtr->detail.clientData != 0) {
3824 if ((patPtr->eventType == KeyPress)
3825 || (patPtr->eventType == KeyRelease)) {
3828 string = TkKeysymToString(patPtr->detail.keySym);
3833 sprintf(buffer, "%d", patPtr->detail.button);