Lines Matching refs:position
76 ((ctx)->text.lt.info[(num)].position != 0) )
621 * position is immediately preceded by an eol graphic, then the insert cursor
735 * This routine maps an x and y position in a window that is displaying text
736 * into the corresponding position in the source.
749 XawTextPosition position;
757 position = ctx->text.lt.info[line].position;
758 if (position >= ctx->text.lastPos)
761 XawTextSinkFindPosition( ctx->text.sink, position, fromx, x - fromx,
762 FALSE, &position, &width, &height);
763 if (position >= ctx->text.lt.info[line + 1].position)
764 position = SrcScan(ctx->text.source, ctx->text.lt.info[line + 1].position,
766 if (position > ctx->text.lastPos) position = ctx->text.lastPos;
767 return(position);
771 * This routine maps a source position in to the corresponding line number
778 LineForPosition (ctx, position)
780 XawTextPosition position;
785 if (position < ctx->text.lt.info[line + 1].position)
791 * This routine maps a source position into the corresponding line number
815 linePos = ctx->text.lt.info[*line].position;
825 * specified position and measuring text to determine the staring position
832 _XawTextBuildLineTable (ctx, position, force_rebuild)
834 XawTextPosition position; /* top. */
854 if ( force_rebuild || (position != ctx->text.lt.top) ) {
856 (void) _BuildLineTable(ctx, ctx->text.lt.top = position, zeroPosition, 0);
865 _BuildLineTable(ctx, position, min_pos, line)
867 XawTextPosition position, min_pos;
887 lt->position = position;
889 XawTextSinkFindPosition( ctx->text.sink, position, ctx->text.margin.left,
896 endPos = SrcScan(src, position, XawstEOL, XawsdRight, 1, TRUE);
899 if(SrcScan(src, position, XawstEOL, XawsdRight, 1, FALSE) == endPos)
906 ((lt->position == (position = endPos)) && (position > min_pos)) )
907 return(position);
913 * a) Both have position > text.lastPos and lt->textWidth = 0.
929 lt->position = ctx->text.lastPos + 100;
936 ctx->text.lt.info[ctx->text.lt.lines].position = lt->position;
977 last = ctx->text.lt.info[ctx->text.lt.lines].position;
978 if ( ctx->text.lt.info[ctx->text.lt.lines].position <= ctx->text.lastPos)
1007 * correct metrics (position and shown fraction) for the text being currently
1072 top = Min(lt->info[n].position, ctx->text.lastPos);
1090 _XawTextNeedsUpdating(ctx, lt->info[lt->lines - n].position,
1106 updateTo = IsValidLine(ctx, n) ? lt->info[n].position : ctx->text.lastPos;
1124 _XawTextNeedsUpdating(ctx, lt->info[0].position, updateTo);
1258 XawTextSinkFindPosition(ctx->text.sink, lt->position,
1264 (ctx->text.lt.info[line + 1].position <= ctx->text.lastPos) )
1265 pos2 = SrcScan( ctx->text.source, (lt + 1)->position, XawstPositions,
1279 if (t_pos < (lt + 1)->position)
1312 * displayed view of the source to a new position determined by a fraction
1315 * fraction of the first position and last position and then normalizes to
1316 * the start of the line containing the position.
1319 * cause thumbing to always position to the start of the source.
1330 XawTextPosition position, old_top, old_bot;
1336 old_bot = lt->info[lt->lines - 1].position;
1340 position = (long) (*percent * (float) ctx->text.lastPos);
1341 position= SrcScan(ctx->text.source, position, XawstEOL, XawsdLeft, 1, FALSE);
1342 if ( (position >= old_top) && (position <= old_bot) ) {
1344 for (;(line < lt->lines) && (position > lt->info[line].position) ; line++);
1349 _XawTextBuildLineTable(ctx, position, FALSE);
1350 new_bot = IsValidLine(ctx, lt->lines-1) ? lt->info[lt->lines-1].position
1355 for (;(line < lt->lines) && (old_top > lt->info[line].position); line++);
1691 lineP->position += delta;
1702 ctx->text.lt.info[line1].position, pos1, line1);
1739 if ( (endPos = ctx->text.lt.info[i + 1].position) > pos2 ) {
2147 XawTextPosition position;
2158 position = PositionForXY (ctx, (int) ctx->text.ev_x, (int) ctx->text.ev_y);
2162 DoSelection (ctx, position, ctx->text.time, flag);
2164 ExtendSelection (ctx, position, flag);
2326 max_pos = ctx->text.lt.info[lines].position;
2356 second = ctx->text.lt.info[1].position;
2369 while (ctx->text.insertPos >= ctx->text.lt.info[lines].position) {
2370 if (ctx->text.lt.info[lines].position > ctx->text.lastPos)
2372 _XawTextBuildLineTable(ctx, ctx->text.lt.info[1].position, FALSE);
2377 } else if (ctx->text.lt.info[1].position == first) {
2550 * Description: Returns a valid position given any postition
2551 * Arguments: pos - any position.
2552 * Returns: a position between (0 and lastPos);
2663 XawTextSetInsertionPoint(w, position)
2665 XawTextPosition position;
2670 ctx->text.insertPos = FindGoodPosition(ctx, position);
2841 * Returns: The position of the text found, or XawTextSearchError on