00001 /* $XConsortium: Command.h,v 1.29 94/04/17 20:11:59 kaleb 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 _XawCommand_h 00052 #define _XawCommand_h 00053 00054 #include <X11/Xaw3d/Label.h> 00055 00056 /* Command widget resources: 00057 00058 Name Class RepType Default Value 00059 ---- ----- ------- ------------- 00060 accelerators Accelerators AcceleratorTable NULL 00061 ancestorSensitive AncestorSensitive Boolean True 00062 background Background Pixel XtDefaultBackground 00063 backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap 00064 bitmap Pixmap Pixmap None 00065 borderColor BorderColor Pixel XtDefaultForeground 00066 borderPixmap Pixmap Pixmap XtUnspecifiedPixmap 00067 borderWidth BorderWidth Dimension 1 00068 callback Callback XtCallbackList NULL 00069 colormap Colormap Colormap parent's colormap 00070 cornerRoundPercent CornerRoundPercent Dimension 25 00071 cursor Cursor Cursor None 00072 cursorName Cursor String NULL 00073 depth Depth int parent's depth 00074 destroyCallback Callback XtCallbackList NULL 00075 encoding Encoding UnsignedChar XawTextEncoding8bit 00076 font Font XFontStruct* XtDefaultFont 00077 foreground Foreground Pixel XtDefaultForeground 00078 height Height Dimension text height 00079 highlightThickness Thickness Dimension 0 if shaped, else 2 00080 insensitiveBorder Insensitive Pixmap Gray 00081 internalHeight Height Dimension 2 00082 internalWidth Width Dimension 4 00083 justify Justify XtJustify XtJustifyCenter 00084 label Label String NULL 00085 leftBitmap LeftBitmap Pixmap None 00086 mappedWhenManaged MappedWhenManaged Boolean True 00087 pointerColor Foreground Pixel XtDefaultForeground 00088 pointerColorBackground Background Pixel XtDefaultBackground 00089 resize Resize Boolean True 00090 screen Screen Screen parent's Screen 00091 sensitive Sensitive Boolean True 00092 shapeStyle ShapeStyle ShapeStyle Rectangle 00093 translations Translations TranslationTable see doc or source 00094 width Width Dimension text width 00095 x Position Position 0 00096 y Position Position 0 00097 00098 */ 00099 00100 #define XtNhighlightThickness "highlightThickness" 00101 00102 #define XtNshapeStyle "shapeStyle" 00103 #define XtCShapeStyle "ShapeStyle" 00104 #define XtRShapeStyle "ShapeStyle" 00105 #define XtNcornerRoundPercent "cornerRoundPercent" 00106 #define XtCCornerRoundPercent "CornerRoundPercent" 00107 00108 #define XawShapeRectangle XmuShapeRectangle 00109 #define XawShapeOval XmuShapeOval 00110 #define XawShapeEllipse XmuShapeEllipse 00111 #define XawShapeRoundedRectangle XmuShapeRoundedRectangle 00112 00113 extern WidgetClass commandWidgetClass; 00114 00115 typedef struct _CommandClassRec *CommandWidgetClass; 00116 typedef struct _CommandRec *CommandWidget; 00117 00118 #endif /* _XawCommand_h */
1.5.1