| Defined Constant | Description |
|---|---|
| XintADJUST_ALL | All margins will be automatically computed by the widget. |
| XintADJUST_NONE (default) | None of the margins will be automatically computed by the widget. |
| XintADJUST_LEFT | The left margin will be automatically computed by the widget. |
| XintADJUST_RIGHT | The right margin will be automatically computed by the widget. |
| XintADJUST_TOP | The top margin will be automatically computed by the widget. |
| XintADJUST_BOTTOM | The bottom margin will be automatically computed by the widget. |
You also can specify a combination of the constants by using a logical OR operation or a arithmetic + operation. For instance, to have the left and right margin sized automatically and the top and bottom margin sized as specfied with the XmNtop and XmNbottom resources, you would set XmNautoMarginAdjust to XintADJUST_LEFT | XintADJUST_RIGHT or XintADJUST_LEFT + XintADJUST_RIGHT.
| Defined Constant | Description |
|---|---|
| XintFRAME (default) | Draws a complete frame inside the widget window. |
| XintFRAME_NONE | No frame will be drawn. |
| XintFRAME_LEFT | Draws the left portion of the frame. |
| XintFRAME_RIGHT | Draws the right portion of the frame. |
| XintFRAME_TOP | Draws the top portion of the frame. |
| XintFRAME_BOTTOM | Draws the bottom portion of the frame. |
The last four constants can be added (or OR'd) together to form various combinations (e.g. XintFRAME_TOP + XintFRAME_BOTTOM to have the widget draw the top and bottom portions of the frame).
| Defined Constant | Description |
|---|---|
| XintFRAME_SOLID | Frame is drawn with a solid line. |
| XintFRAME_DASHED | Frame is drawn with a dashed line. |
| XintFRAME_DOUBLE_DASHED | Frame is drawn with a double dashed line. |
| XintFRAME_SHADOW_IN | Frame is drawn so that it appears inset. |
| XintFRAME_SHADOW_OUT | Frame is drawn so that it appears outset. |
| Defined Constant | Description |
|---|---|
| XintPLACEMENT_NONE | Horizontal annotation is not displayed. |
| XintPLACEMENT_TOP | Horizontal annotation is displayed above the Grid frame. |
| XintPLACEMENT_BOTTOM | Horizontal annotation is displayed below the Grid frame. |
| XintPLACEMENT_TOP_BOTTOM (default) | Horizontal annotation is displayed above and below the Grid frame. |
| XintPLACEMENT_INSIDE | Horizontal annotation is drawn inside the Grid frame at the location specified by resource XmNhorizontalAnnotationPosition. |
The constants listed above can be combined with an arithmetic addition or logical OR operation. For example, to draw annotation both at the top and inside the Grid frame area, specify the following: XintPLACEMENT_TOP + XintPLACEMENT_INSIDE.
| Defined Constant | Description |
|---|---|
| XintALIGNMENT_BEGINNING | Lines of the label are left aligned. |
| XintALIGNMENT_CENTER | Lines of the label are centered. |
| XintALIGNMENT_END | Lines of the label are right aligned. |
| Defined Constant | Description |
|---|---|
| XintPLACEMENT_TOP | The horizontal label is drawn above the widget's display area |
| XintPLACEMENT_BOTTOM | The horizontal label is drawn below the widget's display area. |
| XintPLACEMENT_TOP_BOTTOM | The horizontal label is drawn both above and below the widget's display area. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_NONE | No grid lines are drawn. |
| XintGRID_LINE_SOLID (default) | Grid lines are solid lines. |
| XintGRID_LINE_DASHED | Grid lines are drawn using an on-off dash pattern. |
| XintGRID_LINE_DOUBLE_DASHED | Grid lines are drawn using a double dashed pattern. |
| XintGRID_LINE_SHADOW_IN | Grid lines are drawn using reversed shadow colors. |
| XintGRID_LINE_SHADOW_OUT | Grid lines are drawn using the normal bottom and top shadow colors. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_NONE | No grid lines are drawn. |
| XintGRID_LINE_SOLID (default) | Grid lines are drawn using a solid line. |
| XintGRID_LINE_DASHED | Grid lines are drawn using a on-off dash pattern. |
| XintGRID_LINE_DOUBLE_DASHED | Grid lines are drawn using a double dashed pattern. |
| XintGRID_LINE_SHADOW_IN | Grid lines are drawn using reversed shadow colors. |
| XintGRID_LINE_SHADOW_OUT | Grid lines are drawn using the bottom and top shadow colors. |
| Defined Constant | Description |
|---|---|
| XintALIGNMENT_BEGINNING | Lines of the title are left adjusted. |
| XintALIGNMENT_CENTER | Lines of the title are centered. |
| XintALIGNMENT_END | Lines of the title are right adjusted. |
| Defined Constant | Description |
|---|---|
| XintPLACEMENT_NONE | The title is not drawn. |
| XintPLACEMENT_TOP (default) | The title is drawn above the widget's window. |
| XintPLACEMENT_BOTTOM | The title is drawn at the bottom of the widget's window. |
| Defined Constant | Description |
|---|---|
| XintSHADOW_NONE | No shadow is drawn. |
| XintSHADOW_IN | Shadow drawn so that title appears inset. |
| XintSHADOW_OUT | Shadow drawn so that tile appears outset. |
| XintSHADOW_ETCHED_IN | Shadow drawn using a double line inset. |
| XintSHADOW_ETCHED_OUT | Shadow drawn using a double line outset. |
| Defined Constant | Description |
|---|---|
| XintPLACEMENT_NONE | Vertical annotation is not displayed. |
| XintPLACEMENT_RIGHT | Vertical annotation is displayed to the right of the Grid frame. |
| XintPLACEMENT_LEFT | Vertical annotation is displayed to the left of the Grid frame. |
| XintPLACEMENT_LEFT_RIGHT (default) | Vertical annotation is displayed left and right of the Grid frame. |
| XintPLACEMENT_INSIDE | Vertical annotation is drawn inside the Grid frame at the location specified by resource XmNverticalAnnotationPosition. |
The constants listed above can be combined with an arithmetic addition or logical OR operation. For example, to draw annotation both on the right and also inside the Grid frame area, specify the following: XintPLACEMENT_RIGHT + XintPLACEMENT_INSIDE.
| Defined Constant | Description |
|---|---|
| XintALIGNMENT_BEGINNING | Lines of the label are aligned with the top of the widget's display area. |
| XintALIGNMENT_CENTER | Lines of the label are centered. |
| XintALIGNMENT_END | Lines of the label are aligned with the bottom of the widget's display area. |
| Defined Constant | Description |
|---|---|
| XintPLACEMENT_LEFT | The vertical label is drawn left of the widget's display area. |
| XintPLACEMENT_RIGHT | The vertical label is drawn right of the widget's display area. |
| XintPLACEMENT_LEFT_RIGHT | The vertical label is drawn both left and right of the widget's display area. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_NONE | No grid lines are drawn. |
| XintGRID_LINE_SOLID (default) | Grid lines are drawn using a solid line. |
| XintGRID_LINE_DASHED | Grid lines are drawn using a on-off dash pattern. |
| XintGRID_LINE_DOUBLE_DASHED | Grid lines are drawn using a double dashed pattern. |
| XintGRID_LINE_SHADOW_IN | Grid lines are drawn using reversed shadow colors. |
| XintGRID_LINE_SHADOW_OUT | Grid lines are drawn using the bottom and top shadow colors. |
| Resource Value | Description |
|---|---|
| XintGRID_LINE_NONE | No grid lines are drawn. |
| XintGRID_LINE_SOLID (default) | Grid lines are drawn using a solid line. |
| XintGRID_LINE_DASHED | Grid lines are drawn using a on-off dash pattern. |
| XintGRID_LINE_DOUBLE_DASHED | Grid lines are drawn using a double dashed pattern. |
| XintGRID_LINE_SHADOW_IN | Grid lines are drawn using reversed shadow colors. |
| XintGRID_LINE_SHADOW_OUT | Grid lines are drawn using the bottom and top shadow colors. |
| Name | Type | Default | Access |
|---|---|---|---|
| XmNaxisOffset | int | 5 | CSG |
| XmNpercentEnd | int | 100 | CSG |
| XmNpercentStart | int | 0 | CSG |
| XmNplacement | int | dynamic | CSG |
| Resource Value | Description |
|---|---|
| XintPLACEMENT_TOP | The Axis widget is created above the Grid top annotation area. The Axis widget must be horizontal. |
| XintPLACEMENT_BOTTOM | The Axis widget is created under the Grid bottom annotation area. The Axis widget must be horizontal. |
| XintPLACEMENT_LEFT | The Axis widget is created left of the Grid left annotation area. The Axis widget must be vertical. |
| XintPLACEMENT_RIGHT | The Axis widget is created right of the Grid right annotation area. The Axis widget must be vertical. |
| Name | Description |
|---|---|
| Highlight() | Highlights the color of the title string to that color specified as the value of resource XmNhighlightColor. |
| UnHighlight() | Returns the color of the title string to its original color. |
| Event Sequence | Actions Invoked |
|---|---|
| <EnterWindow> | ManagerEnter() InitDrawCursor() |
| <LeaveWindow> | ManagerFocus() EndDrawCursor() |
| <FocusIn> | ManagerFocusIn() Highlight() |
| <FocusOut> | ManagerFocusOut() UnHighlight() |
| Ctrl <Key>k | ChangeCursorMask() |
| !Shift <Key> Tab | PreviousTabGroup() |
| None <Key> Tab | NextTabGroup() |
| !Shift <Btn1Down> | TraverseCurrent() Locator() SelectionCallback() InitAreaSelection(callback) ObjectEditEnd() |
| !Ctrl <Btn1Down> | TraverseCurrent() Locator() SelectionCallback() InitAreaSelection(extend) ObjectSelect(extend) |
| None <Btn1Down> | TraverseCurrent() ObjectSelect(single) ObjectEditStart() Locator() SelectionCallback() InitAreaSelection(single) |
| None <Btn2Down> | ObjectEditEnd(m) SelectionCallback() |
| None <BtnDown> | SelectionCallback() |
| <Btn1Up> | EndAreaSelection() ObjectEditEnd() |
| <PtrMoved> | DrawCursor() ExtendAreaSelection() ObjectEdit() Locator() |
| Name | Structure | Reason |
|---|---|---|
| XmNareaSelectionCallback | XintGridAreaSelectionCallbackStruct | XintCR_AREA_SELECTION |
| XmNexposeCallback | XintCallbackStruct | XintCR_EXPOSE |
| XmNlocatorCallback | XintGridLocatorCallbackStruct | XintCR_LOCATOR |
| XmNresizeCallback | XintCallbackStruct | XintCR_RESIZE |
| XmNselectionCallback | XintGridLocatorCallbackStruct | XintCR_SELECTION |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the XEvent that triggered the callback. |
| int | x_start | X coordinate of the upper left corner of the selected rectangle in pixel units. |
| int | y_start | Y coordinate of the upper left corner of the selected rectangle in pixel units. |
| int | x_end | X coordinate of the lower right corner of the selected rectangle in pixel units. |
| int | y_end | Y coordinate of the lower right corner of the selected rectangle in pixel units. |
| float | user_x_start | X coordinate of the upper left corner of the selected rectangle in user units. |
| float | user_y_start | Y coordinate of the upper left corner of the selected rectangle in user units. |
| float | user_x_end | X coordinate of the lower right corner of the selected rectangle in user units. |
| float | user_y_end | Y coordinate of the lower right corner of the selected rectangle in user units. |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Pointer to the XEvent that triggered the callback. |
| Window | window | Window ID of the Grid widget. |
| Data Type | Member | Description |
|---|---|---|
| int | reason | Indicates why the callback was invoked. |
| XEvent * | event | Points to the XEvent that triggered the callback. |
| int | pixel_x | The X location of the cursor in the window coordinate system. |
| int | pixel_y | The Y location of the cursor in the window coordinate system. |
| float | user_x | The X location of the cursor in the user coordinate system. |
| float | user_y | The Y location of the cursor in the user coordinate system. |
| Boolean | inside_frame | True if the cursor is inside the grid's frame and False otherwise. |
| Function Name | Description |
|---|---|
| XintCreateGrid | Creates an unmanaged Grid widget. |
| XintGridZoom | Performs a zoom operation for a widget whose class is derived from the XintGrid widget class. |
Widget XintCreateGrid (...)
| Widget | parent | Parent of the new Grid widget. |
| char * | name | Name of the new Grid widget. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
Widget XintGridZoom (...)
| Widget | widget | Widget ID of the widget containing the area to be scaled. |
| Widget | parent | Specify the parent's widget ID so that a new widget will be created as a child of the widget's parent, to display the zoomed area, or specify NULL so that the original widget will be used to display the zoomed area. |
| XintGridAreaSelectionCallbackStruct * | selection | Specify the address of an XintGridAreaSelectionCallback structure that indicates the area to be zoomed, or specify NULL to indicate that the currently displayed area in the widget is the area to be zoomed. |
| float | zx | The horizontal scale factor to be used to zoom the selected area. |
| float | zy | The vertical scale factor to be used to zoom the selected area. |
This function returns the widget ID of the widget containing the zoomed area (i.e., the original widget or the new widget) if it is successful. Otherwise, it returns NULL.