rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1CommandP.h
blob7b99719b22ac833fd9f3ff8b098470cc6a0bc0b7
1 /*
2 * $XConsortium: CommandP.h,v 1.29 89/12/07 10:50:03 rws Exp $
3 */
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 All Rights Reserved
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
28 ******************************************************************/
30 /*
31 * CommandP.h - Private definitions for Command widget
35 #ifndef _XawCommandP_h
36 #define _XawCommandP_h
38 #include <./Xaw3_1Command.h>
39 #include <./Xaw3_1LabelP.h>
41 /***********************************************************************
43 * Command Widget Private Data
45 ***********************************************************************/
47 typedef enum {
48 HighlightNone, /* Do not highlight. */
49 HighlightWhenUnset, /* Highlight only when unset, this is
50 to preserve current command widget
51 functionality. */
52 HighlightAlways /* Always highlight, lets the toggle widget
53 and other subclasses do the right thing. */
54 } XtCommandHighlight;
56 /************************************
58 * Class structure
60 ***********************************/
63 /* New fields for the Command widget class record */
64 typedef struct _CommandClass
66 int makes_compiler_happy; /* not used */
67 } CommandClassPart;
69 /* Full class record declaration */
70 typedef struct _CommandClassRec {
71 CoreClassPart core_class;
72 SimpleClassPart simple_class;
73 LabelClassPart label_class;
74 CommandClassPart command_class;
75 } CommandClassRec;
77 extern CommandClassRec commandClassRec;
79 /***************************************
81 * Instance (widget) structure
83 **************************************/
85 /* New fields for the Command widget record */
86 typedef struct {
87 /* resources */
88 Dimension highlight_thickness;
89 XtCallbackList callbacks;
91 /* private state */
92 Pixmap gray_pixmap;
93 GC normal_GC;
94 GC inverse_GC;
95 Boolean set;
96 XtCommandHighlight highlighted;
97 #ifdef SHAPE
98 /* more resources */
99 int shape_style;
100 Dimension corner_round;
101 #endif
102 } CommandPart;
105 /* XtEventsPtr eventTable;*/
108 /* Full widget declaration */
109 typedef struct _CommandRec {
110 CorePart core;
111 SimplePart simple;
112 LabelPart label;
113 CommandPart command;
114 } CommandRec;
116 #endif /* _XawCommandP_h */