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: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */
24 /**---------------------------------------------------------------------
28 *** project: MotifPlus Widgets
30 *** description: Public include file for DtIcon gadget class.
33 *** (c) Copyright 1990 by Hewlett-Packard Company.
36 ***-------------------------------------------------------------------*/
43 #include <Dt/DtStrDefs.h>
46 #define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass)
49 typedef struct _DtIconClassRec * DtIconGadgetClass;
50 typedef struct _DtIconRec * DtIconGadget;
51 typedef struct _DtIconCacheObjRec * DtIconCacheObject;
54 extern Widget _DtCreateIcon(
59 extern Boolean _DtIconGetState(
61 extern void _DtIconSetState(
65 extern Drawable _DtIconDraw(
71 extern Widget _DtDuplicateIcon(
78 extern Boolean _DtIconSelectInTitle(
82 extern XRectangle * _DtIconGetTextExtent(
84 extern void _DtIconGetIconRects(
92 extern WidgetClass dtIconGadgetClass;
95 #define XmCR_SELECT XmCR_SINGLE_SELECT
98 #define XmCR_HIGHLIGHT 52
99 #define XmCR_UNHIGHLIGHT 53
100 #define XmCR_SHADOW 54
107 } DtIconCallbackStruct;
110 #define XmPIXMAP_TOP 0
111 #define XmPIXMAP_BOTTOM 1
112 #define XmPIXMAP_LEFT 2
113 #define XmPIXMAP_RIGHT 3
114 #define XmPIXMAP_MIDDLE 4
116 #define XmSTRING_BOTTOM 0
117 #define XmSTRING_TOP 1
118 #define XmSTRING_RIGHT 2
119 #define XmSTRING_LEFT 3
121 #define XmICON_LABEL 0
122 #define XmICON_BUTTON 1
123 #define XmICON_TOGGLE 2
124 #define XmICON_DRAG 3
126 #define XmFILL_NONE 0
127 #define XmFILL_PARENT 1
128 #define XmFILL_SELF 2
129 #define XmFILL_TRANSPARENT 3
131 #define XmPIXMAP_RECT 0x01
132 #define XmLABEL_RECT 0x02
134 #define DtRECTANGLE 0
135 #define DtNON_RECTANGLE 1
138 #endif /* _XmIcon_h */
140 /* DON'T ADD ANYTHING AFTER THIS #endif */