Label.h

Go to the documentation of this file.
00001 /* $XConsortium: Label.h,v 1.34 94/04/17 20:12:13 rws Exp $ */
00002 
00003 /***********************************************************
00004 
00005 Copyright (c) 1987, 1988, 1994  X Consortium
00006 
00007 Permission is hereby granted, free of charge, to any person obtaining a copy
00008 of this software and associated documentation files (the "Software"), to deal
00009 in the Software without restriction, including without limitation the rights
00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011 copies of the Software, and to permit persons to whom the Software is
00012 furnished to do so, subject to the following conditions:
00013 
00014 The above copyright notice and this permission notice shall be included in
00015 all copies or substantial portions of the Software.
00016 
00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023 
00024 Except as contained in this notice, the name of the X Consortium shall not be
00025 used in advertising or otherwise to promote the sale, use or other dealings
00026 in this Software without prior written authorization from the X Consortium.
00027 
00028 
00029 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
00030 
00031                         All Rights Reserved
00032 
00033 Permission to use, copy, modify, and distribute this software and its 
00034 documentation for any purpose and without fee is hereby granted, 
00035 provided that the above copyright notice appear in all copies and that
00036 both that copyright notice and this permission notice appear in 
00037 supporting documentation, and that the name of Digital not be
00038 used in advertising or publicity pertaining to distribution of the
00039 software without specific, written prior permission.  
00040 
00041 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
00042 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
00043 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
00044 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00045 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
00046 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00047 SOFTWARE.
00048 
00049 ******************************************************************/
00050 
00051 #ifndef _XawLabel_h
00052 #define _XawLabel_h
00053 
00054 /***********************************************************************
00055  *
00056  * Label Widget
00057  *
00058  ***********************************************************************/
00059 
00060 #include <X11/Xaw3d/Simple.h>
00061 
00062 /* Resources:
00063 
00064  Name                Class              RepType         Default Value
00065  ----                -----              -------         -------------
00066  background          Background         Pixel           XtDefaultBackground
00067  bitmap              Pixmap             Pixmap          None
00068  border              BorderColor        Pixel           XtDefaultForeground
00069  borderWidth         BorderWidth        Dimension       1
00070  cursor              Cursor             Cursor          None
00071  cursorName          Cursor             String          NULL
00072  destroyCallback     Callback           XtCallbackList  NULL
00073  encoding            Encoding           unsigned char   XawTextEncoding8bit
00074  font                Font               XFontStruct*    XtDefaultFont
00075  foreground          Foreground         Pixel           XtDefaultForeground
00076  height              Height             Dimension       text height
00077  insensitiveBorder   Insensitive        Pixmap          Gray
00078  internalHeight      Height             Dimension       2
00079  internalWidth       Width              Dimension       4
00080  justify             Justify            XtJustify       XtJustifyCenter
00081  label               Label              String          NULL
00082  leftBitmap          LeftBitmap         Pixmap          None
00083  mappedWhenManaged   MappedWhenManaged  Boolean         True
00084  pointerColor        Foreground         Pixel           XtDefaultForeground
00085  pointerColorBackground Background      Pixel           XtDefaultBackground
00086  resize              Resize             Boolean         True
00087  sensitive           Sensitive          Boolean         True
00088  width               Width              Dimension       text width
00089  x                   Position           Position        0
00090  y                   Position           Position        0
00091 
00092 */
00093 
00094 #define XawTextEncoding8bit     0
00095 #define XawTextEncodingChar2b   1
00096 
00097 #define XtNleftBitmap "leftBitmap"
00098 #define XtCLeftBitmap "LeftBitmap"
00099 #define XtNencoding "encoding"
00100 #define XtCEncoding "Encoding"
00101 
00102 #ifndef XtNfontSet
00103 #define XtNfontSet "fontSet"
00104 #endif
00105 
00106 #ifndef XtCFontSet
00107 #define XtCFontSet "FontSet"
00108 #endif
00109 
00110 #ifndef _XtStringDefs_h_
00111 #define XtNbitmap "bitmap"
00112 #define XtNforeground "foreground"
00113 #define XtNlabel "label"
00114 #define XtNfont "font"
00115 #define XtNinternalWidth "internalWidth"
00116 #define XtNinternalHeight "internalHeight"
00117 #define XtNresize "resize"
00118 #define XtCResize "Resize"
00119 #define XtCBitmap "Bitmap"
00120 #endif
00121 
00122 /* Class record constants */
00123 
00124 extern WidgetClass labelWidgetClass;
00125 
00126 typedef struct _LabelClassRec *LabelWidgetClass;
00127 typedef struct _LabelRec      *LabelWidget;
00128 
00129 #endif /* _XawLabel_h */

Generated on Sun Mar 4 15:03:55 2007 for Scilab [trunk] by  doxygen 1.5.1