2
* @OPENGROUP_COPYRIGHT@
4
* Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
5
* Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
6
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
7
* the full copyright text.
9
* This software is subject to an open license. It may only be
10
* used on, with or for operating systems which are themselves open
11
* source systems. You must contact The Open Group for a license
12
* allowing distribution and sublicensing of this software on, with,
13
* or for operating systems which are not Open Source programs.
15
* See http://www.opengroup.org/openmotif/license for full
16
* details of the license agreement. Any use, reproduction, or
17
* distribution of the program constitutes recipient's acceptance of
20
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
21
* PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22
* KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
23
* WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
24
* OR FITNESS FOR A PARTICULAR PURPOSE
26
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
27
* NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
28
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
30
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32
* ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
33
* EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
34
* POSSIBILITY OF SUCH DAMAGES.
39
/* $XConsortium: SeparatoGP.h /main/11 1995/07/13 17:59:16 drk $ */
41
* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
42
#ifndef _XmSeparatorGadgetP_h
43
#define _XmSeparatorGadgetP_h
45
#include <Xm/SeparatoG.h>
46
#include <Xm/GadgetP.h>
47
#include <Xm/ExtObjectP.h>
53
/*****************************************************************/
54
/* The Separator Gadget Cache Object's class and instance records*/
55
/*****************************************************************/
57
typedef struct _XmSeparatorGCacheObjClassPart
60
} XmSeparatorGCacheObjClassPart;
63
/* separator cache class record */
64
typedef struct _XmSeparatorGCacheObjClassRec
66
ObjectClassPart object_class;
67
XmExtClassPart ext_class;
68
XmSeparatorGCacheObjClassPart separator_class_cache;
69
} XmSeparatorGCacheObjClassRec;
71
externalref XmSeparatorGCacheObjClassRec xmSeparatorGCacheObjClassRec;
74
/* The Separator Gadget Cache instance record */
76
typedef struct _XmSeparatorGCacheObjPart
79
unsigned char orientation;
80
unsigned char separator_type;
90
Pixel top_shadow_color;
91
Pixmap top_shadow_pixmap;
93
Pixel bottom_shadow_color;
94
Pixmap bottom_shadow_pixmap;
95
} XmSeparatorGCacheObjPart;
97
typedef struct _XmSeparatorGCacheObjRec
101
XmSeparatorGCacheObjPart separator_cache;
102
} XmSeparatorGCacheObjRec;
105
/*****************************************************/
106
/* The Separator Widget Class and instance records */
107
/*****************************************************/
109
typedef struct _XmSeparatorGadgetClassPart
112
} XmSeparatorGadgetClassPart;
115
/* Full class record declaration for Separator class */
117
typedef struct _XmSeparatorGadgetClassRec
119
RectObjClassPart rect_class;
120
XmGadgetClassPart gadget_class;
121
XmSeparatorGadgetClassPart separator_class;
122
} XmSeparatorGadgetClassRec;
124
externalref XmSeparatorGadgetClassRec xmSeparatorGadgetClassRec;
126
typedef struct _XmSeparatorGadgetPart
128
XmSeparatorGCacheObjPart *cache;
130
} XmSeparatorGadgetPart;
132
/* Full instance record declaration */
134
typedef struct _XmSeparatorGadgetRec
137
RectObjPart rectangle;
139
XmSeparatorGadgetPart separator;
140
} XmSeparatorGadgetRec;
143
/* MACROS for accessing instance fields*/
144
#define SEPG_Margin(w) \
145
(((XmSeparatorGadget)(w))->separator.cache->margin)
146
#define SEPG_Orientation(w) \
147
(((XmSeparatorGadget)(w))->separator.cache->orientation)
148
#define SEPG_SeparatorType(w) \
149
(((XmSeparatorGadget)(w))->separator.cache->separator_type)
150
#define SEPG_SeparatorGC(w) \
151
(((XmSeparatorGadget)(w))->separator.cache->separator_GC)
152
#define SEPG_BackgroundGC(w) \
153
(((XmSeparatorGadget)(w))->separator.cache->background_GC)
154
#define SEPG_TopShadowGC(w) \
155
(((XmSeparatorGadget)(w))->separator.cache->top_shadow_GC)
156
#define SEPG_BottomShadowGC(w) \
157
(((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_GC)
158
#define SEPG_Foreground(w) \
159
(((XmSeparatorGadget)(w))->separator.cache->foreground)
160
#define SEPG_Background(w) \
161
(((XmSeparatorGadget)(w))->separator.cache->background)
162
#define SEPG_TopShadowColor(w) \
163
(((XmSeparatorGadget)(w))->separator.cache->top_shadow_color)
164
#define SEPG_TopShadowPixmap(w) \
165
(((XmSeparatorGadget)(w))->separator.cache->top_shadow_pixmap)
166
#define SEPG_BottomShadowColor(w) \
167
(((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_color)
168
#define SEPG_BottomShadowPixmap(w) \
169
(((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_pixmap)
171
/* Convenience Macros */
172
#define SEPG_Cache(w) \
173
(((XmSeparatorGadget)(w))->separator.cache)
174
#define SEPG_ClassCachePart(w) \
175
(((XmSeparatorGadgetClass)xmSeparatorGadgetClass)->gadget_class.cache_part)
179
} /* Close scope of 'extern "C"' declaration which encloses file. */
182
#endif /* _XmSeparatorGadgetP_h */
183
/* DON'T ADD STUFF AFTER THIS #endif */