Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:24

0001 /***********************************************************
0002 
0003 Copyright 1987, 1988, 1994, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 
0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
0027 
0028                         All Rights Reserved
0029 
0030 Permission to use, copy, modify, and distribute this software and its
0031 documentation for any purpose and without fee is hereby granted,
0032 provided that the above copyright notice appear in all copies and that
0033 both that copyright notice and this permission notice appear in
0034 supporting documentation, and that the name of Digital not be
0035 used in advertising or publicity pertaining to distribution of the
0036 software without specific, written prior permission.
0037 
0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0044 SOFTWARE.
0045 
0046 ******************************************************************/
0047 
0048 #ifndef _XawForm_h
0049 #define _XawForm_h
0050 
0051 #include <X11/Intrinsic.h>
0052 
0053 /* Resources:
0054 
0055  Name            Class      RepType     Default Value
0056  ----            -----      -------     -------------
0057  background      Background     Pixel       XtDefaultBackground
0058  border          BorderColor    Pixel       XtDefaultForeground
0059  borderWidth         BorderWidth    Dimension   1
0060  defaultDistance     Thickness      int     4
0061  destroyCallback     Callback       Pointer     NULL
0062  displayList         DisplayList    XawDisplayList* NULL
0063  height          Height     Dimension   computed at realize
0064  mappedWhenManaged   MappedWhenManaged  Boolean     True
0065  sensitive       Sensitive      Boolean     True
0066  width           Width      Dimension   computed at realize
0067  x           Position       Position    0
0068  y           Position       Position    0
0069 
0070 */
0071 
0072 /* Constraint parameters:
0073 
0074  Name            Class      RepType     Default Value
0075  ----            -----      -------     -------------
0076  bottom          Edge       XtEdgeType  XtRubber
0077  fromHoriz       Widget     Widget      (left edge of form)
0078  fromVert        Widget     Widget      (top of form)
0079  horizDistance       Thickness      int     defaultDistance
0080  left            Edge       XtEdgeType  XtRubber
0081  resizable       Boolean        Boolean     False
0082  right           Edge       XtEdgeType  XtRubber
0083  top             Edge       XtEdgeType  XtRubber
0084  vertDistance        Thickness      int     defaultDistance
0085 
0086 */
0087 
0088 
0089 #ifndef _XtStringDefs_h_
0090 #define XtNtop "top"
0091 #define XtRWidget "Widget"
0092 #endif
0093 
0094 #define XtNdefaultDistance "defaultDistance"
0095 #define XtNbottom "bottom"
0096 #define XtNleft "left"
0097 #define XtNright "right"
0098 #define XtNfromHoriz "fromHoriz"
0099 #define XtNfromVert "fromVert"
0100 #define XtNhorizDistance "horizDistance"
0101 #define XtNvertDistance "vertDistance"
0102 #define XtNresizable "resizable"
0103 
0104 #define XtCEdge "Edge"
0105 #define XtCWidget "Widget"
0106 
0107 typedef enum {
0108     XawChainTop,        /* Keep this edge a constant distance from
0109                    the top of the form */
0110     XawChainBottom,     /* Keep this edge a constant distance from
0111                    the bottom of the form */
0112     XawChainLeft,       /* Keep this edge a constant distance from
0113                    the left of the form */
0114     XawChainRight,      /* Keep this edge a constant distance from
0115                    the right of the form */
0116     XawRubber           /* Keep this edge a proportional distance
0117                    from the edges of the form */
0118 } XawEdgeType;
0119 
0120 #define XtEdgeType XawEdgeType
0121 
0122 #define XtChainTop XawChainTop
0123 #define XtChainBottom XawChainBottom
0124 #define XtChainLeft XawChainLeft
0125 #define XtChainRight XawChainRight
0126 #define XtRubber XawRubber
0127 
0128 #define XtEchainLeft        "chainLeft"
0129 #define XtEchainRight       "chainRight"
0130 #define XtEchainTop     "chainTop"
0131 #define XtEchainBottom      "chainBottom"
0132 #define XtErubber       "rubber"
0133 
0134 #ifndef OLDXAW
0135 #ifndef XawNdisplayList
0136 #define XawNdisplayList "displayList"
0137 #endif
0138 
0139 #ifndef XawCDisplayList
0140 #define XawCDisplayList "DisplayList"
0141 #endif
0142 
0143 #ifndef XawRDisplayList
0144 #define XawRDisplayList "XawDisplayList"
0145 #endif
0146 #endif
0147 
0148 typedef struct _FormClassRec    *FormWidgetClass;
0149 typedef struct _FormRec     *FormWidget;
0150 
0151 extern WidgetClass formWidgetClass;
0152 
0153 _XFUNCPROTOBEGIN
0154 
0155 void XawFormDoLayout
0156 (
0157  Widget     w,
0158 #if NeedWidePrototypes
0159  Bool       do_layout
0160 #else
0161  Boolean    do_layout
0162 #endif
0163  );
0164 
0165 _XFUNCPROTOEND
0166 
0167 #endif /* _XawForm_h */