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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Text <strong>Widget</strong>sCalling this function is equivalent to setting the value of the selectionTypes resource.To move the insertion point to the specified source position, use XawText<strong>Set</strong>InsertionPoint:void XawText<strong>Set</strong>InsertionPoint( w, position);wpositionSpecifies the Text widget.Specifies the new position for the insertion point.See section 5.4 for a description of XawTextPosition. The text will be scrolled verticallyif necessary to make the line containing the insertion point visible. Callingthis function is equivalent to setting the insertPosition resource.To obtain the current position of the insertion point, use XawTextGetInsertion-Point:XawTextPosition XawTextGetInsertionPoint( w);wSpecifies the Text widget.See section 5.4 for a description of XawTextPosition. The result is equivalent toretrieving the value of the insertPosition resource.To replace the text source in the specified widget, use XawText<strong>Set</strong>Source:void XawText<strong>Set</strong>Source( w, source, position);wsourcepositionSpecifies the Text widget.Specifies the text source object.Specifies character position that will become the upperleft hand corner of the displayed text. This is usually setto zero.See section 5.4 for a description of XawTextPosition. A display update will be performedif redisplay is enabled.To obtain the current text source for the specified widget, use XawTextGetSource:<strong>Widget</strong> XawTextGetSource( w);wSpecifies the Text widget.This function returns the text source that this Text widget is currently using.To enable and disable the insertion point, use XawTextDisplayCaret:void XawTextDisplayCaret( w, visible);wvisibleSpecifies the Text widget.Specifies whether or not the caret should be displayed.If visible is False the insertion point will be disabled. The marker is re-enabledeither by setting visible to True, by calling Xt<strong>Set</strong>Values, or by executing thedisplay-caret action routine.80

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

Saved successfully!

Ooh no, something went wrong!