Specifications
Athena Widget Set libXaw 1.0.7
To obtain the current position of the insertion point, use XawTextGetInsertionPoint:
XawTextPosition XawTextGetInsertionPoint(w)
Widget w;
w Specifies the Textwidget.
See section 5.4 for a description of XawTextPosition.The result is equivalent to retrieving the
value of the insertPosition resource.
To replace the text source in the specified widget, use XawTextSetSource:
void XawTextSetSource(w, source, position)
Widget w;
Widget source;
XawTextPosition position;
w Specifies the Textwidget.
source Specifies the text source object.
position Specifies character position that will become the upper left hand corner of the
displayed text. This is usually set to zero.
See section 5.4 for a description of XawTextPosition.Adisplay update will be performed if
redisplay is enabled.
To obtain the current text source for the specified widget, use XawTextGetSource:
Widget XawTextGetSource(w)
Widget w;
w Specifies the Textwidget.
This function returns the text source that this Textwidget is currently using.
To enable and disable the insertion point, use XawTextDisplayCaret:
void XawTextDisplayCaret(w, visible)
Widget w;
Boolean visible;
w Specifies the Textwidget.
visible Specifies whether or not the caret should be displayed.
If visible is False the insertion point will be disabled. The marker is re-enabled either by setting
visible to True,bycalling XtSetValues,orbyexecuting the display-caret action routine.
5.5. Ascii Text Widget
Application Header file <X11/Xaw/AsciiText.h>
ClassHeader file <X11/Xaw/AsciiTextP.h>
Class asciiTextWidgetClass
Class Name Te x t
Superclass Text
Sink Name textSink
Source Name textSource
Forthe ease of internationalization, the AsciiTextwidget class name has not been changed,
although it is actually able to support non-ASCII locales. The AsciiTextwidget is really a collec-
tion of smaller parts. It includes the Textwidget itself, a ‘‘Source’’(which supports memory
86