Lines Matching refs:sink
154 AsciiSinkObject sink = (AsciiSinkObject) w;
155 XFontStruct *font = sink->ascii_sink.font;
165 for (i = 0, tab = sink->text_sink.tabs ;
166 i < sink->text_sink.tab_count ; i++, tab++) {
178 if (sink->ascii_sink.display_nonprinting)
217 AsciiSinkObject sink = (AsciiSinkObject) w;
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));
256 AsciiSinkObject sink = (AsciiSinkObject) w;
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) {
337 AsciiSinkObject sink = (AsciiSinkObject) w;
341 rect->x = sink->ascii_sink.cursor_x - (short) (rect->width / 2);
342 rect->y = sink->ascii_sink.cursor_y - (short) rect->height;
355 AsciiSinkObject sink = (AsciiSinkObject) w;
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;
386 AsciiSinkObject sink = (AsciiSinkObject) w;
408 *resHeight = sink->ascii_sink.font->ascent +sink->ascii_sink.font->descent;
425 AsciiSinkObject sink = (AsciiSinkObject) w;
467 *resHeight = sink->ascii_sink.font->ascent +sink->ascii_sink.font->descent;
487 GetGC(sink)
488 AsciiSinkObject sink;
494 values.font = sink->ascii_sink.font->fid;
497 values.foreground = sink->text_sink.foreground;
498 values.background = sink->text_sink.background;
499 sink->ascii_sink.normgc = XtGetGC((Widget)sink, valuemask, &values);
501 values.foreground = sink->text_sink.background;
502 values.background = sink->text_sink.foreground;
503 sink->ascii_sink.invgc = XtGetGC((Widget)sink, valuemask, &values);
507 values.foreground = (sink->text_sink.background ^
508 sink->text_sink.foreground);
511 sink->ascii_sink.xorgc = XtGetGC((Widget)sink, valuemask, &values);
532 AsciiSinkObject sink = (AsciiSinkObject) new;
534 GetGC(sink);
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;
552 AsciiSinkObject sink = (AsciiSinkObject) w;
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);
610 AsciiSinkObject sink = (AsciiSinkObject) w;
613 font_height = sink->ascii_sink.font->ascent + sink->ascii_sink.font->descent;
631 AsciiSinkObject sink = (AsciiSinkObject) w;
633 return(lines * (sink->ascii_sink.font->ascent +
634 sink->ascii_sink.font->descent));
651 AsciiSinkObject sink = (AsciiSinkObject) w;
655 XFontStruct *font = sink->ascii_sink.font;
671 if (tab_count > sink->text_sink.tab_count) {
672 sink->text_sink.tabs = (Position *)
673 XtRealloc((char *) sink->text_sink.tabs,
675 sink->text_sink.char_tabs = (short *)
676 XtRealloc((char *) sink->text_sink.char_tabs,
681 sink->text_sink.tabs[i] = tabs[i] * figure_width;
682 sink->text_sink.char_tabs[i] = tabs[i];
685 sink->text_sink.tab_count = tab_count;