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: ArrowBGP.h /main/13 1995/07/14 10:09:51 drk $ */
41
* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
42
#ifndef _XmArrowGadgetP_h
43
#define _XmArrowGadgetP_h
45
#include <Xm/ArrowBG.h>
46
#include <Xm/GadgetP.h>
52
/* Arrow class structure */
54
typedef struct _XmArrowButtonGadgetClassPart
57
} XmArrowButtonGadgetClassPart;
60
/* Full class record declaration for Arrow class */
62
typedef struct _XmArrowButtonGadgetClassRec
64
RectObjClassPart rect_class;
65
XmGadgetClassPart gadget_class;
66
XmArrowButtonGadgetClassPart arrow_button_class;
67
} XmArrowButtonGadgetClassRec;
69
externalref XmArrowButtonGadgetClassRec xmArrowButtonGadgetClassRec;
71
/* The Arrow instance record */
73
typedef struct _XmArrowButtonGadgetPart
75
XtCallbackList activate_callback;
76
XtCallbackList arm_callback;
77
XtCallbackList disarm_callback;
78
unsigned char direction; /* The direction the arrow is pointing. */
94
unsigned char multiClick; /* KEEP/DISCARD resource */
107
Pixel top_shadow_color;
108
Pixmap top_shadow_pixmap;
110
Pixel bottom_shadow_color;
111
Pixmap bottom_shadow_pixmap;
113
Pixel highlight_color;
114
Pixmap highlight_pixmap;
117
Dimension detail_shadow_thickness ;
118
} XmArrowButtonGadgetPart;
121
/* Full instance record declaration */
123
typedef struct _XmArrowButtonGadgetRec
126
RectObjPart rectangle;
128
XmArrowButtonGadgetPart arrowbutton;
129
} XmArrowButtonGadgetRec;
133
#define ArrowBG_BackgroundGC(w) (((XmArrowButtonGadget)(w)) -> \
134
arrowbutton. background_GC)
135
#define ArrowBG_TopShadowGC(w) (((XmArrowButtonGadget)(w)) -> \
136
arrowbutton. top_shadow_GC)
137
#define ArrowBG_BottomShadowGC(w) (((XmArrowButtonGadget)(w)) -> \
138
arrowbutton. bottom_shadow_GC)
139
#define ArrowBG_HighlightGC(w) (((XmArrowButtonGadget)(w)) -> \
140
arrowbutton. highlight_GC)
141
#define ArrowBG_Foreground(w) (((XmArrowButtonGadget)(w)) -> \
142
arrowbutton. foreground)
143
#define ArrowBG_Background(w) (((XmArrowButtonGadget)(w)) -> \
144
arrowbutton. background)
145
#define ArrowBG_TopShadowColor(w) (((XmArrowButtonGadget)(w)) -> \
146
arrowbutton. top_shadow_color)
147
#define ArrowBG_TopShadowPixmap(w) (((XmArrowButtonGadget)(w)) -> \
148
arrowbutton. top_shadow_pixmap)
149
#define ArrowBG_BottomShadowColor(w) (((XmArrowButtonGadget)(w)) -> \
150
arrowbutton. bottom_shadow_color)
151
#define ArrowBG_BottomShadowPixmap(w) (((XmArrowButtonGadget)(w)) -> \
152
arrowbutton. bottom_shadow_pixmap)
153
#define ArrowBG_HighlightColor(w) (((XmArrowButtonGadget)(w)) -> \
154
arrowbutton. highlight_color)
155
#define ArrowBG_HighlightPixmap(w) (((XmArrowButtonGadget)(w)) -> \
156
arrowbutton. highlight_pixmap)
158
/******** Private Function Declarations ********/
161
/******** End Private Function Declarations ********/
165
} /* Close scope of 'extern "C"' declaration which encloses file. */
168
#endif /* _XmArrowGadgetP_h */
169
/* DON'T ADD ANYTHING AFTER THIS #endif */