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