Specifications

Athena Widget Set libXaw 1.0.7
TextSink This object is responsible for displaying and clearing the drawing area. It also
reports the configuration of the windowthat contains the drawing area. The
Te x tSink does not have its own window; instead it does its drawing on the Text
widget’swindow.
TextSrc This object is responsible for reading, editing and searching through the text
buffer.
AsciiSink This object is a subclass of the TextSink and knows howtodisplay ASCII text.
Support has been added to display any8-bit character set, giventhe font.
MultiSink This object is a subclass of the TextSink and knows howtodisplay font sets.
AsciiSrc This object is a subclass of the TextSrc and knows howtoread strings and
files.
MultiSrc This object is a subclass of the TextSrc and knows howtoread strings and
multibyte files, converting them to wide characters based on locale.
AsciiText This widget is a subclass of the Textwidget. When created, the AsciiText
automatically creates and attaches either an AsciiSrc and AsciiSink, or a Multi-
Src and MultiSink, to itself. The AsciiTextprovides the simplest interface to
the Athena Textwidgets.
5.9. Text Widget
Application Header file <X11/Xaw/Text.h>
Class Header file <X11/Xaw/TextP.h>
Class textWidgetClass
Class Name Te x t
Superclass Simple
The Textwidget is the glue that binds all the other pieces together,itmaintains the internal state
of the displayed text, and acts as a mediator between the source and sink.
This section lists the resources that are actually part of the Textwidget, and explains the function-
ality provided by each.
5.9.1. Resources
When creating a Textwidget instance, the following resources are retrievedfrom the argument
list or from the resource database:
Name Class Type Notes Default Value
accelerators Accelerators AcceleratorTable NULL
ancestorSensitive AncestorSensitive Boolean D True
autoFill AutoFill Boolean False
background Background Pixel XtDefaultBackground
backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderColor BorderColor Pixel XtDefaultForeground
borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderWidth BorderWidth Dimension 1
bottomMargin Margin Position 2
colormap Colormap Colormap Parent’sColormap
cursor Cursor Cursor XC_xterm
cursorName Cursor String NULL
depth Depth int C Parent’sDepth
destroyCallback Callback XtCallbackList NULL
96