|
|
1.1 root 1: /*
2: * $Header: CommandInt.h,v 1.5 87/09/13 23:05:09 newman Exp $
3: */
4:
5: /*
6: * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
7: *
8: * All Rights Reserved
9: *
10: * Permission to use, copy, modify, and distribute this software and its
11: * documentation for any purpose and without fee is hereby granted,
12: * provided that the above copyright notice appear in all copies and that
13: * both that copyright notice and this permission notice appear in
14: * supporting documentation, and that the name of Digital Equipment
15: * Corporation not be used in advertising or publicity pertaining to
16: * distribution of the software without specific, written prior permission.
17: *
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: *
29: * A few definitions to make Command.c easier to read.
30: *
31: */
32:
33: /* Yes, this is gross, but the code will be easier to read.
34: Trust me. */
35: #define ComWx cbw->core.x
36: #define ComWy cbw->core.y
37: #define ComWdepth cbw->core.depth
38: #define ComWwidth cbw->core.width
39: #define ComWheight cbw->core.height
40: #define ComWborder_width cbw->core.border_width;
41: #define ComWbackground cbw->core.background_pixel
42: #define ComWforeground cbw->label.foreground
43: #define ComWfont cbw->label.font
44: #define ComWlabel cbw->label.label
45: #define ComWjustify cbw->label.justify
46: #define ComWinternalWidth cbw->label.internal_width
47: #define ComWinternalHeight cbw->label.internal_height
48: #define ComWlabelX cbw->label.label_x
49: #define ComWlabelY cbw->label.label_y
50: #define ComWlabelWidth cbw->label.label_width
51: #define ComWlabelHeight cbw->label.label_height
52: #define ComWlabelLen cbw->label.label_len
53: #define ComWnormalGC cbw->label.normal_GC
54: #define ComWgrayGC cbw->label.gray_GC
55: #define ComWgrayPixmap cbw->label.gray_pixmap
56: #define ComWsensitive cbw->core.sensitive
57: #define ComWdisplaySensitive cbw->label.display_sensitive
58: #define ComWcallbackList cbw->command.callback_list
59: #define ComWcallback cbw->command.callback
60: #define ComWclosure cbw->command.closure
61: #define ComWhighlightGC cbw->command.highlight_GC
62: #define ComWinverseGC cbw->command.inverse_GC
63: #define ComWinverseTextGC cbw->command.inverse_text_GC
64: #define ComWhighlightThickness cbw->command.highlight_thickness
65: #define ComWset cbw->command.set
66: #define ComWhighlighted cbw->command.highlighted
67: #define ComWdisplaySet cbw->command.display_set
68: #define ComWdisplayHighlighted cbw->command.display_highlighted
69:
70: #define XtCBField(cbw,field) cbw->command.field
71: #define XtLField(cbw,field) cbw->label.field
72: #define XtCField(cbw,field) cbw->core.field
73:
74:
75: static void Initialize();
76: static void Realize();
77: static void Resize();
78: static void Redisplay();
79: static Boolean SetValues();
80: static void Set();
81: static void Notify();
82: static void Unset();
83: static void Highlight();
84: static void Unhighlight();
85: static void Unset();
86: static void Destroy();
87: static void ClassInitialize();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.