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.

Simple <strong>Widget</strong>svoid(*getValueProc)( w, client_data, value);wclient_datavalueSpecifies the StripChart widget.Specifies the client data.Returns a pointer to a double. The application shouldset the address pointed to by this argument to a doublecontaining the value to be graphed on the StripChart.This function is used by the StripChart to call an application routine. The routinewill pass the value to be graphed back to the the StripChart in the value field ofthis routine.Toggle <strong>Widget</strong>ResourcesApplication Header file Class Header file Classtoggle<strong>Widget</strong>ClassClass Name ToggleSuperclass CommandThe Toggle widget is an area, often rectangular, that displays a graphic. The graphicmay be a text string containing multiple lines of characters in an 8 bit or 16 bitcharacter set (to be displayed with a font), or in a multi-byte encoding (for use witha fontset). The graphic may also be a bitmap or pixmap.This widget maintains a Boolean state (e.g. True/False or On/Off) and changes statewhenever it is selected. When the pointer is on the Toggle widget, the Toggle widgetmay become highlighted by drawing a rectangle around its perimeter. This highlightingindicates that the Toggle widget is ready for selection. When pointer button1 is pressed and released, the Toggle widget indicates that it has changed state byreversing its foreground and background colors, and its notify action is invoked,calling all functions on its callback list. If the pointer is moved off of the widgetbefore the pointer button is released, the Toggle widget reverts to its previous foregroundand background colors, and releasing the pointer button has no effect. Thisbehavior allows the user to cancel the operation.Toggle widgets may also be part of a ``radio group.'' A radio group is a list of at leasttwo Toggle widgets in which no more than one Toggle may be set at any time. A radiogroup is identified by the widget ID of any one of its members. The convenienceroutine XawToggleGetCurrent will return information about the Toggle widget inthe radio group.Toggle widget state is preserved across changes in sensitivity.When creating a Toggle widget instance, the following resources are retrieved fromthe argument list or from the resource database:Name Class Type Notes Default Valueaccelerators Accelerators AcceleratorTableNULL52

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

Saved successfully!

Ooh no, something went wrong!