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>sResourcesClass Name TextSinkSuperclass ObjectThe TextSink object is the root object for all text sinks. Any new text sink objectsshould be subclasses of the TextSink Object. The TextSink Class contains all methodsthat the Text widget expects a text sink to export.Since all text sinks will have some resources in common, the TextSink defines a fewnew resources.When creating an TextSink object instance, the following resources are retrievedfrom the argument list or from the resource database:Name Class Type Notes Default Valuebackground Background Pixel XtDefault-Backgrounddestroy-CallbackCallback XtCallbackList NULLforeground Foreground Pixel XtDefault-Foreground_Subclassing the TextSinkThe only purpose of the TextSink Object is to be subclassed. It contains the minimumset of class methods that all text sinks must have. While all may be inherited, thedirect descendant of TextSink must specify some of them as TextSink does containenough information to be a valid text sink by itself. Do not try to use the TextSinkas a valid sink for the Text widget; it is not intended to be used as a sink by itself.Function Inherit with Public <strong>Interface</strong> must specifyDisplayTextInsertCursorXawTextSinkInsertCursorClearTo-BackgroundFindPositionFindDistanceXtInherit-DisplayTextXtInheritClearTo-BackgroundXtInheritFind-DistanceXawTextSinkDisplayTextXtInheritInsertCursorXawTex-tSinkClearTo-BackgroundXtInheritFindPositionXawTextSink-FindPositionXawTextSink-FindDistanceResolve XtInheritResolve XawTextSinkResolveMaxLines XtInheritMaxLines XawTextSinkMaxLinesyesyesnoyesyesyesno84

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

Saved successfully!

Ooh no, something went wrong!