Specifications
Athena Widget Set libXaw 1.0.7
void DisplayText(w, x, y, pos1, pos2, highlight)
Widget w;
Position x, y;
XawTextPosition pos1, pos2;
Boolean highlight;
w Specifies the TextSink object.
x Specifies the x location to start drawing the text.
y Specifies the y location to start drawing text.
pos1 Specifies the location within the text source of the first character to be printed.
pos2 Specifies the location within the text source of the last character to be printed.
highlight Specifies whether or not to paint the text region highlighted.
The Textwidget will only pass one line at a time to the text sink, so this function does not need to
knowhow toline feed the text. It is acceptable for this function to just ignore Carriage Returns.
x and y denote the upper left hand corner of the first character to be displayed.
5.11.2.2. Displaying the Insert Point
The function that controls the display of the text cursor is InsertCursor.This function will be
called wheneverthe text widget desires to change the state of, or move the insert point.
void InsertCursor(w, x, y, state)
Widget w;
Position x, y;
XawTextInsertState state;
w Specifies the TextSink object.
x Specifies the x location of the cursor in Pixels.
y Specifies the y location of the cursor in Pixels.
state Specifies the state of the cursor,may be one of XawisOn or XawisOff.
X and y denote the upper left hand corner of the insert point.
5.11.2.3. Clearing Portions of the Text window
To clear a portion of the Textwindowtoits background color,the Textwidget will call ClearTo-
Background.The TextSink object already defines this function as calling XClearArea on the
region passed. This behavior will be used if you specify XtInheritClearToBackground for this
method.
void ClearToBackground(w, x, y, width, height)
Widget w;
Position x, y;
Dimension width, height;
w Specifies the TextSink object.
x Specifies the x location, in pixels, of the Region to clear.
y Specifies the y location, in pixels, of the Region to clear.
width Specifies the width, in pixels, of the Region to clear.
height Specifies the height, in pixels, of the Region to clear.
X and y denote the upper left hand corner of region to clear.
104