Lines Matching defs:lines
487 ctx->text.lt.lines = 0;
633 if (ctx->text.lt.lines < 1) return;
636 if (line < ctx->text.lt.lines)
751 if (ctx->text.lt.lines == 0) return 0;
753 for (line = 0; line < ctx->text.lt.lines - 1; line++) {
784 for (line = 0; line < ctx->text.lt.lines; line++)
838 int lines = 0;
843 lines = XawTextSinkMaxLines(ctx->text.sink, height);
845 size = sizeof(XawTextLineTableEntry) * (lines + 1);
847 if ( (lines != ctx->text.lt.lines) || (ctx->text.lt.info == NULL) ) {
850 ctx->text.lt.lines = lines;
905 if ( (line > ctx->text.lt.lines) ||
911 * If we are at the end of the buffer put two special lines in the table.
926 if (line++ < ctx->text.lt.lines) { /* make sure not to run of the end. */
932 if (line < ctx->text.lt.lines) /* Clear out rest of table. */
934 (ctx->text.lt.lines - line) * sizeof(XawTextLineTableEntry) );
936 ctx->text.lt.info[ctx->text.lt.lines].position = lt->position;
958 for (i = 0, widest = 1 ; i < lt->lines ; i++)
974 if ( (ctx->text.lastPos > 0) && (ctx->text.lt.lines > 0)) {
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)
1051 * The routine will scroll the displayed text by lines. If the arg is
1065 if (abs(n) > ctx->text.lt.lines)
1066 n = (n > 0) ? ctx->text.lt.lines : -ctx->text.lt.lines;
1089 if (n < lt->lines) n++; /* update descenders at bottom */
1090 _XawTextNeedsUpdating(ctx, lt->info[lt->lines - n].position,
1107 if (IsValidLine(ctx, lt->lines - n))
1108 height = lt->info[lt->lines-n].y - ctx->text.margin.top;
1299 int height, lines = (int) callData;
1304 lines = (int) (lines * (int) ctx->text.lt.lines) / height;
1306 _XawTextVScroll(ctx, lines);
1314 * the number of displayable lines in the source. This routine does it as a
1335 if ( (lt->lines > 0) && (IsValidLine(ctx, lt->lines - 1)) )
1336 old_bot = lt->info[lt->lines - 1].position;
1344 for (;(line < lt->lines) && (position > lt->info[line].position) ; line++);
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++);
1690 for (lineP = ctx->text.lt.info + i; i <= ctx->text.lt.lines; i++, lineP++)
1697 * this code checks for moving words to and from lines.
1736 (i < ctx->text.lt.lines) ; i++) {
1986 int scroll_by = insert_line - ctx->text.lt.lines/2;
2027 IsValidLine(ctx, line) && (line < ctx->text.lt.lines) ; line++, lt++)
2045 line = ctx->text.lt.lines;
2047 if ( (line + 1) == ctx->text.lt.lines ) return;
2203 for (line = 0;( (line < ctx->text.lt.lines) &&
2317 int x, y, number, lines;
2320 if ( (!XtIsRealized((Widget)ctx)) || (ctx->text.lt.lines <= 0) )
2324 lines = ctx->text.lt.lines;
2325 if ( IsValidLine(ctx, lines))
2326 max_pos = ctx->text.lt.info[lines].position;
2347 lines = LineForPosition(ctx, max_pos); /* number of visable lines. */
2363 number = lines;
2369 while (ctx->text.insertPos >= ctx->text.lt.info[lines].position) {
2370 if (ctx->text.lt.info[lines].position > ctx->text.lastPos)