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>sResourcesApplication Header file Class Header file ClasstextSrcObjectClassClass NameTextSrcSuperclassObjectThe TextSrc object is the root object for all text sources. Any new text source objectsshould be subclasses of the TextSrc Object. The TextSrc Class contains all methodsthe Text widget expects a text source to export.Since all text sources will have some resources in common the TextSrc defines afew new resources.When creating an TextSrc object instance, the following resources are retrievedfrom the argument list or from the resource database:Name Class Type Notes Default Valuedestroy-CallbackCallback XtCallbackList NULLeditType EditType EditMode NULLSubclassing the TextSrcThe only purpose of the TextSrc Object is to be subclassed. It contains the minimumset of class methods that all text sources must have. All class methods of the TextSrcmust be defined, as the Text widget uses them all. While all may be inherited, thedirect descendant of TextSrc must specify some of them as TextSrc does not containenough information to be a valid text source by itself. Do not try to use the TextSrcas a valid source for the Text widget; it is not intended to be used as a source byitself and bad things will probably happen.Reading Text.Function Inherit with Public <strong>Interface</strong> must specifyRead XtInheritRead XawTextSourceReadReplace XtInheritReplace XawTextSourceReplaceScan XtInheritScan XawTextSourceScan<strong>Set</strong>SelectionConvertSelectionSearch XtInheritSearch XawTextSourceSearchXtInherit<strong>Set</strong>SelectionXawTextSource<strong>Set</strong>SelectionXtInheritConvertSelectionXawTextSource-ConvertSelectionTo read the text in a text source use the Read function:yesnoyesnonono89

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

Saved successfully!

Ooh no, something went wrong!