Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtprintinfo / libUI / MotifUI / IconP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: IconP.h /main/4 1995/11/06 09:42:03 rswiston $ */
24 /*                                                                      *
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30
31 /*****************************************************************************
32 *
33 *  IconP.H - widget private header file
34 *  
35 ******************************************************************************/
36
37 #ifndef _IconP_h
38 #define _IconP_h
39
40 #include <Xm/XmP.h>
41 #include <Xm/PrimitiveP.h>
42
43 #include "Icon.h"
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49 #define Max(x, y) (((x) > (y)) ? (x) : (y))
50
51 typedef struct _IconClassPart {
52     int reserved;
53 } IconClassPart;
54
55 typedef struct _IconClassRec {
56     CoreClassPart core_class;
57     XmPrimitiveClassPart primitive_class;
58     IconClassPart icon_class;
59 } IconClassRec;
60
61 extern IconClassRec iconClassRec;
62
63 typedef struct _IconPart {
64     /* Public Resources */
65     XmString            label;
66     XmString            top_label;
67     XmString            bottom_label;
68     Pixmap              pixmap;
69     Pixmap              mask;
70     Pixmap              state_pixmap;
71     Pixmap              state_mask;
72     unsigned char       state_gravity;
73     Pixel               select_color;
74     XmFontList          font;
75     unsigned char       alignment;
76     unsigned char       string_direction;
77     unsigned char       icon_placement;
78     unsigned char       icon_shadow_type;
79     Boolean             active;
80     Boolean             select_color_persistent;
81     Boolean             shrink_outline;
82     Boolean             word_wrap;
83     Boolean             selected;
84     Boolean             show_selected_pixmap;
85     Boolean             resize_width;
86     Boolean             resize_height;
87     Dimension           icon_shadow_thickness;
88     Dimension           icon_margin_thickness;   /* margin around widget */
89     XtCallbackList      single_click_callback;
90     XtCallbackList      double_click_callback;
91     GuiIconFields       fields;
92
93     /* Private stuff */
94     GC          gc;
95     GC          stipple_gc;
96     GC          selected_fg_gc;
97     GC          selected_bg_gc;
98     GC          mask_gc;
99     GC          state_mask_gc;
100     GC          mask_stipple_gc;
101     Pixel       select_label_color;
102     XmString    wrapped_label;
103     XmRegion    shadow_region;
104     XmRegion    highlight_region;
105     Position    pixmap_x;
106     Position    pixmap_y;
107     Position    label_x;
108     Position    label_y;
109     Position    top_label_x;
110     Position    top_label_y;
111     Position    bottom_label_x;
112     Position    bottom_label_y;
113     Position    state_pixmap_x;
114     Position    state_pixmap_y;
115     Dimension   pixmap_width;
116     Dimension   pixmap_height;
117     Dimension   top_label_width;
118     Dimension   top_label_height;
119     Dimension   bottom_label_width;
120     Dimension   bottom_label_height;
121     Dimension   label_width;
122     Dimension   label_height;
123     Dimension   state_pixmap_width;
124     Dimension   state_pixmap_height;
125     Time        old_time;
126     Boolean     old_shrink_outline;
127 } IconPart;
128
129 typedef struct _IconRec {
130     CorePart core;
131     XmPrimitivePart primitive;
132     IconPart icon;
133 } IconRec;
134
135 #ifdef __cplusplus
136 }  /* Close scope of 'extern "C"' declaration which encloses file. */
137 #endif
138
139 #endif /* _IconP_h */
140 /* DON'T ADD ANYTHING AFTER THIS #endif */