Lines Matching refs:ascii_sink
75 #define offset(field) XtOffsetOf(AsciiSinkRec, ascii_sink.field)
155 XFontStruct *font = sink->ascii_sink.font;
178 if (sink->ascii_sink.display_nonprinting)
221 Dimension width = XTextWidth(sink->ascii_sink.font, (char *) buf, len);
233 sink->ascii_sink.normgc, (int) x,
234 (int) y - sink->ascii_sink.font->ascent,
236 (unsigned int) (sink->ascii_sink.font->ascent +
237 sink->ascii_sink.font->descent));
262 GC gc = highlight ? sink->ascii_sink.invgc : sink->ascii_sink.normgc;
263 GC invgc = highlight ? sink->ascii_sink.normgc : sink->ascii_sink.invgc;
265 if (!sink->ascii_sink.echo) return;
267 y += sink->ascii_sink.font->ascent;
290 (int) y - sink->ascii_sink.font->ascent,
292 (unsigned int) (sink->ascii_sink.font->ascent +
293 sink->ascii_sink.font->descent));
298 if (sink->ascii_sink.display_nonprinting) {
341 rect->x = sink->ascii_sink.cursor_x - (short) (rect->width / 2);
342 rect->y = sink->ascii_sink.cursor_y - (short) rect->height;
359 sink->ascii_sink.cursor_x = x;
360 sink->ascii_sink.cursor_y = y;
363 if (state != sink->ascii_sink.laststate && XtIsRealized(text_widget))
365 sink->ascii_sink.insertCursorOn,
366 XtWindow(text_widget), sink->ascii_sink.xorgc,
369 sink->ascii_sink.laststate = state;
408 *resHeight = sink->ascii_sink.font->ascent +sink->ascii_sink.font->descent;
467 *resHeight = sink->ascii_sink.font->ascent +sink->ascii_sink.font->descent;
494 values.font = sink->ascii_sink.font->fid;
499 sink->ascii_sink.normgc = XtGetGC((Widget)sink, valuemask, &values);
503 sink->ascii_sink.invgc = XtGetGC((Widget)sink, valuemask, &values);
511 sink->ascii_sink.xorgc = XtGetGC((Widget)sink, valuemask, &values);
536 sink->ascii_sink.insertCursorOn= CreateInsertCursor(XtScreenOfObject(new));
537 sink->ascii_sink.laststate = XawisOff;
538 sink->ascii_sink.cursor_x = sink->ascii_sink.cursor_y = 0;
554 XtReleaseGC(w, sink->ascii_sink.normgc);
555 XtReleaseGC(w, sink->ascii_sink.invgc);
556 XtReleaseGC(w, sink->ascii_sink.xorgc);
557 XFreePixmap(XtDisplayOfObject(w), sink->ascii_sink.insertCursorOn);
578 if (w->ascii_sink.font != old_w->ascii_sink.font
581 XtReleaseGC((Widget)w, w->ascii_sink.normgc);
582 XtReleaseGC((Widget)w, w->ascii_sink.invgc);
583 XtReleaseGC((Widget)w, w->ascii_sink.xorgc);
587 if ( (w->ascii_sink.echo != old_w->ascii_sink.echo) ||
588 (w->ascii_sink.display_nonprinting !=
589 old_w->ascii_sink.display_nonprinting) )
613 font_height = sink->ascii_sink.font->ascent + sink->ascii_sink.font->descent;
633 return(lines * (sink->ascii_sink.font->ascent +
634 sink->ascii_sink.font->descent));
655 XFontStruct *font = sink->ascii_sink.font;