Lines Matching defs:search
26 * The structure defined below is used to keep track of a tag search
33 Tk_Uid tag; /* Tag to search for. 0 means return
397 TagSearch search;
432 for (itemPtr = StartTagSearch(canvasPtr, argv[i], &search);
433 itemPtr != NULL; itemPtr = NextItem(&search)) {
633 itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
713 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
714 itemPtr != NULL; itemPtr = NextItem(&search)) {
751 for (itemPtr = StartTagSearch(canvasPtr, argv[i], &search);
752 itemPtr != NULL; itemPtr = NextItem(&search)) {
764 if (search.prevPtr == NULL) {
770 search.prevPtr->nextPtr = itemPtr->nextPtr;
773 canvasPtr->lastItemPtr = search.prevPtr;
812 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
813 itemPtr != NULL; itemPtr = NextItem(&search)) {
854 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
855 itemPtr != NULL; itemPtr = NextItem(&search)) {
874 itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
891 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
892 itemPtr != NULL; itemPtr = NextItem(&search)) {
919 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
920 itemPtr != NULL; itemPtr = NextItem(&search)) {
945 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
946 itemPtr != NULL; itemPtr = NextItem(&search)) {
977 itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
991 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
992 itemPtr != NULL; itemPtr = NextItem(&search)) {
1033 prevPtr = StartTagSearch(canvasPtr, argv[3], &search);
1035 prevPtr = search.prevPtr;
1057 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
1058 itemPtr != NULL; itemPtr = NextItem(&search)) {
1088 for (itemPtr = StartTagSearch(canvasPtr, argv[3], &search);
1089 itemPtr != NULL; itemPtr = NextItem(&search)) {
1121 for (itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
1122 itemPtr != NULL; itemPtr = NextItem(&search)) {
1181 for (itemPtr = StartTagSearch(canvasPtr, argv[3], &search);
1182 itemPtr != NULL; itemPtr = NextItem(&search)) {
1276 itemPtr = StartTagSearch(canvasPtr, argv[2], &search);
2101 * while the search is in progress. EndTagSearch must be
2102 * called at the end of the search to unlink searchPtr from
2113 TagSearch *searchPtr; /* Record describing tag search;
2123 * Initialize the search.
2133 * hot item, in which case the search can be skipped.
2204 * used to begin a search.
2220 TagSearch *searchPtr; /* Record describing search in
2256 * Handle special case of "all" search by returning next item.
2398 * to search for (see user doc on
2412 TagSearch search;
2431 for (itemPtr = StartTagSearch(canvasPtr, argv[1], &search);
2432 itemPtr != NULL; itemPtr = NextItem(&search)) {
2456 itemPtr = StartTagSearch(canvasPtr, argv[1], &search);
2457 if (search.prevPtr != NULL) {
2458 DoItem(interp, search.prevPtr, uid);
2492 * Find the item at which to start the search.
2497 itemPtr = StartTagSearch(canvasPtr, argv[4], &search);
2585 for (itemPtr = StartTagSearch(canvasPtr, argv[1], &search);
2586 itemPtr != NULL; itemPtr = NextItem(&search)) {
2590 Tcl_AppendResult(interp, "bad search command \"", argv[0],
2631 * rectangular area to search. */
2715 TagSearch search;
2725 for (itemPtr = StartTagSearch(canvasPtr, tag, &search);
2726 itemPtr != NULL; itemPtr = NextItem(&search)) {
2733 prevPtr = search.prevPtr;
2735 if (search.prevPtr == NULL) {
2738 search.prevPtr->nextPtr = itemPtr->nextPtr;
2741 canvasPtr->lastItemPtr = search.prevPtr;
3098 TkCanvas *canvasPtr; /* Canvas widget to search. */