Lines Matching defs:sink
130 AsciiSinkObject sink = (AsciiSinkObject) w;
131 XFontStruct *font = sink->text_sink.font;
141 for (i = 0, tab = sink->text_sink.tabs ;
142 i < sink->text_sink.tab_count ; i++, tab++) {
154 if (sink->ascii_sink.display_nonprinting)
193 AsciiSinkObject sink = (AsciiSinkObject) w;
197 Dimension width = XTextWidth(sink->text_sink.font, (char *) buf, len);
209 sink->ascii_sink.normgc, (int) x,
210 (int) y - sink->text_sink.font->ascent,
212 (unsigned int) (sink->text_sink.font->ascent +
213 sink->text_sink.font->descent));
232 AsciiSinkObject sink = (AsciiSinkObject) w;
238 GC gc = highlight ? sink->ascii_sink.invgc : sink->ascii_sink.normgc;
239 GC invgc = highlight ? sink->ascii_sink.normgc : sink->ascii_sink.invgc;
241 if (!sink->ascii_sink.echo) return;
243 y += sink->text_sink.font->ascent;
266 (int) y - sink->text_sink.font->ascent,
268 (unsigned int) (sink->text_sink.font->ascent +
269 sink->text_sink.font->descent));
274 if (sink->ascii_sink.display_nonprinting) {
313 AsciiSinkObject sink = (AsciiSinkObject) w;
317 rect->x = sink->ascii_sink.cursor_x - (short) (rect->width / 2);
318 rect->y = sink->ascii_sink.cursor_y - (short) rect->height;
331 AsciiSinkObject sink = (AsciiSinkObject) w;
335 sink->ascii_sink.cursor_x = x;
336 sink->ascii_sink.cursor_y = y;
339 if (state != sink->ascii_sink.laststate && XtIsRealized(text_widget))
341 sink->ascii_sink.insertCursorOn,
342 XtWindow(text_widget), sink->ascii_sink.xorgc,
345 sink->ascii_sink.laststate = state;
362 AsciiSinkObject sink = (AsciiSinkObject) w;
384 *resHeight = sink->text_sink.font->ascent +sink->text_sink.font->descent;
401 AsciiSinkObject sink = (AsciiSinkObject) w;
443 *resHeight = sink->text_sink.font->ascent +sink->text_sink.font->descent;
463 GetGC(sink)
464 AsciiSinkObject sink;
470 values.font = sink->text_sink.font->fid;
473 values.foreground = sink->text_sink.foreground;
474 values.background = sink->text_sink.background;
475 sink->ascii_sink.normgc = XtGetGC((Widget)sink, valuemask, &values);
477 values.foreground = sink->text_sink.background;
478 values.background = sink->text_sink.foreground;
479 sink->ascii_sink.invgc = XtGetGC((Widget)sink, valuemask, &values);
483 values.foreground = (sink->text_sink.background ^
484 sink->text_sink.foreground);
487 sink->ascii_sink.xorgc = XtGetGC((Widget)sink, valuemask, &values);
506 AsciiSinkObject sink = (AsciiSinkObject) new;
508 GetGC(sink);
510 sink->ascii_sink.insertCursorOn= CreateInsertCursor(XtScreenOfObject(new));
511 sink->ascii_sink.laststate = XawisOff;
512 sink->ascii_sink.cursor_x = sink->ascii_sink.cursor_y = 0;
526 AsciiSinkObject sink = (AsciiSinkObject) w;
528 XtReleaseGC(w, sink->ascii_sink.normgc);
529 XtReleaseGC(w, sink->ascii_sink.invgc);
530 XtReleaseGC(w, sink->ascii_sink.xorgc);
531 XFreePixmap(XtDisplayOfObject(w), sink->ascii_sink.insertCursorOn);