Lines Matching refs:index1

366     TkTextIndex index1, index2;
385 if (TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK) {
389 if (TkTextCharBbox(textPtr, &index1, &x, &y, &width, &height) == 0) {
410 argv[0], " compare index1 op index2\"", (char *) NULL);
414 if ((TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK)
420 relation = TkTextIndexCmp(&index1, &index2);
482 argv[0], " delete index1 ?index2?\"", (char *) NULL);
500 if (TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK) {
504 if (TkTextDLineInfo(textPtr, &index1, &x, &y, &width, &height, &base)
512 argv[0], " get index1 ?index2?\"", (char *) NULL);
516 if (TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK) {
521 index2 = index1;
528 if (TkTextIndexCmp(&index1, &index2) >= 0) {
535 segPtr = TkTextIndexToSeg(&index1, &offset);
537 if (index1.linePtr == index2.linePtr) {
540 if (index2.charIndex == index1.charIndex) {
543 last2 = index2.charIndex - index1.charIndex + offset;
555 TkTextIndexForwChars(&index1, last-offset, &index1);
566 if (TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK) {
570 TkTextPrintIndex(&index1, interp->result);
585 if (TkTextGetIndex(interp, textPtr, argv[2], &index1) != TCL_OK) {
591 InsertChars(textPtr, &index1, argv[j]);
593 TkTextIndexForwChars(&index1, (int) strlen(argv[j]),
595 oldTagArrayPtr = TkBTreeGetTags(&index1, &numTags);
598 TkBTreeTag(&index1, &index2, oldTagArrayPtr[i], 0);
608 TkBTreeTag(&index1, &index2,
612 index1 = index2;
1135 TkTextIndex index1, index2;
1141 if (TkTextGetIndex(textPtr->interp, textPtr, index1String, &index1)
1151 index2 = index1;
1159 if (TkTextIndexCmp(&index1, &index2) >= 0) {
1175 line1 = TkBTreeLineIndex(index1.linePtr);
1185 if ((index1.charIndex == 0) && (line1 != 0)) {
1186 TkTextIndexBackChars(&index1, 1, &index1);
1207 TkTextChanged(textPtr, &index1, &index2);
1210 if (TkTextIndexCmp(&index1, &textPtr->topIndex) <= 0) {
1218 charIndex = index1.charIndex;
1219 } else if (index1.linePtr == textPtr->topIndex.linePtr) {
1239 if (index1.linePtr != index2.linePtr) {
1242 charIndex -= (index2.charIndex - index1.charIndex);
1245 TkBTreeDeleteChars(&index1, &index2);
1247 TkTextMakeIndex(textPtr->tree, line, charIndex, &index1);
1248 TkTextSetYView(textPtr, &index1, 0);
1987 TkTextIndex index1, index2;
2035 if (TkTextGetIndex(interp, textPtr, argv[arg], &index1) != TCL_OK) {
2038 lineno = TkBTreeLineIndex(index1.linePtr) + 1;
2042 TkTextIndexForwChars(&index1, 1, &index2);
2051 if (TkTextIndexCmp(&index1, &index2) >= 0) {
2054 if (index1.linePtr == index2.linePtr) {
2055 DumpLine(interp, textPtr, what, index1.linePtr,
2056 index1.charIndex, index2.charIndex, lineno, command);
2058 DumpLine(interp, textPtr, what, index1.linePtr,
2059 index1.charIndex, 32000000, lineno, command);
2060 linePtr = index1.linePtr;