1 /* $XConsortium: CareVisualT.h /main/5 1995/07/15 20:48:21 drk $ */
2 /*
3  * Motif
4  *
5  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
6  *
7  * These libraries and programs are free software; you can
8  * redistribute them and/or modify them under the terms of the GNU
9  * Lesser General Public License as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  *
13  * These libraries and programs are distributed in the hope that
14  * they will be useful, but WITHOUT ANY WARRANTY; without even the
15  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  * PURPOSE. See the GNU Lesser General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with these librararies and programs; if not, write
21  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
22  * Floor, Boston, MA 02110-1301 USA
23  */
24 /*
25  * HISTORY
26  */
27 #ifndef _XmCareVisualT_H
28 #define _XmCareVisualT_H
29 
30 #include <Xm/Xm.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 externalref XrmQuark XmQTcareParentVisual;
37 
38 /* Trait structures and typedefs, place typedefs first */
39 
40 typedef Boolean (*XmCareVisualRedrawProc)(Widget kid,
41 					  Widget cur_parent,
42 					  Widget new_parent,
43 					  Mask visual_flag);
44 
45 /* Version 0: initial release. */
46 
47 typedef struct _XmCareVisualTraitRec {
48   int 			 version;	/* 0 */
49   XmCareVisualRedrawProc redraw;
50 } XmCareVisualTraitRec, *XmCareVisualTrait;
51 
52 
53 #define NoVisualChange                    0L
54 #define VisualForeground                  (1L<<0)
55 #define VisualHighlightPixmap             (1L<<1)
56 #define VisualHighlightColor              (1L<<2)
57 #define VisualBottomShadowPixmap          (1L<<3)
58 #define VisualBottomShadowColor           (1L<<4)
59 #define VisualTopShadowPixmap             (1L<<5)
60 #define VisualTopShadowColor              (1L<<6)
61 #define VisualBackgroundPixel             (1L<<7)
62 #define VisualBackgroundPixmap            (1L<<8)
63 #define VisualSelectColor                 (1L<<9)
64 
65 
66 #ifdef __cplusplus
67 }  /* Close scope of 'extern "C"' declaration which encloses file. */
68 #endif
69 
70 #endif /* _XmCareVisualT_H */
71