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