Lines Matching refs:position

104 			        ((ctx)->text.lt.info[(num)].position != 0) )
661 * position is immediately preceded by an eol graphic, then the insert cursor
819 * This routine maps an x and y position in a window that is displaying text
820 * into the corresponding position in the source.
833 XawTextPosition position;
841 position = ctx->text.lt.info[line].position;
842 if (position >= ctx->text.lastPos)
845 XawTextSinkFindPosition( ctx->text.sink, position, fromx, x - fromx,
846 FALSE, &position, &width, &height);
847 if (position > ctx->text.lastPos) return(ctx->text.lastPos);
848 if (position >= ctx->text.lt.info[line + 1].position)
849 position = SrcScan(ctx->text.source, ctx->text.lt.info[line + 1].position,
851 return(position);
855 * This routine maps a source position in to the corresponding line number
862 LineForPosition (ctx, position)
864 XawTextPosition position;
869 if (position < ctx->text.lt.info[line + 1].position)
875 * This routine maps a source position into the corresponding line number
899 linePos = ctx->text.lt.info[*line].position;
909 * specified position and measuring text to determine the staring position
919 XawTextPosition position,
922 _XawTextBuildLineTable (ctx, position, force_rebuild)
924 XawTextPosition position;
945 if ( force_rebuild || (position != ctx->text.lt.top) ) {
947 (void) _BuildLineTable(ctx, ctx->text.lt.top = position, zeroPosition, 0);
956 _BuildLineTable(ctx, position, min_pos, line)
958 XawTextPosition position, min_pos;
979 lt->position = position;
981 XawTextSinkFindPosition( ctx->text.sink, position, ctx->text.margin.left,
988 endPos = SrcScan(src, position, XawstEOL, XawsdRight, 1, TRUE);
991 if(SrcScan(src, position, XawstEOL, XawsdRight, 1, FALSE) == endPos)
998 ((lt->position == (position = endPos)) && (position > min_pos)) )
999 return(position);
1005 * a) Both have position > text.lastPos and lt->textWidth = 0.
1021 lt->position = ctx->text.lastPos + 100;
1028 ctx->text.lt.info[ctx->text.lt.lines].position = lt->position;
1069 last = ctx->text.lt.info[ctx->text.lt.lines].position;
1070 if ( ctx->text.lt.info[ctx->text.lt.lines].position < ctx->text.lastPos )
1111 * correct metrics (position and shown fraction) for the text being currently
1184 top = Min(lt->info[n].position, ctx->text.lastPos);
1204 _XawTextNeedsUpdating(ctx, lt->info[lt->lines - n].position,
1220 updateTo = IsValidLine(ctx, n) ? lt->info[n].position : ctx->text.lastPos;
1239 _XawTextNeedsUpdating(ctx, lt->info[0].position, updateTo);
1381 XawTextSinkFindPosition(ctx->text.sink, lt->position,
1387 (ctx->text.lt.info[line + 1].position <= ctx->text.lastPos) )
1388 pos2 = SrcScan( ctx->text.source, (lt + 1)->position, XawstPositions,
1402 if (t_pos < (lt + 1)->position)
1435 * displayed view of the source to a new position determined by a fraction
1438 * fraction of the first position and last position and then normalizes to
1439 * the start of the line containing the position.
1442 * cause thumbing to always position to the start of the source.
1453 XawTextPosition position, old_top, old_bot;
1459 old_bot = lt->info[lt->lines - 1].position;
1463 position = (long) (*percent * (float) ctx->text.lastPos);
1464 position= SrcScan(ctx->text.source, position, XawstEOL, XawsdLeft, 1, FALSE);
1465 if ( (position >= old_top) && (position <= old_bot) ) {
1467 for (;(line < lt->lines) && (position > lt->info[line].position) ; line++);
1472 _XawTextBuildLineTable(ctx, position, FALSE);
1473 new_bot = IsValidLine(ctx, lt->lines-1) ? lt->info[lt->lines-1].position
1478 for (;(line < lt->lines) && (old_top > lt->info[line].position); line++);
2022 lineP->position += delta;
2033 ctx->text.lt.info[line1].position, pos1, line1);
2070 if ( (endPos = ctx->text.lt.info[i + 1].position) > pos2 ) {
2547 XawTextPosition position;
2558 position = PositionForXY (ctx, (int) ctx->text.ev_x, (int) ctx->text.ev_y);
2562 DoSelection (ctx, position, ctx->text.time, flag);
2564 ExtendSelection (ctx, position, flag);
2989 * Description: Returns a valid position given any postition
2990 * Arguments: pos - any position.
2991 * Returns: a position between (0 and lastPos);
3134 /* Li wrote this so the IM can find a given text position's screen position. */
3279 XawTextSetInsertionPoint(Widget w, XawTextPosition position)
3281 XawTextSetInsertionPoint(w, position)
3283 XawTextPosition position;
3289 ctx->text.insertPos = FindGoodPosition(ctx, position);
3454 * Returns: The position of the text found, or XawTextSearchError on