1/*********************************************************** 2 3Copyright (c) 1987, 1988, 1994 X Consortium 4 5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software"), to deal 7in the Software without restriction, including without limitation the rights 8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9copies of the Software, and to permit persons to whom the Software is 10furnished to do so, subject to the following conditions: 11 12The above copyright notice and this permission notice shall be included in 13all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 22Except as contained in this notice, the name of the X Consortium shall not be 23used in advertising or otherwise to promote the sale, use or other dealings 24in this Software without prior written authorization from the X Consortium. 25 26 27Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 28 29 All Rights Reserved 30 31Permission to use, copy, modify, and distribute this software and its 32documentation for any purpose and without fee is hereby granted, 33provided that the above copyright notice appear in all copies and that 34both that copyright notice and this permission notice appear in 35supporting documentation, and that the name of Digital not be 36used in advertising or publicity pertaining to distribution of the 37software without specific, written prior permission. 38 39DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45SOFTWARE. 46 47******************************************************************/ 48 49#ifndef _XawUCSLabel_h 50#define _XawUCSLabel_h 51 52/*********************************************************************** 53 * 54 * UCSLabel Widget 55 * 56 ***********************************************************************/ 57 58#include <X11/Xaw/Label.h> 59#include <X11/Xaw/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/* 94 * The only extra resource value needed for this widget. 95 */ 96#define XawTextEncodingUCS 2 97 98#if 0 99/* 100 * All of this is defined by Label.h. 101 */ 102#define XawTextEncoding8bit 0 103#define XawTextEncodingChar2b 1 104 105#define XtNleftBitmap "leftBitmap" 106#define XtCLeftBitmap "LeftBitmap" 107#define XtNencoding "encoding" 108#define XtCEncoding "Encoding" 109 110#ifndef XtNfontSet 111#define XtNfontSet "fontSet" 112#endif 113 114#ifndef XtCFontSet 115#define XtCFontSet "FontSet" 116#endif 117 118#ifndef _XtStringDefs_h_ 119#define XtNbitmap "bitmap" 120#define XtNforeground "foreground" 121#define XtNlabel "label" 122#define XtNfont "font" 123#define XtNinternalWidth "internalWidth" 124#define XtNinternalHeight "internalHeight" 125#define XtNresize "resize" 126#define XtCResize "Resize" 127#define XtCBitmap "Bitmap" 128#endif 129#endif 130 131/* Class record constants */ 132 133extern WidgetClass ucsLabelWidgetClass; 134 135typedef struct _UCSLabelClassRec *UCSLabelWidgetClass; 136typedef struct _UCSLabelRec *UCSLabelWidget; 137 138#endif /* _XawUniLabel_h */ 139