2 * $XConsortium: CommandP.h,v 1.29 89/12/07 10:50:03 rws Exp $
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
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
28 ******************************************************************/
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 ***********************************************************************/
48 HighlightNone
, /* Do not highlight. */
49 HighlightWhenUnset
, /* Highlight only when unset, this is
50 to preserve current command widget
52 HighlightAlways
/* Always highlight, lets the toggle widget
53 and other subclasses do the right thing. */
56 /************************************
60 ***********************************/
63 /* New fields for the Command widget class record */
64 typedef struct _CommandClass
66 int makes_compiler_happy
; /* not used */
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
;
77 extern CommandClassRec commandClassRec
;
79 /***************************************
81 * Instance (widget) structure
83 **************************************/
85 /* New fields for the Command widget record */
88 Dimension highlight_thickness
;
89 XtCallbackList callbacks
;
96 XtCommandHighlight highlighted
;
100 Dimension corner_round
;
105 /* XtEventsPtr eventTable;*/
108 /* Full widget declaration */
109 typedef struct _CommandRec
{
116 #endif /* _XawCommandP_h */