rebuild geeqie
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1SmeBSBP.h
blobb9cceb415dc7c6b6bc2dc1aad53e6b0a8c772a68
1 /*
2 * $XConsortium: SmeBSBP.h,v 1.6 89/12/11 15:20:15 kit Exp $
4 * Copyright 1989 Massachusetts Institute of Technology
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.
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.
23 * Author: Chris D. Peterson, MIT X Consortium
26 /*
27 * SmeP.h - Private definitions for Sme object
31 #ifndef _XawSmeBSBP_h
32 #define _XawSmeBSBP_h
34 /***********************************************************************
36 * Sme Object Private Data
38 ***********************************************************************/
40 #include <./Xaw3_1SmeP.h>
41 #include <./Xaw3_1SmeBSB.h>
43 /************************************************************
45 * New fields for the Sme Object class record.
47 ************************************************************/
49 typedef struct _SmeBSBClassPart {
50 XtPointer extension;
51 } SmeBSBClassPart;
53 /* Full class record declaration */
54 typedef struct _SmeBSBClassRec {
55 RectObjClassPart rect_class;
56 SmeClassPart sme_class;
57 SmeBSBClassPart sme_bsb_class;
58 } SmeBSBClassRec;
60 extern SmeBSBClassRec smeBSBClassRec;
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. */
74 /* private resources. */
76 Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */
77 GC norm_gc; /* noral color gc. */
78 GC rev_gc; /* reverse color gc. */
79 GC norm_gray_gc; /* Normal color (grayed out) gc. */
80 GC invert_gc; /* gc for flipping colors. */
82 Dimension left_bitmap_width; /* size of each bitmap. */
83 Dimension left_bitmap_height;
84 Dimension right_bitmap_width;
85 Dimension right_bitmap_height;
87 } SmeBSBPart;
89 /****************************************************************
91 * Full instance record declaration
93 ****************************************************************/
95 typedef struct _SmeBSBRec {
96 ObjectPart object;
97 RectObjPart rectangle;
98 SmePart sme;
99 SmeBSBPart sme_bsb;
100 } SmeBSBRec;
102 /************************************************************
104 * Private declarations.
106 ************************************************************/
108 #endif /* _XawSmeBSBP_h */