AsciiText.xml revision 994689c1
1994689c1Smrg<sect1 id="Ascii_Text_Widget"> 2994689c1Smrg<title>Ascii Text Widget</title> 3994689c1Smrg<para> 4994689c1Smrg<!-- .LP --> 5994689c1Smrg<!-- .XS --> 6994689c1Smrg<!-- AsciiText Widget --> 7994689c1Smrg<!-- .XE --> 8994689c1Smrg<!-- .IN "AsciiText widget" "" "@DEF@" --> 9994689c1Smrg</para> 10994689c1Smrg<para> 11994689c1Smrg<!-- .LP --> 12994689c1Smrg<literallayout class="monospaced"> 13994689c1Smrg<!-- .TA 2.0i --> 14994689c1Smrg<!-- .ta 2.0i --> 15994689c1SmrgApplication Header file <X11/Xaw/AsciiText.h> 16994689c1Smrg<!-- .IN "AsciiText.h" "" --> 17994689c1SmrgClassHeader file <X11/Xaw/AsciiTextP.h> 18994689c1Smrg<!-- .IN "AsciiTextP.h" "" --> 19994689c1SmrgClass asciiTextWidgetClass 20994689c1Smrg<!-- .IN "asciiTextWidgetClass" "" --> 21994689c1SmrgClass Name Text 22994689c1Smrg<!-- .IN "AsciiText widget" "class name" --> 23994689c1SmrgSuperclass Text 24994689c1SmrgSink Name textSink 25994689c1SmrgSource Name textSource 26994689c1Smrg</literallayout> 27994689c1Smrg<!-- .sp 1 --> 28994689c1Smrg</para> 29994689c1Smrg<para> 30994689c1Smrg<!-- .LP --> 31994689c1SmrgFor the ease of internationalization, the AsciiText widget class name has not 32994689c1Smrgbeen changed, although it is actually able to support non-ASCII locales. 33994689c1SmrgThe AsciiText widget is really a collection of smaller parts. It 34994689c1Smrgincludes the Text widget itself, a ``Source'' (which supports memory management), 35994689c1Smrgand a ``Sink'' (which handles the display). There are currently two supported 36994689c1Smrgsources, the AsciiSrc and MultiSrc, and two supported sinks, the AsciiSink and 37994689c1Smrg<!-- .IN "AsciiSrc object" "" --> 38994689c1Smrg<!-- .IN "AsciiSink object" "" --> 39994689c1Smrg<!-- .IN "MultiSrc object" "" --> 40994689c1Smrg<!-- .IN "MultiSink object" "" --> 41994689c1SmrgMultiSink. Some of 42994689c1Smrgthe resources listed below are not actually resources of the 43994689c1SmrgAsciiText, but belong to the associated source or sink. This is 44994689c1Smrgis noted in the explanation of each resource where it applies. When 45994689c1Smrgspecifying these resources in a resource file it is necessary to use 46994689c1Smrg<emphasis remap='I'>*AsciiText*resource_name</emphasis> instead of 47994689c1Smrg<emphasis remap='I'>*AsciiText.resource_name</emphasis>, since they actually belong to the 48994689c1Smrgchildren of the AsciiText widget, and not the AsciiText widget itself. 49994689c1SmrgHowever, these resources may be set directly on the AsciiText widget at 50994689c1Smrgwidget creation time, or via <function>XtSetValues</function>. 51994689c1Smrg</para> 52994689c1Smrg<sect2 id="asciitext_resources"> 53994689c1Smrg<title>Resources</title> 54994689c1Smrg<para> 55994689c1Smrg<!-- .LP --> 56994689c1SmrgWhen creating an AsciiText widget instance, the following resources are 57994689c1Smrgretrieved from the argument list or from the resource database: 58994689c1Smrg</para> 59994689c1Smrg<para> 60994689c1Smrg<!-- .LP --> 61994689c1Smrg<!-- .IN "AsciiText widget" "resources" --> 62994689c1Smrg<informaltable> 63994689c1Smrg <tgroup cols='5' align='center'> 64994689c1Smrg <colspec colname='c1'/> 65994689c1Smrg <colspec colname='c2'/> 66994689c1Smrg <colspec colname='c3'/> 67994689c1Smrg <colspec colname='c4'/> 68994689c1Smrg <colspec colname='c5'/> 69994689c1Smrg <thead> 70994689c1Smrg <row> 71994689c1Smrg <entry>Name</entry> 72994689c1Smrg <entry>Class</entry> 73994689c1Smrg <entry>Type</entry> 74994689c1Smrg <entry>Notes</entry> 75994689c1Smrg <entry>Default Value</entry> 76994689c1Smrg </row> 77994689c1Smrg </thead> 78994689c1Smrg <tbody> 79994689c1Smrg <row> 80994689c1Smrg <entry>accelerators</entry> 81994689c1Smrg <entry>Accelerators</entry> 82994689c1Smrg <entry>AcceleratorTable</entry> 83994689c1Smrg <entry></entry> 84994689c1Smrg <entry>NULL</entry> 85994689c1Smrg </row> 86994689c1Smrg <row> 87994689c1Smrg <entry>ancestorSensitive</entry> 88994689c1Smrg <entry>AncestorSensitive</entry> 89994689c1Smrg <entry>Boolean</entry> 90994689c1Smrg <entry>D</entry> 91994689c1Smrg <entry>True</entry> 92994689c1Smrg </row> 93994689c1Smrg <row> 94994689c1Smrg <entry>autoFill</entry> 95994689c1Smrg <entry>AutoFill</entry> 96994689c1Smrg <entry>Boolean</entry> 97994689c1Smrg <entry></entry> 98994689c1Smrg <entry>False</entry> 99994689c1Smrg </row> 100994689c1Smrg <row> 101994689c1Smrg <entry>background</entry> 102994689c1Smrg <entry>Background</entry> 103994689c1Smrg <entry>Pixel</entry> 104994689c1Smrg <entry></entry> 105994689c1Smrg <entry>XtDefaultBackground</entry> 106994689c1Smrg </row> 107994689c1Smrg <row> 108994689c1Smrg <entry>backgroundPixmap</entry> 109994689c1Smrg <entry>Pixmap</entry> 110994689c1Smrg <entry>Pixmap</entry> 111994689c1Smrg <entry></entry> 112994689c1Smrg <entry>XtUnspecifiedPixmap</entry> 113994689c1Smrg </row> 114994689c1Smrg <row> 115994689c1Smrg <entry>borderColor</entry> 116994689c1Smrg <entry>BorderColor</entry> 117994689c1Smrg <entry>Pixel</entry> 118994689c1Smrg <entry></entry> 119994689c1Smrg <entry>XtDefaultForeground</entry> 120994689c1Smrg </row> 121994689c1Smrg <row> 122994689c1Smrg <entry>borderPixmap</entry> 123994689c1Smrg <entry>Pixmap</entry> 124994689c1Smrg <entry>Pixmap</entry> 125994689c1Smrg <entry></entry> 126994689c1Smrg <entry>XtUnspecifiedPixmap</entry> 127994689c1Smrg </row> 128994689c1Smrg <row> 129994689c1Smrg <entry>borderWidth</entry> 130994689c1Smrg <entry>BorderWidth</entry> 131994689c1Smrg <entry>Dimension</entry> 132994689c1Smrg <entry></entry> 133994689c1Smrg <entry>1</entry> 134994689c1Smrg </row> 135994689c1Smrg <row> 136994689c1Smrg <entry>bottomMargin</entry> 137994689c1Smrg <entry>Margin</entry> 138994689c1Smrg <entry>Position</entry> 139994689c1Smrg <entry></entry> 140994689c1Smrg <entry>2</entry> 141994689c1Smrg </row> 142994689c1Smrg <row> 143994689c1Smrg <entry>callback</entry> 144994689c1Smrg <entry>Callback</entry> 145994689c1Smrg <entry>XtCallbackList</entry> 146994689c1Smrg <entry></entry> 147994689c1Smrg <entry>NULL</entry> 148994689c1Smrg </row> 149994689c1Smrg <row> 150994689c1Smrg <entry>colormap</entry> 151994689c1Smrg <entry>Colormap</entry> 152994689c1Smrg <entry>Colormap</entry> 153994689c1Smrg <entry></entry> 154994689c1Smrg <entry>Parent's Colormap</entry> 155994689c1Smrg </row> 156994689c1Smrg <row> 157994689c1Smrg <entry>cursor</entry> 158994689c1Smrg <entry>Cursor</entry> 159994689c1Smrg <entry>Cursor</entry> 160994689c1Smrg <entry></entry> 161994689c1Smrg <entry>XC_xterm</entry> 162994689c1Smrg </row> 163994689c1Smrg <row> 164994689c1Smrg <entry>cursorName</entry> 165994689c1Smrg <entry>Cursor</entry> 166994689c1Smrg <entry>String</entry> 167994689c1Smrg <entry></entry> 168994689c1Smrg <entry>NULL</entry> 169994689c1Smrg </row> 170994689c1Smrg <row> 171994689c1Smrg <entry>dataCompression</entry> 172994689c1Smrg <entry>DataCompression</entry> 173994689c1Smrg <entry>Boolean</entry> 174994689c1Smrg <entry></entry> 175994689c1Smrg <entry>True</entry> 176994689c1Smrg </row> 177994689c1Smrg <row> 178994689c1Smrg <entry>depth</entry> 179994689c1Smrg <entry>Depth</entry> 180994689c1Smrg <entry>int</entry> 181994689c1Smrg <entry>C</entry> 182994689c1Smrg <entry>Parent's Depth</entry> 183994689c1Smrg </row> 184994689c1Smrg <row> 185994689c1Smrg <entry>destroyCallback</entry> 186994689c1Smrg <entry>Callback</entry> 187994689c1Smrg <entry>XtCallbackList</entry> 188994689c1Smrg <entry></entry> 189994689c1Smrg <entry>NULL</entry> 190994689c1Smrg </row> 191994689c1Smrg <row> 192994689c1Smrg <entry>displayCaret</entry> 193994689c1Smrg <entry>Output</entry> 194994689c1Smrg <entry>Boolean</entry> 195994689c1Smrg <entry></entry> 196994689c1Smrg <entry>True</entry> 197994689c1Smrg </row> 198994689c1Smrg <row> 199994689c1Smrg <entry>displayNonprinting</entry> 200994689c1Smrg <entry>Output</entry> 201994689c1Smrg <entry>Boolean</entry> 202994689c1Smrg <entry></entry> 203994689c1Smrg <entry>True</entry> 204994689c1Smrg </row> 205994689c1Smrg <row> 206994689c1Smrg <entry>displayPosition</entry> 207994689c1Smrg <entry>TextPosition</entry> 208994689c1Smrg <entry>XawTextPosition</entry> 209994689c1Smrg <entry></entry> 210994689c1Smrg <entry>0</entry> 211994689c1Smrg </row> 212994689c1Smrg <row> 213994689c1Smrg <entry>echo</entry> 214994689c1Smrg <entry>Output</entry> 215994689c1Smrg <entry>Boolean</entry> 216994689c1Smrg <entry></entry> 217994689c1Smrg <entry>True</entry> 218994689c1Smrg </row> 219994689c1Smrg <row> 220994689c1Smrg <entry>editType</entry> 221994689c1Smrg <entry>EditType</entry> 222994689c1Smrg <entry>XawTextEditType</entry> 223994689c1Smrg <entry></entry> 224994689c1Smrg <entry>XawtextRead</entry> 225994689c1Smrg </row> 226994689c1Smrg <row> 227994689c1Smrg <entry>font</entry> 228994689c1Smrg <entry>Font</entry> 229994689c1Smrg <entry>XFontStruct*</entry> 230994689c1Smrg <entry></entry> 231994689c1Smrg <entry>XtDefaultFont</entry> 232994689c1Smrg </row> 233994689c1Smrg <row> 234994689c1Smrg <entry>fontSet</entry> 235994689c1Smrg <entry>FontSet</entry> 236994689c1Smrg <entry>XFontSet</entry> 237994689c1Smrg <entry></entry> 238994689c1Smrg <entry>XtDefaultFontSet</entry> 239994689c1Smrg </row> 240994689c1Smrg <row> 241994689c1Smrg <entry>foreground</entry> 242994689c1Smrg <entry>Foreground</entry> 243994689c1Smrg <entry>Pixel</entry> 244994689c1Smrg <entry></entry> 245994689c1Smrg <entry>XtDefaultForeground</entry> 246994689c1Smrg </row> 247994689c1Smrg <row> 248994689c1Smrg <entry>height</entry> 249994689c1Smrg <entry>Height</entry> 250994689c1Smrg <entry>Dimension</entry> 251994689c1Smrg <entry>A</entry> 252994689c1Smrg <entry>Font height + margins</entry> 253994689c1Smrg </row> 254994689c1Smrg <row> 255994689c1Smrg <entry>insensitiveBorder</entry> 256994689c1Smrg <entry>Insensitive</entry> 257994689c1Smrg <entry>Pixmap</entry> 258994689c1Smrg <entry></entry> 259994689c1Smrg <entry>GreyPixmap</entry> 260994689c1Smrg </row> 261994689c1Smrg <row> 262994689c1Smrg <entry>insertPosition</entry> 263994689c1Smrg <entry>TextPosition</entry> 264994689c1Smrg <entry>int</entry> 265994689c1Smrg <entry></entry> 266994689c1Smrg <entry>0</entry> 267994689c1Smrg </row> 268994689c1Smrg <row> 269994689c1Smrg <entry>international</entry> 270994689c1Smrg <entry>International</entry> 271994689c1Smrg <entry>Boolean</entry> 272994689c1Smrg <entry>C</entry> 273994689c1Smrg <entry>False</entry> 274994689c1Smrg </row> 275994689c1Smrg <row> 276994689c1Smrg <entry>leftMargin</entry> 277994689c1Smrg <entry>Margin</entry> 278994689c1Smrg <entry>Dimension</entry> 279994689c1Smrg <entry></entry> 280994689c1Smrg <entry>2</entry> 281994689c1Smrg </row> 282994689c1Smrg <row> 283994689c1Smrg <entry>length</entry> 284994689c1Smrg <entry>Length</entry> 285994689c1Smrg <entry>int</entry> 286994689c1Smrg <entry>A</entry> 287994689c1Smrg <entry>length of <function>string</function></entry> 288994689c1Smrg </row> 289994689c1Smrg <row> 290994689c1Smrg <entry>mappedWhenManaged</entry> 291994689c1Smrg <entry>MappedWhenManaged</entry> 292994689c1Smrg <entry>Boolean</entry> 293994689c1Smrg <entry></entry> 294994689c1Smrg <entry>True</entry> 295994689c1Smrg </row> 296994689c1Smrg <row> 297994689c1Smrg <entry>pieceSize</entry> 298994689c1Smrg <entry>PieceSize</entry> 299994689c1Smrg <entry>XawTextPosition</entry> 300994689c1Smrg <entry></entry> 301994689c1Smrg <entry>BUFSIZ</entry> 302994689c1Smrg </row> 303994689c1Smrg <row> 304994689c1Smrg <entry>pointerColor</entry> 305994689c1Smrg <entry>Foreground</entry> 306994689c1Smrg <entry>Pixel</entry> 307994689c1Smrg <entry></entry> 308994689c1Smrg <entry>XtDefaultForeground</entry> 309994689c1Smrg </row> 310994689c1Smrg <row> 311994689c1Smrg <entry>pointerColorBackground</entry> 312994689c1Smrg <entry>Background</entry> 313994689c1Smrg <entry>Pixel</entry> 314994689c1Smrg <entry></entry> 315994689c1Smrg <entry>XtDefaultBackground</entry> 316994689c1Smrg </row> 317994689c1Smrg <row> 318994689c1Smrg <entry>resize</entry> 319994689c1Smrg <entry>Resize</entry> 320994689c1Smrg <entry>XawTextResizeMode</entry> 321994689c1Smrg <entry></entry> 322994689c1Smrg <entry>XawtextResizeNever</entry> 323994689c1Smrg </row> 324994689c1Smrg <row> 325994689c1Smrg <entry>rightMargin</entry> 326994689c1Smrg <entry>Margin</entry> 327994689c1Smrg <entry>Position</entry> 328994689c1Smrg <entry></entry> 329994689c1Smrg <entry>2</entry> 330994689c1Smrg </row> 331994689c1Smrg <row> 332994689c1Smrg <entry>screen</entry> 333994689c1Smrg <entry>Screen</entry> 334994689c1Smrg <entry>Screen</entry> 335994689c1Smrg <entry>R</entry> 336994689c1Smrg <entry>Parent's Screen</entry> 337994689c1Smrg </row> 338994689c1Smrg <row> 339994689c1Smrg <entry>scrollHorizontal</entry> 340994689c1Smrg <entry>Scroll</entry> 341994689c1Smrg <entry>XawTextScrollMode</entry> 342994689c1Smrg <entry></entry> 343994689c1Smrg <entry>XawtextScrollNever</entry> 344994689c1Smrg </row> 345994689c1Smrg <row> 346994689c1Smrg <entry>scrollVertical</entry> 347994689c1Smrg <entry>Scroll</entry> 348994689c1Smrg <entry>XawTextScrollMode</entry> 349994689c1Smrg <entry></entry> 350994689c1Smrg <entry>XawtextScrollNever</entry> 351994689c1Smrg </row> 352994689c1Smrg <row> 353994689c1Smrg <entry>selectTypes</entry> 354994689c1Smrg <entry>SelectTypes</entry> 355994689c1Smrg <entry>XawTextSelectType*</entry> 356994689c1Smrg <entry></entry> 357994689c1Smrg <entry>See above</entry> 358994689c1Smrg </row> 359994689c1Smrg <row> 360994689c1Smrg <entry>sensitive</entry> 361994689c1Smrg <entry>Sensitive</entry> 362994689c1Smrg <entry>Boolean</entry> 363994689c1Smrg <entry></entry> 364994689c1Smrg <entry>True</entry> 365994689c1Smrg </row> 366994689c1Smrg <row> 367994689c1Smrg <entry>string</entry> 368994689c1Smrg <entry>String</entry> 369994689c1Smrg <entry>String</entry> 370994689c1Smrg <entry></entry> 371994689c1Smrg <entry>NULL</entry> 372994689c1Smrg </row> 373994689c1Smrg <row> 374994689c1Smrg <entry>textSink</entry> 375994689c1Smrg <entry>TextSink</entry> 376994689c1Smrg <entry>Widget</entry> 377994689c1Smrg <entry></entry> 378994689c1Smrg <entry>An AsciiSink</entry> 379994689c1Smrg </row> 380994689c1Smrg <row> 381994689c1Smrg <entry>textSource</entry> 382994689c1Smrg <entry>TextSource</entry> 383994689c1Smrg <entry>Widget</entry> 384994689c1Smrg <entry></entry> 385994689c1Smrg <entry>An AsciiSrc</entry> 386994689c1Smrg </row> 387994689c1Smrg <row> 388994689c1Smrg <entry>topMargin</entry> 389994689c1Smrg <entry>Margin</entry> 390994689c1Smrg <entry>Position</entry> 391994689c1Smrg <entry></entry> 392994689c1Smrg <entry>2</entry> 393994689c1Smrg </row> 394994689c1Smrg <row> 395994689c1Smrg <entry>translations</entry> 396994689c1Smrg <entry>Translations</entry> 397994689c1Smrg <entry>TranslationTable</entry> 398994689c1Smrg <entry></entry> 399994689c1Smrg <entry>See above</entry> 400994689c1Smrg </row> 401994689c1Smrg <row> 402994689c1Smrg <entry>type</entry> 403994689c1Smrg <entry>Type</entry> 404994689c1Smrg <entry>XawAsciiType</entry> 405994689c1Smrg <entry></entry> 406994689c1Smrg <entry>XawAsciiString</entry> 407994689c1Smrg </row> 408994689c1Smrg <row> 409994689c1Smrg <entry>useStringInPlace</entry> 410994689c1Smrg <entry>UseStringInPlace</entry> 411994689c1Smrg <entry>Boolean</entry> 412994689c1Smrg <entry></entry> 413994689c1Smrg <entry>False</entry> 414994689c1Smrg </row> 415994689c1Smrg <row> 416994689c1Smrg <entry>width</entry> 417994689c1Smrg <entry>Width</entry> 418994689c1Smrg <entry>Dimension</entry> 419994689c1Smrg <entry></entry> 420994689c1Smrg <entry>100</entry> 421994689c1Smrg </row> 422994689c1Smrg <row> 423994689c1Smrg <entry>wrap</entry> 424994689c1Smrg <entry>Wrap</entry> 425994689c1Smrg <entry>WrapMode</entry> 426994689c1Smrg <entry></entry> 427994689c1Smrg <entry>XawtextWrapNever</entry> 428994689c1Smrg </row> 429994689c1Smrg <row> 430994689c1Smrg <entry>x</entry> 431994689c1Smrg <entry>Position</entry> 432994689c1Smrg <entry>Position</entry> 433994689c1Smrg <entry></entry> 434994689c1Smrg <entry>0</entry> 435994689c1Smrg </row> 436994689c1Smrg <row> 437994689c1Smrg <entry>y</entry> 438994689c1Smrg <entry>Position</entry> 439994689c1Smrg <entry>Position</entry> 440994689c1Smrg <entry></entry> 441994689c1Smrg <entry>0</entry> 442994689c1Smrg </row> 443994689c1Smrg </tbody> 444994689c1Smrg </tgroup> 445994689c1Smrg</informaltable> 446994689c1Smrg 447994689c1Smrg 448994689c1Smrg</para> 449994689c1Smrg</sect2> 450994689c1Smrg</sect1> 451