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>sBoolean XawAsciiSaveAsFile( w, name);wnameSpecifies the AsciiSrc object.The name of the file to save the current buffer into.This function returns True if the save was successful. XawAsciiSaveAsFile willwork with a buffer of either type XawAsciiString or type XawAsciiFile.Seeing if the Source has ChangedTo find out if the text buffer in an AsciiSrc object has changed since the last time itwas saved with XawAsciiSave or queried use XawAsciiSourceChanged.Boolean XawAsciiSourceChanged( w);wSpecifies the AsciiSrc object.This function will return True if the source has changed since the last time it wassaved or queried. The internal change flag is reset whenever the string is queriedvia XtGetValues or the buffer is saved via XawAsciiSave.Ascii Text <strong>Widget</strong>Application Header file ClassHeader file Class asciiText<strong>Widget</strong>ClassClass Name TextSuperclass TextSink Name textSinkSource Name textSourceFor the ease of internationalization, the AsciiText widget class name has not beenchanged, although it is actually able to support non-ASCII locales. The AsciiTextwidget is really a collection of smaller parts. It includes the Text widget itself, a``Source'' (which supports memory management), and a ``Sink'' (which handlesthe display). There are currently two supported sources, the AsciiSrc and Multi-Src, and two supported sinks, the AsciiSink and MultiSink. Some of the resourceslisted below are not actually resources of the AsciiText, but belong to the associatedsource or sink. This is is noted in the explanation of each resource where itapplies. When specifying these resources in a resource file it is necessary to use*AsciiText*resource_name instead of *AsciiText.resource_name, since they actuallybelong to the children of the AsciiText widget, and not the AsciiText widget itself.However, these resources may be set directly on the AsciiText widget at widget creationtime, or via Xt<strong>Set</strong>Values.96

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

Saved successfully!

Ooh no, something went wrong!