Lines Matching defs:pos
882 LineAndXYForPosition (ctx, pos, line, x, y)
884 XawTextPosition pos;
895 if (visible = IsPositionVisible(ctx, pos)) {
896 *line = LineForPosition(ctx, pos);
901 *x, pos, &realW, &endPos, &realH);
1855 XawTextPosition pos;
1858 pos = Min(right, ctx->text.s.left);
1859 _XawTextNeedsUpdating(ctx, left, pos);
1862 pos = Min(left, ctx->text.s.right);
1863 _XawTextNeedsUpdating(ctx, ctx->text.s.left, pos);
1866 pos = Max(right, ctx->text.s.left);
1867 _XawTextNeedsUpdating(ctx, pos, ctx->text.s.right);
1870 pos = Max(left, ctx->text.s.right);
1871 _XawTextNeedsUpdating(ctx, pos, right);
2146 DoSelection (ctx, pos, time, motion)
2148 XawTextPosition pos;
2160 ((pos >= ctx->text.s.left) && (pos <= ctx->text.s.right))) {
2179 newLeft = newRight = pos;
2182 newLeft = pos;
2183 newRight = SrcScan(src, pos, XawstPositions, XawsdRight, 1, FALSE);
2203 newRight = SrcScan(ctx->text.source, pos, stype, XawsdRight, 1, FALSE);
2206 if (pos != newRight)
2207 newLeft = SrcScan(ctx->text.source, pos, stype, XawsdLeft, 1, FALSE);
2209 newLeft = pos;
2221 newLeft = SrcScan(src, pos, XawstEOL, XawsdLeft, 1, FALSE);
2222 newRight = SrcScan(src, pos, XawstEOL, XawsdRight, 1, FALSE);
2225 newLeft = SrcScan(src, pos, XawstAll, XawsdLeft, 1, FALSE);
2226 newRight = SrcScan(src, pos, XawstAll, XawsdRight, 1, FALSE);
2237 if (pos - ctx->text.s.left < ctx->text.s.right - pos)
2248 if (pos >= ctx->text.s.left + ((ctx->text.s.right - ctx->text.s.left) / 2))
2264 ExtendSelection (ctx, pos, motion)
2266 XawTextPosition pos;
2281 if (pos >= ctx->text.s.left + ((ctx->text.s.right - ctx->text.s.left) / 2))
2287 if ((ctx->text.extendDir == XawsdRight && pos <= ctx->text.origSel.left) ||
2288 (ctx->text.extendDir == XawsdLeft && pos >= ctx->text.origSel.right)) {
2315 right_pos = SrcScan(ctx->text.source, pos, stype, XawsdRight, 1, FALSE);
2318 if (pos != right_pos)
2319 left_pos = SrcScan(ctx->text.source, pos, stype, XawsdLeft, 1, FALSE);
2321 left_pos = pos;
2326 pos = Min(left_pos, right_pos);
2328 pos = Max(left_pos, right_pos);
2332 pos = SrcScan(ctx->text.source, pos, XawstEOL, dir, 1, dir == XawsdRight);
2335 pos = ctx->text.insertPos;
2342 ModifySelection(ctx, ctx->text.s.left, pos);
2344 ModifySelection(ctx, pos, ctx->text.s.right);
2346 ctx->text.insertPos = pos;
2990 * Arguments: pos - any position.
2995 FindGoodPosition(ctx, pos)
2997 XawTextPosition pos;
2999 if (pos < 0) return(0);
3000 return ( ((pos > ctx->text.lastPos) ? ctx->text.lastPos : pos) );
3140 XawTextPosition pos,
3144 _XawTextPosToXY( w, pos, x, y )
3146 XawTextPosition pos;
3151 LineAndXYForPosition( (TextWidget)w, pos, &line, x, y );