1994689c1Smrg<sect1 id="Ascii_Sink_Object_and_Multi_Sink_Object"> 2994689c1Smrg<title>Ascii Sink Object and Multi Sink Object</title> 3994689c1Smrg<para> 4994689c1Smrg<!-- .LP --> 5994689c1Smrg<!-- .XS --> 6994689c1Smrg<!-- AsciiSink Object --> 7994689c1Smrg<!-- .XE --> 85ec34c4cSmrg<indexterm significance="preferred"><primary>AsciiSink object</primary></indexterm> 9994689c1Smrg</para> 10994689c1Smrg<para> 11994689c1Smrg<!-- .LP --> 12994689c1Smrg<literallayout class="monospaced"> 13994689c1Smrg<!-- .TA 2.0i --> 14994689c1Smrg<!-- .ta 2.0i --> 15994689c1SmrgApplication Header file <X11/Xaw/AsciiSink.h> 165ec34c4cSmrg<indexterm><primary>AsciiSink.h</primary></indexterm> 17994689c1SmrgClass Header file <X11/Xaw/AsciiSinkP.h> 185ec34c4cSmrg<indexterm><primary>AsciiSinkP.h</primary></indexterm> 19994689c1SmrgClass asciiSinkObjectClass 205ec34c4cSmrg<indexterm><primary>asciiSinkObjectClass</primary></indexterm> 21994689c1SmrgClass Name AsciiSink 225ec34c4cSmrg<indexterm><primary>AsciiSink object</primary><secondary>class name</secondary></indexterm> 23994689c1SmrgSuperclass TextSink 24994689c1Smrg</literallayout> 25994689c1Smrg</para> 26994689c1Smrg<para> 27994689c1Smrg<!-- .LP --> 28994689c1SmrgThe AsciiSink or MultiSink object is used by a text widget to render the text. 29994689c1SmrgDepending on its <function>international</function> resource, a 30994689c1SmrgAsciiText widget will create one or the other of these when the AsciiText 31994689c1Smrgitself is created. Both types are nearly identical; the following discussion 32994689c1Smrgapplies to both, with MultiSink differences noted only as they occur. 33994689c1SmrgThe AsciiSink 34994689c1Smrgwill display all printing characters in an 8 bit font, along with handling Tab 355ec34c4cSmrgand Carriage Return. The name has been left as <quote>AsciiSink</quote> for compatibility. 365ec34c4cSmrg<emphasis remap='I'>The MultiSink will display all printing characters in a 375ec34c4cSmrgfont set, along with handling Tab and Carriage Return.</emphasis> 385ec34c4cSmrgThe source object also reports the text window metrics to the 39994689c1Smrgtext widgets. 40994689c1Smrg</para> 41421c997bSmrg<sect2 id='AsciiSink::Resources'> 42994689c1Smrg<title>Resources</title> 43994689c1Smrg<para> 44994689c1Smrg<!-- .LP --> 45994689c1SmrgWhen creating an AsciiSink object instance, the following resources are 46994689c1Smrgretrieved from the argument list or from the resource database: 47994689c1Smrg</para> 48994689c1Smrg<para> 49994689c1Smrg<!-- .LP --> 505ec34c4cSmrg<indexterm><primary>AsciiSink object</primary><secondary>resources</secondary></indexterm> 51994689c1Smrg<informaltable> 52994689c1Smrg <tgroup cols='5' align='center'> 53994689c1Smrg <colspec colname='c1'/> 54994689c1Smrg <colspec colname='c2'/> 55994689c1Smrg <colspec colname='c3'/> 56994689c1Smrg <colspec colname='c4'/> 57994689c1Smrg <colspec colname='c5'/> 58994689c1Smrg <thead> 59994689c1Smrg <row> 60994689c1Smrg <entry>Name</entry> 61994689c1Smrg <entry>Class</entry> 62994689c1Smrg <entry>Type</entry> 63994689c1Smrg <entry>Notes</entry> 64994689c1Smrg <entry>Default Value</entry> 65994689c1Smrg </row> 66994689c1Smrg </thead> 67994689c1Smrg <tbody> 68994689c1Smrg <row> 69994689c1Smrg <entry>background</entry> 70994689c1Smrg <entry>Background</entry> 71994689c1Smrg <entry>Pixel</entry> 72994689c1Smrg <entry></entry> 73994689c1Smrg <entry>XtDefaultBackground</entry> 74994689c1Smrg </row> 75994689c1Smrg <row> 76994689c1Smrg <entry>destroyCallback</entry> 77994689c1Smrg <entry>Callback</entry> 78994689c1Smrg <entry>XtCallbackList</entry> 79994689c1Smrg <entry></entry> 80994689c1Smrg <entry>NULL</entry> 81994689c1Smrg </row> 82994689c1Smrg <row> 83994689c1Smrg <entry>displayNonprinting</entry> 84994689c1Smrg <entry>Output</entry> 85994689c1Smrg <entry>Boolean</entry> 86994689c1Smrg <entry></entry> 87994689c1Smrg <entry>True</entry> 88994689c1Smrg </row> 89994689c1Smrg <row> 90994689c1Smrg <entry>echo</entry> 91994689c1Smrg <entry>Output</entry> 92994689c1Smrg <entry>Boolean</entry> 93994689c1Smrg <entry></entry> 94994689c1Smrg <entry>True</entry> 95994689c1Smrg </row> 96994689c1Smrg <row> 97994689c1Smrg <entry>font</entry> 98994689c1Smrg <entry>Font</entry> 99994689c1Smrg <entry>XFontStruct*</entry> 100994689c1Smrg <entry></entry> 101994689c1Smrg <entry>XtDefaultFont</entry> 102994689c1Smrg </row> 103994689c1Smrg <row> 104994689c1Smrg <entry>fontSet</entry> 105994689c1Smrg <entry>FontSet</entry> 106994689c1Smrg <entry>XFontSet</entry> 107994689c1Smrg <entry></entry> 108994689c1Smrg <entry>XtDefaultFontSet</entry> 109994689c1Smrg </row> 110994689c1Smrg <row> 111994689c1Smrg <entry>foreground</entry> 112994689c1Smrg <entry>Foreground</entry> 113994689c1Smrg <entry>Pixel</entry> 114994689c1Smrg <entry></entry> 115994689c1Smrg <entry>XtDefaultForeground</entry> 116994689c1Smrg </row> 117994689c1Smrg <row> 118994689c1Smrg <entry>_</entry> 119994689c1Smrg </row> 120994689c1Smrg </tbody> 121994689c1Smrg </tgroup> 122994689c1Smrg</informaltable> 123994689c1Smrg<!-- .Bg Bold --> 124994689c1SmrgThis resource is retrieved by the AsciiSink instead of being copied 125994689c1Smrgfrom the Text widget. 126994689c1Smrg<!-- .Dc --> 127994689c1Smrg<!-- .Sd Bold --> 128994689c1Smrg<!-- .Sh Bold --> 129994689c1Smrg</para> 130994689c1Smrg<para> 131994689c1Smrg<!-- .IP <function>font</function> 1.5i --> 132994689c1SmrgThe text font to use when displaying the <function>string</function>. 133994689c1Smrg(This resource is present in the AsciiSink, but not the MultiSink.) 134994689c1Smrg<!-- .IP <function>fontSet</function> 1.5i --> 135994689c1Smrg</para> 136994689c1Smrg<para> 137994689c1SmrgThe text font set to use when displaying the <function>string</function>. 138994689c1Smrg(This resource is present in the MultiSink, but not the AsciiSink.) 139994689c1Smrg</para> 140994689c1Smrg</sect2> 141994689c1Smrg</sect1> 142