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