Lines Matching defs:text

78 		      XawTextBlock *text);
90 ctx->text.time = event->xbutton.time;
91 ctx->text.ev_x = event->xbutton.x;
92 ctx->text.ev_y = event->xbutton.y;
96 ctx->text.time = event->xkey.time;
97 ctx->text.ev_x = event->xkey.x;
98 ctx->text.ev_y = event->xkey.y;
101 ctx->text.time = event->xmotion.time;
102 ctx->text.ev_x = event->xmotion.x;
103 ctx->text.ev_y = event->xmotion.y;
107 ctx->text.time = event->xcrossing.time;
108 ctx->text.ev_x = event->xcrossing.x;
109 ctx->text.ev_y = event->xcrossing.y;
120 ctx->text.mult = 1;
135 XawTextBlock text;
136 text.ptr = XFetchBuffer(XtDisplay(ctx), &(text.length), buffer);
137 text.firstPos = 0;
138 if (_XawTextReplace(ctx, ctx->text.insertPos, ctx->text.insertPos, &text)) {
142 ctx->text.insertPos = SrcScan(ctx->text.source, ctx->text.insertPos,
143 XawstPositions, XawsdRight, text.length, TRUE);
144 XtFree(text.ptr);
188 XawTextBlock text;
200 text.ptr = (char*)value;
201 text.firstPos = 0;
202 text.length = *length;
203 text.format = FMT8BIT;
204 if (_XawTextReplace(ctx, ctx->text.insertPos, ctx->text.insertPos, &text)) {
208 ctx->text.insertPos = SrcScan(ctx->text.source, ctx->text.insertPos,
209 XawstPositions, XawsdRight, text.length, TRUE);
272 GetSelection(w, ((TextWidget)w)->text.time, params, *num_params);
291 ctx->text.insertPos = SrcScan(ctx->text.source, ctx->text.insertPos,
292 type, dir, ctx->text.mult, include);
371 ctx->text.mult++;
373 new = SrcScan(ctx->text.source, ctx->text.insertPos,
376 FindDist(ctx->text.sink, new, ctx->text.margin.left, ctx->text.insertPos,
379 new = SrcScan(ctx->text.source, ctx->text.insertPos, XawstEOL, dir,
380 ctx->text.mult, (dir == XawsdRight));
382 next_line = SrcScan(ctx->text.source, new, XawstEOL, XawsdRight, 1, FALSE);
384 FindPos(ctx->text.sink, new, ctx->text.margin.left, from_left, FALSE,
385 &(ctx->text.insertPos), &garbage, &garbage);
387 if (ctx->text.insertPos > next_line)
388 ctx->text.insertPos = next_line;
434 _XawTextVScroll(ctx, ctx->text.mult);
436 _XawTextVScroll(ctx, -ctx->text.mult);
463 int scroll_val = Max(1, ctx->text.lt.lines - 2);
470 ctx->text.insertPos = ctx->text.lt.top;
502 XawTextBlock text;
510 text.length = 0;
511 text.firstPos = 0;
512 if (_XawTextReplace(ctx, from, to, &text)) {
516 ctx->text.insertPos = from;
517 ctx->text.showposition = TRUE;
531 to = SrcScan(ctx->text.source, ctx->text.insertPos,
532 type, dir, ctx->text.mult, include);
536 to = ctx->text.insertPos;
539 from = ctx->text.insertPos;
607 end_of_line = SrcScan(ctx->text.source, ctx->text.insertPos, XawstEOL,
608 XawsdRight, ctx->text.mult, FALSE);
609 if (end_of_line == ctx->text.insertPos)
610 end_of_line = SrcScan(ctx->text.source, ctx->text.insertPos, XawstEOL,
611 XawsdRight, ctx->text.mult, TRUE);
613 _DeleteOrKill(ctx, ctx->text.insertPos, end_of_line, TRUE);
633 _DeleteOrKill(ctx, ctx->text.s.left, ctx->text.s.right, kill);
665 XawTextBlock text;
668 ptr = buf = XtMalloc(sizeof(char) * ctx->text.mult);
669 for (count = 0; count < ctx->text.mult; count++, ptr++)
672 text.length = ctx->text.mult;
673 text.ptr = buf;
674 text.firstPos = 0;
675 text.format = FMT8BIT;
677 if (_XawTextReplace(ctx, ctx->text.insertPos, ctx->text.insertPos, &text)) {
682 ctx->text.showposition = TRUE;
707 ctx->text.insertPos = SrcScan(ctx->text.source, ctx->text.insertPos,
708 XawstPositions, XawsdRight, ctx->text.mult, TRUE);
727 XawTextBlock text;
732 pos1 = SrcScan(ctx->text.source, ctx->text.insertPos,
734 pos2 = SrcScan(ctx->text.source, pos1, XawstEOL, XawsdLeft, 1, TRUE);
735 pos2 = SrcScan(ctx->text.source, pos2, XawstWhiteSpace, XawsdRight, 1, TRUE);
736 text.ptr = _XawTextGetText(ctx, pos1, pos2);
737 text.length = strlen(text.ptr);
739 text.firstPos = 0;
740 if (_XawTextReplace(ctx,ctx->text.insertPos, ctx->text.insertPos, &text)) {
745 ctx->text.insertPos = SrcScan(ctx->text.source, ctx->text.insertPos,
746 XawstPositions, XawsdRight, text.length, TRUE);
747 XtFree(text.ptr);
769 l = SrcScan(ctx->text.source, ctx->text.insertPos,
771 r = SrcScan(ctx->text.source, l, XawstWhiteSpace, XawsdRight, 1, FALSE);
786 _XawTextSetSelection(ctx,zeroPosition,ctx->text.lastPos,params,*num_params);
899 ctx->text.hasfocus = TRUE;
910 ctx->text.hasfocus = FALSE;
918 * Arguments: ctx - The text widget.
928 XawTextBlock text;
930 if ( !((ctx->text.auto_fill) && (ctx->text.mult == 1)) )
933 for ( line_num = 0; line_num < ctx->text.lt.lines ; line_num++)
934 if ( ctx->text.lt.info[line_num].position >= ctx->text.insertPos )
940 x = ctx->text.margin.left;
941 XawTextSinkFindPosition( ctx->text.sink,ctx->text.lt.info[line_num].position,
944 if ( ret_pos >= ctx->text.insertPos )
947 text.ptr = "\n";
948 text.length = 1;
949 text.firstPos = 0;
950 text.format = FMT8BIT;
952 _XawTextReplace(ctx, ret_pos - 1, ret_pos, &text);
964 XawTextBlock text;
966 if ( (text.length = XLookupString (&event->xkey, strbuf, BUFSIZ,
971 text.ptr = ptr = XtMalloc(sizeof(char) * text.length * ctx->text.mult);
972 for (count = 0 ; count < ctx->text.mult ; count++) {
973 strncpy(ptr, strbuf, text.length);
974 ptr += text.length;
977 text.length = text.length * ctx->text.mult;
978 text.firstPos = 0;
979 text.format = FMT8BIT;
983 error = _XawTextReplace(ctx, ctx->text.insertPos,ctx->text.insertPos, &text);
986 ctx->text.insertPos =
987 SrcScan(ctx->text.source, ctx->text.insertPos,
988 XawstPositions, XawsdRight, text.length, TRUE);
994 XtFree(text.ptr);
1008 XawTextBlock text;
1011 text.firstPos = 0;
1029 text.ptr = (char*)&hexval;
1030 text.length = 1;
1031 } else text.length = strlen(text.ptr = *params);
1032 } else text.length = strlen(text.ptr = *params);
1033 if (text.length == 0) continue;
1034 if (_XawTextReplace(ctx, ctx->text.insertPos,
1035 ctx->text.insertPos, &text)) {
1040 ctx->text.insertPos =
1041 SrcScan(ctx->text.source, ctx->text.insertPos,
1042 XawstPositions, XawsdRight, text.length, TRUE);
1073 if (ctx->text.display_caret == display_caret) return;
1076 ctx->text.display_caret = display_caret;
1082 * Arguments: w - the text widget.
1092 * Many of the text widget actions will will perform n actions, where n is
1119 ctx->text.mult = 1;
1132 ctx->text.mult *= mult;
1137 * Arguments: ctx - the text widget.
1149 Widget src = ctx->text.source;
1150 XawTextBlock text;
1153 text.ptr= " ";
1154 text.firstPos = 0;
1155 text.format = FMT8BIT;
1187 text.length = 1;
1190 text.length++; /* Put in two spaces. */
1203 to -= (i - text.length - 1);
1205 _XawTextReplace(ctx, endPos, startPos, &text);
1206 startPos -= i - text.length;
1214 * Arguments: ctx - the text widget.
1225 XawTextBlock text;
1229 text.ptr = "\n";
1230 text.length = 1;
1231 text.firstPos = 0;
1232 text.format = FMT8BIT;
1236 XawTextSinkFindPosition( ctx->text.sink, startPos,
1237 (int) ctx->text.margin.left,
1243 eol = SrcScan(ctx->text.source, eol, XawstPositions, XawsdLeft, 1, TRUE);
1244 space= SrcScan(ctx->text.source, eol, XawstWhiteSpace, XawsdRight, 1,TRUE);
1257 endPos = SrcScan(ctx->text.source, endPos,
1261 _XawTextReplace(ctx, startPos, endPos, &text);
1262 startPos = SrcScan(ctx->text.source, startPos,
1269 * Arguments: ctx - the text widget.
1283 _XawTextBuildLineTable(ctx, ctx->text.lt.top, TRUE);
1288 * Arguments: w - the text widget.
1307 from = SrcScan(ctx->text.source, ctx->text.insertPos,
1309 to = SrcScan(ctx->text.source, from,
1320 * Arguments: w - the text widget.
1336 XawTextBlock text;
1346 start = SrcScan(ctx->text.source, ctx->text.insertPos, XawstPositions,
1348 end = SrcScan(ctx->text.source, ctx->text.insertPos, XawstPositions,
1349 XawsdRight, ctx->text.mult, TRUE);
1351 if ( (start == ctx->text.insertPos) || (end == ctx->text.insertPos) )
1354 ctx->text.insertPos = end;
1357 * Retrieve text and swap the characters.
1361 text.length = strlen((const char *)buf);
1362 text.firstPos = 0;
1363 text.format = FMT8BIT;
1366 for (i = 1 ; i < text.length ; i++)
1371 * Store new text is source.
1374 text.ptr = (char *) buf;
1375 _XawTextReplace (ctx, start, end, &text);
1386 * Arguments: w - the text widget.
1478 /* Action to bind special translations for text Dialogs. */