Label.h revision 7a84e134
17a84e134Smrg/* $Xorg: Label.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $ */ 27a84e134Smrg 37a84e134Smrg/*********************************************************** 47a84e134Smrg 57a84e134SmrgCopyright 1987, 1988, 1994, 1998 The Open Group 67a84e134Smrg 77a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its 87a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that 97a84e134Smrgthe above copyright notice appear in all copies and that both that 107a84e134Smrgcopyright notice and this permission notice appear in supporting 117a84e134Smrgdocumentation. 127a84e134Smrg 137a84e134SmrgThe above copyright notice and this permission notice shall be included in 147a84e134Smrgall copies or substantial portions of the Software. 157a84e134Smrg 167a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 177a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 187a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 197a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 207a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 217a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 227a84e134Smrg 237a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be 247a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings 257a84e134Smrgin this Software without prior written authorization from The Open Group. 267a84e134Smrg 277a84e134Smrg 287a84e134SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 297a84e134Smrg 307a84e134Smrg All Rights Reserved 317a84e134Smrg 327a84e134SmrgPermission to use, copy, modify, and distribute this software and its 337a84e134Smrgdocumentation for any purpose and without fee is hereby granted, 347a84e134Smrgprovided that the above copyright notice appear in all copies and that 357a84e134Smrgboth that copyright notice and this permission notice appear in 367a84e134Smrgsupporting documentation, and that the name of Digital not be 377a84e134Smrgused in advertising or publicity pertaining to distribution of the 387a84e134Smrgsoftware without specific, written prior permission. 397a84e134Smrg 407a84e134SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 417a84e134SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 427a84e134SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 437a84e134SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 447a84e134SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 457a84e134SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 467a84e134SmrgSOFTWARE. 477a84e134Smrg 487a84e134Smrg******************************************************************/ 497a84e134Smrg/* $XFree86: xc/lib/Xaw/Label.h,v 1.6 2001/01/17 19:42:27 dawes Exp $ */ 507a84e134Smrg 517a84e134Smrg#ifndef _XawLabel_h 527a84e134Smrg#define _XawLabel_h 537a84e134Smrg 547a84e134Smrg/* 557a84e134Smrg * Label Widget 567a84e134Smrg */ 577a84e134Smrg 587a84e134Smrg#include <X11/Xaw/Simple.h> 597a84e134Smrg 607a84e134Smrg/* Resources: 617a84e134Smrg 627a84e134Smrg Name Class RepType Default Value 637a84e134Smrg ---- ----- ------- ------------- 647a84e134Smrg background Background Pixel XtDefaultBackground 657a84e134Smrg bitmap Pixmap Pixmap None 667a84e134Smrg border BorderColor Pixel XtDefaultForeground 677a84e134Smrg borderWidth BorderWidth Dimension 1 687a84e134Smrg cursor Cursor Cursor None 697a84e134Smrg cursorName Cursor String NULL 707a84e134Smrg destroyCallback Callback XtCallbackList NULL 717a84e134Smrg encoding Encoding UnsignedChar XawTextEncoding8bit 727a84e134Smrg font Font XFontStruct* XtDefaultFont 737a84e134Smrg foreground Foreground Pixel XtDefaultForeground 747a84e134Smrg height Height Dimension text height 757a84e134Smrg insensitiveBorder Insensitive Pixmap Gray 767a84e134Smrg internalHeight Height Dimension 2 777a84e134Smrg internalWidth Width Dimension 4 787a84e134Smrg justify Justify XtJustify XtJustifyCenter 797a84e134Smrg label Label String NULL 807a84e134Smrg leftBitmap LeftBitmap Pixmap None 817a84e134Smrg mappedWhenManaged MappedWhenManaged Boolean True 827a84e134Smrg pointerColor Foreground Pixel XtDefaultForeground 837a84e134Smrg pointerColorBackground Background Pixel XtDefaultBackground 847a84e134Smrg resize Resize Boolean True 857a84e134Smrg sensitive Sensitive Boolean True 867a84e134Smrg width Width Dimension text width 877a84e134Smrg x Position Position 0 887a84e134Smrg y Position Position 0 897a84e134Smrg 907a84e134Smrg*/ 917a84e134Smrg 927a84e134Smrg#define XawTextEncoding8bit 0 937a84e134Smrg#define XawTextEncodingChar2b 1 947a84e134Smrg 957a84e134Smrg#define XtNleftBitmap "leftBitmap" 967a84e134Smrg#define XtCLeftBitmap "LeftBitmap" 977a84e134Smrg#define XtNencoding "encoding" 987a84e134Smrg#define XtCEncoding "Encoding" 997a84e134Smrg 1007a84e134Smrg#ifndef XtNfontSet 1017a84e134Smrg#define XtNfontSet "fontSet" 1027a84e134Smrg#endif 1037a84e134Smrg 1047a84e134Smrg#ifndef XtCFontSet 1057a84e134Smrg#define XtCFontSet "FontSet" 1067a84e134Smrg#endif 1077a84e134Smrg 1087a84e134Smrg#ifndef _XtStringDefs_h_ 1097a84e134Smrg#define XtNbitmap "bitmap" 1107a84e134Smrg#define XtNforeground "foreground" 1117a84e134Smrg#define XtNlabel "label" 1127a84e134Smrg#define XtNfont "font" 1137a84e134Smrg#define XtNinternalWidth "internalWidth" 1147a84e134Smrg#define XtNinternalHeight "internalHeight" 1157a84e134Smrg#define XtNresize "resize" 1167a84e134Smrg#define XtCResize "Resize" 1177a84e134Smrg#define XtCBitmap "Bitmap" 1187a84e134Smrg#endif 1197a84e134Smrg 1207a84e134Smrg#ifndef XtNlabelX 1217a84e134Smrg#define XtNlabelX "labelX" 1227a84e134Smrg#endif 1237a84e134Smrg 1247a84e134Smrg#ifndef XtNlabelY 1257a84e134Smrg#define XtNlabelY "labelY" 1267a84e134Smrg#endif 1277a84e134Smrg 1287a84e134Smrg/* Class record constants */ 1297a84e134Smrg 1307a84e134Smrgextern WidgetClass labelWidgetClass; 1317a84e134Smrg 1327a84e134Smrgtypedef struct _LabelClassRec *LabelWidgetClass; 1337a84e134Smrgtypedef struct _LabelRec *LabelWidget; 1347a84e134Smrg 1357a84e134Smrg#endif /* _XawLabel_h */ 136