1 | /* |
---|
2 | * $XConsortium: SmeBSBP.h,v 1.6 89/12/11 15:20:15 kit Exp $ |
---|
3 | * |
---|
4 | * Copyright 1989 Massachusetts Institute of Technology |
---|
5 | * |
---|
6 | * Permission to use, copy, modify, distribute, and sell this software and its |
---|
7 | * documentation for any purpose is hereby granted without fee, provided that |
---|
8 | * the above copyright notice appear in all copies and that both that |
---|
9 | * copyright notice and this permission notice appear in supporting |
---|
10 | * documentation, and that the name of M.I.T. not be used in advertising or |
---|
11 | * publicity pertaining to distribution of the software without specific, |
---|
12 | * written prior permission. M.I.T. makes no representations about the |
---|
13 | * suitability of this software for any purpose. It is provided "as is" |
---|
14 | * without express or implied warranty. |
---|
15 | * |
---|
16 | * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL |
---|
17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. |
---|
18 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
19 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
---|
20 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
---|
21 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
22 | * |
---|
23 | * Author: Chris D. Peterson, MIT X Consortium |
---|
24 | */ |
---|
25 | |
---|
26 | /* |
---|
27 | * SmeP.h - Private definitions for Sme object |
---|
28 | * |
---|
29 | */ |
---|
30 | |
---|
31 | #ifndef _XawSmeBSBP_h |
---|
32 | #define _XawSmeBSBP_h |
---|
33 | |
---|
34 | /*********************************************************************** |
---|
35 | * |
---|
36 | * Sme Object Private Data |
---|
37 | * |
---|
38 | ***********************************************************************/ |
---|
39 | |
---|
40 | #include <X11/Xaw/SmeP.h> |
---|
41 | #include "SmeBSB.h" |
---|
42 | |
---|
43 | /************************************************************ |
---|
44 | * |
---|
45 | * New fields for the Sme Object class record. |
---|
46 | * |
---|
47 | ************************************************************/ |
---|
48 | |
---|
49 | typedef struct _SmeBSBClassPart { |
---|
50 | XtPointer extension; |
---|
51 | } SmeBSBClassPart; |
---|
52 | |
---|
53 | /* Full class record declaration */ |
---|
54 | typedef struct _SmeBSBClassRec { |
---|
55 | RectObjClassPart rect_class; |
---|
56 | SmeClassPart sme_class; |
---|
57 | SmeBSBClassPart sme_bsb_class; |
---|
58 | } SmeBSBClassRec; |
---|
59 | |
---|
60 | extern SmeBSBClassRec smeBSBClassRec; |
---|
61 | |
---|
62 | /* New fields for the Sme Object record */ |
---|
63 | typedef struct { |
---|
64 | /* resources */ |
---|
65 | String label; /* The entry label. */ |
---|
66 | int vert_space; /* extra vert space to leave, as a percentage |
---|
67 | of the font height of the label. */ |
---|
68 | Pixmap left_bitmap, right_bitmap; /* bitmaps to show. */ |
---|
69 | Dimension left_margin, right_margin; /* left and right margins. */ |
---|
70 | Pixel foreground; /* foreground color. */ |
---|
71 | XFontStruct * font; /* The font to show label in. */ |
---|
72 | XtJustify justify; /* Justification for the label. */ |
---|
73 | Boolean flip_colors; /* Flip colors on entry/exit? */ |
---|
74 | |
---|
75 | /* private resources. */ |
---|
76 | |
---|
77 | Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */ |
---|
78 | GC norm_gc; /* noral color gc. */ |
---|
79 | GC rev_gc; /* reverse color gc. */ |
---|
80 | GC norm_gray_gc; /* Normal color (grayed out) gc. */ |
---|
81 | GC invert_gc; /* gc for flipping colors. */ |
---|
82 | |
---|
83 | Dimension left_bitmap_width; /* size of each bitmap. */ |
---|
84 | Dimension left_bitmap_height; |
---|
85 | Dimension right_bitmap_width; |
---|
86 | Dimension right_bitmap_height; |
---|
87 | |
---|
88 | } SmeBSBPart; |
---|
89 | |
---|
90 | /**************************************************************** |
---|
91 | * |
---|
92 | * Full instance record declaration |
---|
93 | * |
---|
94 | ****************************************************************/ |
---|
95 | |
---|
96 | typedef struct _SmeBSBRec { |
---|
97 | ObjectPart object; |
---|
98 | RectObjPart rectangle; |
---|
99 | SmePart sme; |
---|
100 | SmeBSBPart sme_bsb; |
---|
101 | } SmeBSBRec; |
---|
102 | |
---|
103 | /************************************************************ |
---|
104 | * |
---|
105 | * Private declarations. |
---|
106 | * |
---|
107 | ************************************************************/ |
---|
108 | |
---|
109 | #endif /* _XawSmeBSBP_h */ |
---|