SmeBSBP.h revision 7a84e134
1/*
2 * $Xorg: SmeBSBP.h,v 1.4 2001/02/09 02:03:45 xorgcvs Exp $
3 *
4Copyright 1989, 1994, 1998  The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall not be
23used in advertising or otherwise to promote the sale, use or other dealings
24in this Software without prior written authorization from The Open Group.
25 *
26 * Author:  Chris D. Peterson, MIT X Consortium
27 */
28/* $XFree86: xc/lib/Xaw/SmeBSBP.h,v 1.8 2001/01/17 19:42:31 dawes Exp $ */
29
30#ifndef _XawSmeBSBP_h
31#define _XawSmeBSBP_h
32
33/*
34 * Sme Object Private Data
35 */
36#include <X11/Xaw/SmeP.h>
37#include <X11/Xaw/SmeBSB.h>
38
39typedef struct _SmeBSBClassPart {
40    XtPointer extension;
41} SmeBSBClassPart;
42
43/* Full class record declaration */
44typedef struct _SmeBSBClassRec {
45    RectObjClassPart	rect_class;
46    SmeClassPart	sme_class;
47    SmeBSBClassPart	sme_bsb_class;
48} SmeBSBClassRec;
49
50extern SmeBSBClassRec smeBSBClassRec;
51
52/* New fields for the Sme Object record */
53typedef struct {
54    /* resources */
55    String label;			/* The entry label */
56    int vert_space;			/* extra vert space to leave, as a
57					   percentage of the font height of
58					   the label */
59    Pixmap left_bitmap, right_bitmap;	/* bitmaps to show */
60    Dimension left_margin, right_margin;/* left and right margins */
61    Pixel foreground;			/* foreground color */
62    XFontStruct *font;			/* The font to show label in */
63    XFontSet fontset;			/* or fontset */
64    XtJustify justify;			/* Justification for the label. */
65
66    /* private */
67    Boolean set_values_area_cleared;	/* do we need to unhighlight? */
68    GC norm_gc;				/* noral color gc */
69    GC rev_gc;				/* reverse color gc */
70    GC norm_gray_gc;			/* Normal color (grayed out) gc */
71    GC invert_gc;			/* gc for flipping colors */
72    Dimension left_bitmap_width;	/* size of each bitmap */
73    Dimension left_bitmap_height;
74    Dimension right_bitmap_width;
75    Dimension right_bitmap_height;
76
77#ifndef OLDXAW
78    /* new resources */
79    String menu_name;			/* name of nested sub menu or NULL */
80    XtPointer pad[4];	/* for future use and keep binary compatability */
81#endif
82} SmeBSBPart;
83
84/*
85 * Full instance record declaration
86 */
87typedef struct _SmeBSBRec {
88    ObjectPart	object;
89    RectObjPart	rectangle;
90    SmePart	sme;
91    SmeBSBPart	sme_bsb;
92} SmeBSBRec;
93
94#endif /* _XawSmeBSBP_h */
95