aboutsummaryrefslogtreecommitdiff
path: root/libXaw/spec/SmeLine
blob: 5b87cd9a5d902f52a29a7ad80e21f625c705a90d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.\" $Xorg: SmeLine,v 1.3 2000/08/17 19:42:28 cpqbld Exp $
.NH 2
SmeLine Object
.LP
.XS
	SmeLine Object
.XE
.IN "SmeLine object" "" "@DEF@"
.sp
.Ds 0
.TA 2.0i
.ta 2.0i
Application Header file	<X11/Xaw/SmeLine.h>
.IN "SmeLine.h" ""
Class Header file	<X11/Xaw/SmeLineP.h>
.IN "SmeLineP.h" ""
Class		smeLineObjectClass
.IN "smeLineObjectClass" ""
Class Name	SmeLine
.IN "SmeLine object" "class name"
Superclass	Sme
.De
.sp
.LP
The SmeLine object is used to add a horizontal line or menu separator to
a menu.  Since each SmeLine is an independent object, the application
is able to change the color, height, and other attributes of the SmeLine
objects on an entry by entry basis.  This object is not selectable, and
will not highlight when the pointer cursor is over it.
.NH 3
Resources
.IN "SmeLine object" "resources"
.LP
The resources associated with the SmeLine object are defined in this section,
and affect only the single menu entry specified by this object.
.TS H
lw(1i) lw(1i) lw(1i) lw(.5i) lw(2i).
_
.sp 3p
.TB
Name	Class	Type	Notes	Default Value
.sp 3p
_
.TH
.R
.sp 3p
destroyCallback	Callback	XtCallbackList		NULL
foreground	Foreground	Pixel		XtDefaultForeground
height	Height	Dimension		\fBlineWidth\fP
international	International	Boolean	C	False
lineWidth	LineWidth	Dimension		1
stipple	Stipple	Pixmap		XtUnspecifiedPixmap
width	Width	Dimension		1
.sp 3p
_
.TE
.Dc
.IP \fBforeground\fP 1.5i
A pixel value which indexes the SimpleMenu's colormap to derive the
foreground color used to draw the separator line.
.Hw
Keep in mind that the SimpleMenu widget will force all menu items to
be the width of the widest entry.  Thus, setting the width is generally not
very important.
.Ix
.IP \fBlineWidth\fP 1.5i
The width of the horizontal line that is to be displayed.
.IP \fBstipple\fP 1.5i
If a bitmap is specified for this resource, the line will be stippled
through it.  This allows the menu separator to be rendered as something
more exciting than just a line.  For instance, if you define a stipple
that is a chain link, then your menu separators will look like chains.