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.

Simple <strong>Widget</strong>sName Class Type Notes Default ValuepointerColor Foreground Pixel XtDefault-ForegroundpointerColor-BackgroundBackground Pixel XtDefault-Backgroundscreen Screen Pointer R Parent'sScreensensitive Sensitive Boolean Truetranslations Translations TranslationTableNULLupdate Interval int 10width Width Dimension 120x Position Position 0y Position Position 0foregroundgetValuehighlightjumpScrollminScaleA pixel value which indexes the widget's colormap toderive the color that will be used to draw the graph.A list of callback functions to call every update seconds.This list should contain one function, which returns thevalue to be graphed by the StripChart widget. The followingsection describes the procedural interface. Behaviorwhen this list has more than one function is undefined.A pixel value which indexes the widget's colormap toderive the color that will be used to draw the scale lineson the graph.When the graph reaches the right edge of the windowit must be scrolled to the left. This resource specifiesthe number of pixels it will jump. Smooth scrolling canbe achieved by setting this resource to 1.The minimum scale for the graph. The number of divisionson the graph will always be greater than or equalto this value.updateGetting the StripChart ValueThe number of seconds between graph updates. Eachupdate is represented on the graph as a 1 pixel wideline. Every update seconds the getValue procedure willbe used to get a new graph point, and this point will beadded to the right end of the StripChart.The StripChart widget will call the application routine passed to it as the getValuecallback function every update seconds to obtain another point for the StripChartgraph.The calling interface for the getValue callback is:51

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

Saved successfully!

Ooh no, something went wrong!