http://invisible-island.net/athena_widgets/XawPlus
Application Header file Class Header file Class Class Name Superclass |
<X11/XawPlus/SmeLine.h> <X11/XawPlus/SmeLineP.h> smeLineObjectClass SmeLine Sme |
The SmeLine object is used to add a horizontal line or menu separator to a menu. Since each menu entry is an independent object, the application is able to change the color, height, and other attributes of the menu entries, on an entry by entry basis. This entry is not selectable, and will not highlight when the pointer cursor is over it.
The menu separator of XawPlus is now 3D styled. That is the reason why the resources foreground and stipple are not longer used. Instead of this, the SmeLine object uses the resources highlightColor and shadowColor inherited from Sme, to draw the horizontal lines.
The resources associated with the SmeLine object are defined in this section, and affect only the single menu entry specified by this object.
Name | Class | Type | Default Value |
OBJECT: | |||
destroyCallback | Callback | Pointer | NULL |
RECTANGLE: | |||
borderWidth height sensitive width x y |
BorderWidth Height Sensitive Width Position Position |
Dimension Dimension Boolean Dimension Position Position |
0 0 True 0 0 0 |
SME: | |||
callback highlightColor shadowColor international |
Callback Background Background International |
Pointer Pixel Pixel Boolean |
NULL grey90 grey40 False |
SMELINE: | |||
lineWidth | Width | Dimension | 1 |
lineWidth | This is the width of the horizontal line that is to be displayed. Since this object is displayed with a highlighted and a shadowed line and this object draw each line with the width lineWidth, the total width becomes 2 * lineWidth. |