19027f4a0Smrg/***********************************************************
29027f4a0Smrg
39027f4a0SmrgCopyright (c) 1987, 1988, 1994  X Consortium
49027f4a0Smrg
59027f4a0SmrgPermission is hereby granted, free of charge, to any person obtaining a copy
69027f4a0Smrgof this software and associated documentation files (the "Software"), to deal
79027f4a0Smrgin the Software without restriction, including without limitation the rights
89027f4a0Smrgto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99027f4a0Smrgcopies of the Software, and to permit persons to whom the Software is
109027f4a0Smrgfurnished to do so, subject to the following conditions:
119027f4a0Smrg
129027f4a0SmrgThe above copyright notice and this permission notice shall be included in
139027f4a0Smrgall copies or substantial portions of the Software.
149027f4a0Smrg
159027f4a0SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
169027f4a0SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
179027f4a0SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
189027f4a0SmrgX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
199027f4a0SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
209027f4a0SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
219027f4a0Smrg
229027f4a0SmrgExcept as contained in this notice, the name of the X Consortium shall not be
239027f4a0Smrgused in advertising or otherwise to promote the sale, use or other dealings
249027f4a0Smrgin this Software without prior written authorization from the X Consortium.
259027f4a0Smrg
269027f4a0Smrg
279027f4a0SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
289027f4a0Smrg
299027f4a0Smrg                        All Rights Reserved
309027f4a0Smrg
31fe2ac8d7SmrgPermission to use, copy, modify, and distribute this software and its
32fe2ac8d7Smrgdocumentation for any purpose and without fee is hereby granted,
339027f4a0Smrgprovided that the above copyright notice appear in all copies and that
34fe2ac8d7Smrgboth that copyright notice and this permission notice appear in
359027f4a0Smrgsupporting documentation, and that the name of Digital not be
369027f4a0Smrgused in advertising or publicity pertaining to distribution of the
37fe2ac8d7Smrgsoftware without specific, written prior permission.
389027f4a0Smrg
399027f4a0SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
409027f4a0SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
419027f4a0SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
429027f4a0SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
439027f4a0SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
449027f4a0SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
459027f4a0SmrgSOFTWARE.
469027f4a0Smrg
479027f4a0Smrg******************************************************************/
489027f4a0Smrg
499027f4a0Smrg#ifndef _XawUCSLabel_h
509027f4a0Smrg#define _XawUCSLabel_h
519027f4a0Smrg
529027f4a0Smrg/***********************************************************************
539027f4a0Smrg *
549027f4a0Smrg * UCSLabel Widget
559027f4a0Smrg *
569027f4a0Smrg ***********************************************************************/
579027f4a0Smrg
589027f4a0Smrg#include <X11/Xaw/Label.h>
599027f4a0Smrg#include <X11/Xaw/Simple.h>
609027f4a0Smrg
619027f4a0Smrg/* Resources:
629027f4a0Smrg
639027f4a0Smrg Name		     Class		RepType		Default Value
649027f4a0Smrg ----		     -----		-------		-------------
659027f4a0Smrg background	     Background		Pixel		XtDefaultBackground
669027f4a0Smrg bitmap		     Pixmap		Pixmap		None
679027f4a0Smrg border		     BorderColor	Pixel		XtDefaultForeground
689027f4a0Smrg borderWidth	     BorderWidth	Dimension	1
699027f4a0Smrg cursor		     Cursor		Cursor		None
709027f4a0Smrg cursorName	     Cursor		String		NULL
719027f4a0Smrg destroyCallback     Callback		XtCallbackList	NULL
729027f4a0Smrg encoding	     Encoding		unsigned char	XawTextEncoding8bit
739027f4a0Smrg font		     Font		XFontStruct*	XtDefaultFont
749027f4a0Smrg foreground	     Foreground		Pixel		XtDefaultForeground
759027f4a0Smrg height		     Height		Dimension	text height
769027f4a0Smrg insensitiveBorder   Insensitive	Pixmap		Gray
779027f4a0Smrg internalHeight	     Height		Dimension	2
789027f4a0Smrg internalWidth	     Width		Dimension	4
799027f4a0Smrg justify	     Justify		XtJustify	XtJustifyCenter
809027f4a0Smrg label		     Label		String		NULL
819027f4a0Smrg leftBitmap	     LeftBitmap		Pixmap		None
829027f4a0Smrg mappedWhenManaged   MappedWhenManaged	Boolean		True
839027f4a0Smrg pointerColor	     Foreground		Pixel		XtDefaultForeground
849027f4a0Smrg pointerColorBackground Background	Pixel		XtDefaultBackground
859027f4a0Smrg resize		     Resize		Boolean		True
869027f4a0Smrg sensitive	     Sensitive		Boolean		True
879027f4a0Smrg width		     Width		Dimension	text width
889027f4a0Smrg x		     Position		Position	0
899027f4a0Smrg y		     Position		Position	0
909027f4a0Smrg
919027f4a0Smrg*/
929027f4a0Smrg
939027f4a0Smrg/*
949027f4a0Smrg * The only extra resource value needed for this widget.
959027f4a0Smrg */
969027f4a0Smrg#define XawTextEncodingUCS	2
979027f4a0Smrg
989027f4a0Smrg#if 0
999027f4a0Smrg/*
1009027f4a0Smrg * All of this is defined by Label.h.
1019027f4a0Smrg */
1029027f4a0Smrg#define XawTextEncoding8bit	0
1039027f4a0Smrg#define XawTextEncodingChar2b	1
1049027f4a0Smrg
1059027f4a0Smrg#define XtNleftBitmap "leftBitmap"
1069027f4a0Smrg#define XtCLeftBitmap "LeftBitmap"
1079027f4a0Smrg#define XtNencoding "encoding"
1089027f4a0Smrg#define XtCEncoding "Encoding"
1099027f4a0Smrg
1109027f4a0Smrg#ifndef XtNfontSet
1119027f4a0Smrg#define XtNfontSet "fontSet"
1129027f4a0Smrg#endif
1139027f4a0Smrg
1149027f4a0Smrg#ifndef XtCFontSet
1159027f4a0Smrg#define XtCFontSet "FontSet"
1169027f4a0Smrg#endif
1179027f4a0Smrg
1189027f4a0Smrg#ifndef _XtStringDefs_h_
1199027f4a0Smrg#define XtNbitmap "bitmap"
1209027f4a0Smrg#define XtNforeground "foreground"
1219027f4a0Smrg#define XtNlabel "label"
1229027f4a0Smrg#define XtNfont "font"
1239027f4a0Smrg#define XtNinternalWidth "internalWidth"
1249027f4a0Smrg#define XtNinternalHeight "internalHeight"
1259027f4a0Smrg#define XtNresize "resize"
1269027f4a0Smrg#define XtCResize "Resize"
1279027f4a0Smrg#define XtCBitmap "Bitmap"
1289027f4a0Smrg#endif
1299027f4a0Smrg#endif
1309027f4a0Smrg
1319027f4a0Smrg/* Class record constants */
1329027f4a0Smrg
1339027f4a0Smrgextern WidgetClass ucsLabelWidgetClass;
1349027f4a0Smrg
1359027f4a0Smrgtypedef struct _UCSLabelClassRec *UCSLabelWidgetClass;
1369027f4a0Smrgtypedef struct _UCSLabelRec      *UCSLabelWidget;
1379027f4a0Smrg
1389027f4a0Smrg#endif /* _XawUniLabel_h */
139