Debian Codegraph @

x3270/CmeBSBP.h

raw symbols SCIP
1 /*
2 * (from) $XConsortium: SmeBSBP.h,v 1.6 89/12/11 15:20:15 kit Exp $
3 *
4 * Copyright (c) 1995-2009, Paul Mattes.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * * Neither the name of Paul Mattes nor his contributors may be used
16 * to endorse or promote products derived from this software without
17 * specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS
20 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT,
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 * Copyright 1989 Massachusetts Institute of Technology
32 *
33 * Permission to use, copy, modify, distribute, and sell this software and its
34 * documentation for any purpose is hereby granted without fee, provided that
35 * the above copyright notice appear in all copies and that both that
36 * copyright notice and this permission notice appear in supporting
37 * documentation, and that the name of M.I.T. not be used in advertising or
38 * publicity pertaining to distribution of the software without specific,
39 * written prior permission. M.I.T. makes no representations about the
40 * suitability of this software for any purpose. It is provided "as is"
41 * without express or implied warranty.
42 *
43 * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
44 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
45 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
47 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
48 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 *
50 * Author: Chris D. Peterson, MIT X Consortium
51 */
52
53 /*
54 * CmeP.h - Private definitions for Cme object
55 * (from) SmeP.h - Private definitions for Sme object
56 *
57 */
58
59 #ifndef _XawCmeBSBP_h
60 #define _XawCmeBSBP_h
61
62 /***********************************************************************
63 *
64 * Cme Object Private Data
65 *
66 ***********************************************************************/
67
68 #include "CmeP.h"
69 #include "CmeBSB.h"
70
71 /************************************************************
72 *
73 * New fields for the Cme Object class record.
74 *
75 ************************************************************/
76
77 typedef struct _CmeBSBClassPart {
78 XtPointer extension;
79 } CmeBSBClassPart;
80
81 /* Full class record declaration */
82 typedef struct _CmeBSBClassRec {
83 RectObjClassPart rect_class;
84 CmeClassPart cme_class;
85 CmeBSBClassPart cme_bsb_class;
86 } CmeBSBClassRec;
87
88 extern CmeBSBClassRec cmeBSBClassRec;
89
90 /* New fields for the Cme Object record */
91 typedef struct {
92 /* resources */
93 String label; /* The entry label. */
94 int vert_space; /* extra vert space to leave, as a percentage
95 of the font height of the label. */
96 Pixmap left_bitmap, right_bitmap; /* bitmaps to show. */
97 Dimension left_margin, right_margin; /* left and right margins. */
98 Pixel foreground; /* foreground color. */
99 XFontStruct * font; /* The font to show label in. */
100 XtJustify justify; /* Justification for the label. */
101 String menu_name; /* The submenu to pop up. */
102
103 /* private resources. */
104
105 Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */
106 GC norm_gc; /* noral color gc. */
107 GC rev_gc; /* reverse color gc. */
108 GC norm_gray_gc; /* Normal color (grayed out) gc. */
109 GC invert_gc; /* gc for flipping colors. */
110 Boolean ticking; /* is the pop-up timer ticking? */
111 XtIntervalId id; /* pop-up timer id */
112
113 Dimension left_bitmap_width; /* size of each bitmap. */
114 Dimension left_bitmap_height;
115 Dimension right_bitmap_width;
116 Dimension right_bitmap_height;
117
118 } CmeBSBPart;
119
120 /****************************************************************
121 *
122 * Full instance record declaration
123 *
124 ****************************************************************/
125
126 typedef struct _CmeBSBRec {
127 ObjectPart object;
128 RectObjPart rectangle;
129 CmePart cme;
130 CmeBSBPart cme_bsb;
131 } CmeBSBRec;
132
133 /************************************************************
134 *
135 * Private declarations.
136 *
137 ************************************************************/
138
139 #endif /* _XawCmeBSBP_h */