Lines Matching defs:lines

526   ctx->text.lt.lines = 0;
673 if (ctx->text.lt.lines < 1) return;
676 if (line < ctx->text.lt.lines)
835 if (ctx->text.lt.lines == 0) return 0;
837 for (line = 0; line < ctx->text.lt.lines - 1; line++) {
868 for (line = 0; line < ctx->text.lt.lines; line++)
929 int lines = 0;
934 lines = XawTextSinkMaxLines(ctx->text.sink, height);
936 size = sizeof(XawTextLineTableEntry) * (lines + 1);
938 if ( (lines != ctx->text.lt.lines) || (ctx->text.lt.info == NULL) ) {
941 ctx->text.lt.lines = lines;
997 if ( (line > ctx->text.lt.lines) ||
1003 * If we are at the end of the buffer put two special lines in the table.
1018 if (line++ < ctx->text.lt.lines) { /* make sure not to run of the end. */
1024 if (line < ctx->text.lt.lines) /* Clear out rest of table. */
1026 (ctx->text.lt.lines - line) * sizeof(XawTextLineTableEntry) );
1028 ctx->text.lt.info[ctx->text.lt.lines].position = lt->position;
1050 for (i = 0, widest = 1 ; i < lt->lines ; i++)
1066 if ( (ctx->text.lastPos > 0) && (ctx->text.lt.lines > 0)) {
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 )
1162 * The routine will scroll the displayed text by lines. If the arg is
1177 if (abs(n) > ctx->text.lt.lines)
1178 n = (n > 0) ? ctx->text.lt.lines : -ctx->text.lt.lines;
1203 if (n < lt->lines) n++; /* update descenders at bottom */
1204 _XawTextNeedsUpdating(ctx, lt->info[lt->lines - n].position,
1221 if (IsValidLine(ctx, lt->lines - n))
1222 height = lt->info[lt->lines-n].y - ctx->text.margin.top;
1245 XtSetArg (list[0], XtNinsertPosition, ctx->text.lt.top+ctx->text.lt.lines);
1422 int height, lines = (int) callData;
1427 lines = (int) (lines * (int) ctx->text.lt.lines) / height;
1429 _XawTextVScroll(ctx, lines);
1437 * the number of displayable lines in the source. This routine does it as a
1458 if ( (lt->lines > 0) && (IsValidLine(ctx, lt->lines - 1)) )
1459 old_bot = lt->info[lt->lines - 1].position;
1467 for (;(line < lt->lines) && (position > lt->info[line].position) ; line++);
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++);
2021 for (lineP = ctx->text.lt.info + i; i <= ctx->text.lt.lines; i++, lineP++)
2028 * this code checks for moving words to and from lines.
2067 (i < ctx->text.lt.lines) ; i++) {
2377 int scroll_by = insert_line - ctx->text.lt.lines/2;
2418 IsValidLine(ctx, line) && (line < ctx->text.lt.lines);
2439 line = ctx->text.lt.lines;
2441 if ( (line + 1) == ctx->text.lt.lines ) return;
2603 for (line = 0;( (line < ctx->text.lt.lines) &&
2730 int x, y, lines, number;
2734 if ( (!XtIsRealized((Widget)ctx)) || (ctx->text.lt.lines <= 0) )
2751 lines = LineForPosition(ctx, max_pos) + 1; /* number of visable lines. */
2764 /* count the number of lines we have to scroll */
2771 if ( - number > lines )
2778 of lines. */
2790 lines = number;
2797 XawstEOL, XawsdLeft, lines, FALSE);
2800 lines = LineForPosition(ctx, top);
2810 _XawTextVScroll(ctx, lines);