Marker Object Class

Overview

The Marker object class provides the visual representation of a line with a name and depth value displayed. Marker objects are primarily used inside Track widgets. The marker line extends across the entire value direction of the Track widget. Visual attributes such as the color and size of the line or the name of the marker are specified using resources from Marker's superclass, the Graphic object class.

Floating Point Resources

The Marker object defines a floating point resource XmNdepth. The Xt library does not support floating point resources, and thus this resource must be passed as an address rather than a value. Floating point resources can also be retrieved using the XtGetValues function. You must specify the address of a pointer to a floating point value in the XtSetArg or XtVaGetValues call. NOTE: This is different from what is done for INT widgets where a special converter is used to make this operation easier.

Inherited Behavior and Resources

The Marker object class inherits behavior and resources from the Xt Object and INT Graphic classes.
The following resources are defined by the Marker object class.
NameTypeDefaultAccess
XmNdepthfloat *20.0CSG
XmNdepthFormatchar *"%3.1"CSG


XmNdepth

Specifies a pointer to the depth of the Marker object.

XmNdepthFormat

Specifies the format used to draw the depth label. Use any C format descriptor (e.g. "%5.2f") suitable for displaying floating point data.