Specifications

Athena Widget Set libXaw 1.0.7
position Specifies the position to begin the search.
dir Specifies the direction to search, may be either XawsdLeft to search backward,
or XawsdRight to search forward.
text Specifies a text block containing the text to search for.
This function will search through the text buffer attempting to find a match for the string in the
text block. If a match is found in the direction specified, then the character location of the first
character in the string is returned. If no text was found then XawTextSearchError is returned.
5.10.2.5. Text Selections
While manyselection types are handled by the Textwidget, text sources may have selection types
unknown to the Textwidget. When aselection conversion is requested by the X server the Text
widget will first call the ConvertSelection function, to attempt the selection conversion.
Boolean ConvertSelections(w, selection, target, type, value_return, length_return, format_return)
Widget w;
Atom *selection, *target, *type;
caddr_t *value_return;
unsigned long *length_return;
int *format_return;
w Specifies the TextSrc object.
selection Specifies the type of selection that was requested (e.g. PRIMARY).
target Specifies the type of the selection that has been requested, which indicates the
desired information about the selection (e.g. Filename, Text, Window).
type Specifies a pointer to the atom into which the property type of the converted
value of the selection is to be stored. Forinstance, either file name or text might
have property type XA_STRING.
value_return Returns a pointer into which a pointer to the converted value of the selection is to
be stored. The selection owner is responsible for allocating this storage. The
memory is considered owned by the toolkit, and is freed by XtFree when the
Intrinsics selection mechanism is done with it.
length_return Returns a pointer into which the number of elements in value is to be stored. The
size of each element is determined by format.
format_return Returns a pointer into which the size in bits of the data elements of the selection
value is to be stored.
If this function returns True then the Textwidget will assume that the source has taken care of
converting the selection, Otherwise the Textwidget will attempt to convert the selection itself.
If the source needs to knowwhen the text selection is modified it should define a SetSelection
procedure:
void SetSelection(w, start, end, selection)
Widget w;
XawTextPosition start, end;
Atom selection;
w Specifies the TextSrc object.
start Specifies the character position of the beginning of the newtextselection.
end Specifies the character position of the end of the newtextselection.
selection Specifies the type of selection that was requested (e.g. PRIMARY).
102