|
|
1.1 root 1: /* $Header: Form.h,v 1.1 87/09/11 07:59:26 toddb Exp $ */
2: /*
3: * sccsid: @(#)Form.h 1.4 5/18/87
4: */
5:
6: /*
7: * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
8: *
9: * All Rights Reserved
10: *
11: * Permission to use, copy, modify, and distribute this software and its
12: * documentation for any purpose and without fee is hereby granted,
13: * provided that the above copyright notice appear in all copies and that
14: * both that copyright notice and this permission notice appear in
15: * supporting documentation, and that the name of Digital Equipment
16: * Corporation not be used in advertising or publicity pertaining to
17: * distribution of the software without specific, written prior permission.
18: *
19: * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
20: * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
21: * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
22: * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
23: * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24: * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
25: * SOFTWARE.
26: */
27:
28: #ifndef _Form_h
29: #define _Form_h
30:
31: /***********************************************************************
32: *
33: * Form Widget
34: *
35: ***********************************************************************/
36:
37: #define XtNname "name"
38: #define XtNx "x"
39: #define XtNy "y"
40: #define XtNwindow "window"
41: #define XtNborderWidth "borderWidth"
42: #define XtNwidth "width"
43: #define XtNheight "height"
44: #define XtNbackground "background"
45: #define XtNborder "border"
46: #define XtNdefaultDistance "defaultDistance"
47: #define XtNtop "top"
48: #define XtNbottom "bottom"
49: #define XtNleft "left"
50: #define XtNright "right"
51: #define XtNfromHoriz "fromHoriz"
52: #define XtNfromVert "fromVert"
53: #define XtNhorizDistance "horizDistance"
54: #define XtNvertDistance "vertDistance"
55: #define XtNresizable "resizable"
56:
57: #define XtCEdge "Edge"
58:
59: #ifndef _XtEdgeType_e
60: #define _XtEdgeType_e
61: typedef enum {
62: XtChainTop, /* Keep this edge a constant distance from
63: the top of the form */
64: XtChainBottom, /* Keep this edge a constant distance from
65: the bottom of the form */
66: XtChainLeft, /* Keep this edge a constant distance from
67: the left of the form */
68: XtChainRight, /* Keep this edge a constant distance from
69: the right of the form */
70: XtRubber, /* Keep this edge a proportional distance
71: from the edges of the form*/
72: } XtEdgeType;
73: #endif _XtEdgeType_e
74:
75:
76: #ifndef _XtJustify_e
77: #define _XtJustify_e
78: typedef enum {
79: XtjustifyLeft, /* justify text to left side of button */
80: XtjustifyCenter, /* justify text in center of button */
81: XtjustifyRight /* justify text to right side of button */
82: } XtJustify;
83: #endif _XtJustify_e
84:
85:
86: extern Window XtFormCreate(); /* parent, args, argCount */
87: /* Window parent; */
88: /* ArgList args; */
89: /* int argCount; */
90:
91: extern void XtFormGetValues(); /* dpy, w, args, argCount */
92: /* Display *dpy; */
93: /* Window w; */
94: /* ArgList args; */
95: /* int argCount; */
96:
97: extern void XtFormSetValues(); /* dpy, w, args, argCount */
98: /* Display *dpy; */
99: /* Window w; */
100: /* ArgList args; */
101: /* int argCount; */
102:
103: extern void XtFormAddWidget(); /* mywin, w, args, argCount */
104: /* Window mywin, w; */
105: /* ArgList args; */
106: /* int argCount; */
107:
108: extern void XtFormRemoveWidget(); /* mywin, w */
109: /* Window mywin, w; */
110:
111: extern void XtFormDoLayout(); /* dpy, mywin, doit */
112: /* Display *dpy; */
113: /* Window mywin; */
114: /* Boolean doit; */
115:
116: #endif _Form_h
117: /* DON'T ADD STUFF AFTER THIS #endif */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.