The displayable range of tick mark labels is defined by the starting and ending values of the Axis widget. The displayable size of the Axis widget is defined by its virtual length in pixels. The range of numbers displayed at a given time is defined by the virtual position in pixels and the width (horizontal Axis) or height (vertical Axis) in pixels of the widget window.
| Name | Type | Default | Access |
|---|---|---|---|
| XmNannotationAngle | int | 0 | CSG |
| XmNannotationOffset | int | 2 | CSG |
| XmNannotationFont | char * | "*courier*bold-r*100*" | CSG |
| XmNannotationFormat | String | "%3.1f" | CSG |
| XmNauxAnnotation | Boolean | True | CSG |
| XmNauxAnnotationCount | int | 0 | CSG |
| XmNauxAnnotationList | char ** | NULL | CSG |
| XmNauxLineStyle | int | XintGRID_LINE_SOLID | CSG |
| XmNauxPositionList | float | NULL | CSG |
| XmNauxThickness | int | 2 | CSG |
| XmNauxTickLength | int | 8 | CSG |
| XmNaxisLineOffset | int | 0 | CSG |
| XmNaxisLineThickness | int | 2 | CSG |
| XmNaxisType | int | XintAXIS_LINEAR | CSG |
| XmNcolor | Pixel | black | CSG |
| XmNcoordinateChangeCallback | XtCallbackList | NULL | C |
| XmNend | float * | 100.0 | CSG |
| XmNendAnnotation | Boolean | True | CSG |
| XmNendTickLength | int | 8 | CSG |
| XmNlabel | char * | "Axis" | CSG |
| XmNlabelColor | Pixel | black | CSG |
| XmNlabelFont | char * | "*courier*bold-r*120*" | CSG |
| XmNlabelOffset | int | 10 | CSG |
| XmNlabelOrientation | int | XintPARALLEL_TO_AXIS | CSG |
| XmNmajorAnnotation | Boolean | True | CSG |
| XmNmajorIncrement | float * | 10.0 | CSG |
| XmNmajorLineStyle | int | XintGRID_LINE_SOLID | CSG |
| XmNmajorThickness | int | 2 | CSG |
| XmNmajorTickLength | int | 8 | CSG |
| XmNminorAnnotation | Boolean | False | CSG |
| XmNminorIncrement | float * | 5.0 | CSG |
| XmNminorLineStyle | int | XintGRID_LINE_SOLID | CSG |
| XmNminorThickness | int | 2 | CSG |
| XmNminorTickLength | int | 4 | CSG |
| XmNopposite | Boolean | False | CSG |
| XmNorientation | unsigned char | XintHORIZONTAL | CG |
| XmNroundAnnotation | Boolean | NULL | CSG |
| XmNscrollBar | Widget | NULL | CSG |
| XmNselectionCallback | XtCallbackList | NULL | C |
| XmNstart | float * | 0.0 | CSG |
| XmNtextThreeD | Boolean | False | CSG |
| XmNthumbMovedCallback | XtCallbackList | NULL | C |
| XmNtickChangeCallback | XtCallbackList | NULL | C |
| XmNvirtualLength | int | 0 | CSG |
| XmNvirtualPosition | int | 0 | CSG |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_DOUBLE_DASHED | Solid ticks and double dashed grid lines. |
| XintGRID_LINE_DASHED | Solid ticks and dashed grid lines. |
| XintGRID_LINE_SHADOW_IN | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SHADOW_OUT | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SOLID | Solid ticks and grid lines. |
| Resource Value | Description |
|---|---|
| XintPARALLEL_TO_AXIS (default) | Label is drawn parallel to axis. |
| XintSTACKED | Letters of label are stacked vertically. |
| XintPERPENDICULAR_TO_AXIS | Label is drawn perpendicular to axis. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_DOUBLE_DASHED | Solid ticks and double dashed grid lines. |
| XintGRID_LINE_DASHED | Solid ticks and dashed grid lines |
| XintGRID_LINE_SHADOW_IN | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SHADOW_OUT | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SOLID | Solid line for ticks and grid lines. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_DOUBLE_DASHED | Solid ticks and double dashed grid lines. |
| XintGRID_LINE_DASHED | Solid ticks and dashed grid lines. |
| XintGRID_LINE_SHADOW_IN | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SHADOW_OUT | 3D appearance for ticks and grid lines. |
| XintGRID_LINE_SOLID | Solid line for ticks and grid lines. |
| Name | Description |
|---|---|
| Top() | Moves the virtual position of the Axis widget back at the top (or left if horizontal axis). |
| Bottom() | Moves the virtual position of the Axis widget at the bottom (or right if horizontal axis). |
| Page(up) | Moves the virtual position of the Axis widget up one thumb length. |
| Page(down) | Moves the virtual position of the Axis widget down one thumb length. |
| Increment(up) | Moves the virtual position of the Axis widget up by a half thumb length. |
| Increment(down) | Moves the virtual position of the Axis widget down by a half thumb length. |
| SelectionCallback() | Whenever a selection is made inside the widget window, this action calls the list of procedures specified by resource XmNselectionCallback. |
| TraverseCurrent() | Moves the focus to the Axis widget. |
| Event Sequence | Action Name |
|---|---|
| <Key>osfBeginLine | Top() |
| <Key>osfEndLine | Bottom() |
| <key>osfPageUp | Page(up) |
| <key>osfPageDown | Page(down) |
| ~Shift Ctrl <Key> osfUp | Page(up) |
| ~Shift Ctrl <Key> osfLeft | Page(up) |
| ~Shift Ctrl <Key> osfDown | Page(down) |
| ~Shift Ctrl <Key> osfRight | Page(down) |
| ~Shift Ctrl <Key>osfPageUp | Page(up) |
| <Btn1Down> | TraverseCurrent() SelectionCallback() |
| ~Shift ~Ctrl <Key>osfUp | Increment(up) |
| ~Shift ~Ctrl <Key>osfDown | Increment(down) |
| ~Shift ~Ctrl <Key>osfLeft | Increment(up) |
| ~Shift ~Ctrl <Key>osfRight | Increment(down) |
| Name | Structure | Reason |
|---|---|---|
| XmNcoordinateChangeCallback | XintAxisCallbackStruct | XintCR_VALUE_CHANGED |
| XmNselectionCallback | XintAxisCallbackStruct | XintCR_SELECTION |
| XmNthumbMovedCallback | XintAxisCallbackStruct | XintCR_DRAG |
| XmNtickChangeCallback | XintAxisCallbackStruct | XintCR_TICK_CHANGED |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the XEvent that triggered the callback. |
| int | old_position | Virtual position before the axis moved. |
| int | new_position | New virtual position of the axis. |
| Boolean | horizontal | True if axis is horizontal. |
| Function Name | Description |
|---|---|
| XintCreateAxis | Creates an Axis widget. |
| XintAxisGetVisibleLimits | Returns the visible range of an Axis widget. |
| XintAxisPixelToUser | Transforms a pixel location into a user coordinate. |
| XintAxisUserToPixel | Transforms a user coordinate into a pixel location. |
Widget XintCreateAxis (...)
| Widget | parent | Parent of the new Axis widget. |
| char * | name | Name of the new Axis widget. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
void XintAxisGetVisibleLimits (...)
| Widget | widget | ID of the Axis widget. |
| float * | start | Returns the first visible value. |
| float * | end | Returns the last visible value. |
Boolean XintAxisPixelToUser (...)
| Widget | widget | ID of the Axis widget. |
| int | pixel | Pixel location. |
| float * | user_coordinate | Returns the user coordinate corresponding to pixel. |
The function returns False if argument pixel is out of range.
Boolean XintAxisUserToPixel (...)
| Widget | widget | ID of the Axis widget. |
| float | user_coordinate | Specifies a user coordinate. |
| int * | pixel | Returns the pixel value corresponding to user_coordinate. |
This function returns False if argument user_coordinate is outside the widget start and end values.