12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Text <strong>Widget</strong>spositiontypedircountincludeSpecifies the position to begin scanning the source.Specifies the type of boundary to scan for, may be one of: XawstPosition,XawstWhiteSpace, XawstEOL, XawstParagraph, XawstAll. The exactmeaning of these boundaries is left up to the individual text source.Specifies the direction to scan, may be either XawsdLeft to search backward,or XawsdRight to search forward.Specifies the number of boundaries to scan for.Specifies whether the boundary itself should be included in the scan.The Scan function returns the position in the text source of the desired boundary.It is expected to return a valid address for all calls made to it, thus if a particularrequest is made that would take the text widget beyond the end of the source itmust return the position of that end.Searching through a TextSrcTo search for a particular string use the Search function.XawTextPosition Search( w, position, dir, *text);wpositiondirtextSpecifies the TextSrc object.Specifies the position to begin the search.Specifies the direction to search, may be either XawsdLeft to searchbackward, or XawsdRight to search forward.Specifies a text block containing the text to search for.This function will search through the text buffer attempting to find a match forthe string in the text block. If a match is found in the direction specified, then thecharacter location of the first character in the string is returned. If no text wasfound then XawTextSearchError is returned.Text SelectionsWhile many selection types are handled by the Text widget, text sources may haveselection types unknown to the Text widget. When a selection conversion is requestedby the X server the Text widget will first call the ConvertSelection function, toattempt the selection conversion.Boolean ConvertSelections( w, *type, *value_return, *length_return,*format_return);wselectiontargetSpecifies the TextSrc object.Specifies the type of selection that was requested(e.g. PRIMARY).Specifies the type of the selection that has beenrequested, which indicates the desired informationabout the selection (e.g. Filename, Text, Window).91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!