Lines Matching defs:pos

798 LineAndXYForPosition (ctx, pos, line, x, y)
800 XawTextPosition pos;
811 if (visible = IsPositionVisible(ctx, pos)) {
812 *line = LineForPosition(ctx, pos);
817 *x, pos, &realW, &endPos, &realH);
1551 XawTextPosition pos;
1554 pos = Min(right, ctx->text.s.left);
1555 _XawTextNeedsUpdating(ctx, left, pos);
1558 pos = Min(left, ctx->text.s.right);
1559 _XawTextNeedsUpdating(ctx, ctx->text.s.left, pos);
1562 pos = Max(right, ctx->text.s.left);
1563 _XawTextNeedsUpdating(ctx, pos, ctx->text.s.right);
1566 pos = Max(left, ctx->text.s.right);
1567 _XawTextNeedsUpdating(ctx, pos, right);
1814 DoSelection (ctx, pos, time, motion)
1816 XawTextPosition pos;
1828 ((pos >= ctx->text.s.left) && (pos <= ctx->text.s.right))) {
1847 newLeft = newRight = pos;
1850 newLeft = pos;
1851 newRight = SrcScan(src, pos, XawstPositions, XawsdRight, 1, FALSE);
1854 newRight = SrcScan(src, pos, XawstWhiteSpace, XawsdRight, 1, FALSE);
1858 newRight = SrcScan(src, pos, XawstParagraph, XawsdRight, 1, FALSE);
1862 newLeft = SrcScan(src, pos, XawstEOL, XawsdLeft, 1, FALSE);
1863 newRight = SrcScan(src, pos, XawstEOL, XawsdRight, 1, FALSE);
1866 newLeft = SrcScan(src, pos, XawstAll, XawsdLeft, 1, FALSE);
1867 newRight = SrcScan(src, pos, XawstAll, XawsdRight, 1, FALSE);
1878 if (pos - ctx->text.s.left < ctx->text.s.right - pos)
1889 if (pos >= ctx->text.s.left + ((ctx->text.s.right - ctx->text.s.left) / 2))
1908 ExtendSelection (ctx, pos, motion)
1910 XawTextPosition pos;
1919 if (pos >= ctx->text.s.left + ((ctx->text.s.right - ctx->text.s.left) / 2))
1925 if ((ctx->text.extendDir == XawsdRight && pos < ctx->text.origSel.left) ||
1926 (ctx->text.extendDir == XawsdLeft && pos > ctx->text.origSel.right)) {
1935 pos = SrcScan(ctx->text.source, pos, XawstWhiteSpace, dir, 1, FALSE);
1938 pos = SrcScan(ctx->text.source, pos, XawstEOL, dir, 1, dir == XawsdRight);
1941 pos = SrcScan(ctx->text.source, pos, XawstParagraph, dir, 1, FALSE);
1944 pos = ctx->text.insertPos;
1951 ModifySelection(ctx, ctx->text.s.left, pos);
1953 ModifySelection(ctx, pos, ctx->text.s.right);
1955 ctx->text.insertPos = pos;
2551 * Arguments: pos - any position.
2556 FindGoodPosition(ctx, pos)
2558 XawTextPosition pos;
2560 if (pos < 0) return(0);
2561 return ( ((pos > ctx->text.lastPos) ? ctx->text.lastPos : pos) );