1 /***********************************************************
2 
3 Copyright (c) 1987, 1988, 1994  X Consortium
4 
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 Except as contained in this notice, the name of the X Consortium shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from the X Consortium.
25 
26 
27 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
28 
29                         All Rights Reserved
30 
31 Permission to use, copy, modify, and distribute this software and its
32 documentation for any purpose and without fee is hereby granted,
33 provided that the above copyright notice appear in all copies and that
34 both that copyright notice and this permission notice appear in
35 supporting documentation, and that the name of Digital not be
36 used in advertising or publicity pertaining to distribution of the
37 software without specific, written prior permission.
38 
39 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45 SOFTWARE.
46 
47 ******************************************************************/
48 
49 #ifndef _XawLabel_h
50 #define _XawLabel_h
51 
52 /***********************************************************************
53  *
54  * Label Widget
55  *
56  ***********************************************************************/
57 
58 #include "Xaw3dP.h"
59 #include <X11/Xaw3dxft/Simple.h>
60 
61 /* Resources:
62 
63  Name		     Class		RepType		Default Value
64  ----		     -----		-------		-------------
65  background	     Background		Pixel		XtDefaultBackground
66  bitmap		     Pixmap		Pixmap		None
67  border		     BorderColor	Pixel		XtDefaultForeground
68  borderWidth	     BorderWidth	Dimension	1
69  cursor		     Cursor		Cursor		None
70  cursorName	     Cursor		String		NULL
71  destroyCallback     Callback		XtCallbackList	NULL
72  encoding	     Encoding		unsigned char	XawTextEncoding8bit
73  font		     Font		XFontStruct*	XtDefaultFont
74  foreground	     Foreground		Pixel		XtDefaultForeground
75  height		     Height		Dimension	text height
76  insensitiveBorder   Insensitive	Pixmap		Gray
77  internalHeight	     Height		Dimension	2
78  internalWidth	     Width		Dimension	4
79  justify	     Justify		XtJustify	XtJustifyCenter
80  label		     Label		String		NULL
81  leftBitmap	     LeftBitmap		Pixmap		None
82  mappedWhenManaged   MappedWhenManaged	Boolean		True
83  pointerColor	     Foreground		Pixel		XtDefaultForeground
84  pointerColorBackground Background	Pixel		XtDefaultBackground
85  resize		     Resize		Boolean		True
86  sensitive	     Sensitive		Boolean		True
87  width		     Width		Dimension	text width
88  x		     Position		Position	0
89  y		     Position		Position	0
90 
91 */
92 
93 #define XawTextEncoding8bit	0
94 #define XawTextEncodingChar2b	1
95 
96 #define XtNencoding "encoding"
97 #define XtNleftBitmap "leftBitmap"
98 #define XtNxftFont "xftFont"
99 
100 #define XtCLeftBitmap "LeftBitmap"
101 #define XtCEncoding "Encoding"
102 #define XtCXftFont "XftFont"
103 
104 #ifdef XAW_INTERNATIONALIZATION
105 #ifndef XtNfontSet
106 #define XtNfontSet "fontSet"
107 #endif
108 #ifndef XtCFontSet
109 #define XtCFontSet "FontSet"
110 #endif
111 #endif
112 
113 #ifndef _XtStringDefs_h_
114 #define XtNbitmap "bitmap"
115 #define XtNforeground "foreground"
116 #define XtNlabel "label"
117 #define XtNfont "font"
118 #define XtNinternalWidth "internalWidth"
119 #define XtNinternalHeight "internalHeight"
120 #define XtNresize "resize"
121 #define XtCResize "Resize"
122 #define XtCBitmap "Bitmap"
123 #endif
124 
125 /* Class record constants */
126 
127 extern WidgetClass labelWidgetClass;
128 
129 typedef struct _LabelClassRec *LabelWidgetClass;
130 typedef struct _LabelRec      *LabelWidget;
131 
132 #endif /* _XawLabel_h */
133