2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: IconP.h /main/4 1995/11/06 09:42:03 rswiston $ */
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. *
31 /*****************************************************************************
33 * IconP.H - widget private header file
35 ******************************************************************************/
41 #include <Xm/PrimitiveP.h>
49 #define Max(x, y) (((x) > (y)) ? (x) : (y))
51 typedef struct _IconClassPart {
55 typedef struct _IconClassRec {
56 CoreClassPart core_class;
57 XmPrimitiveClassPart primitive_class;
58 IconClassPart icon_class;
61 extern IconClassRec iconClassRec;
63 typedef struct _IconPart {
64 /* Public Resources */
67 XmString bottom_label;
72 unsigned char state_gravity;
75 unsigned char alignment;
76 unsigned char string_direction;
77 unsigned char icon_placement;
78 unsigned char icon_shadow_type;
80 Boolean select_color_persistent;
81 Boolean shrink_outline;
84 Boolean show_selected_pixmap;
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;
101 Pixel select_label_color;
102 XmString wrapped_label;
103 XmRegion shadow_region;
104 XmRegion highlight_region;
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;
126 Boolean old_shrink_outline;
129 typedef struct _IconRec {
131 XmPrimitivePart primitive;
136 } /* Close scope of 'extern "C"' declaration which encloses file. */
139 #endif /* _IconP_h */
140 /* DON'T ADD ANYTHING AFTER THIS #endif */