2 * $XConsortium: ToggleP.h,v 1.6 89/12/11 15:23:04 kit Exp $
4 * Copyright 1989 Massachusetts Institute of Technology
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. M.I.T. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 * ToggleP.h - Private definitions for Toggle widget
27 * Author: Chris D. Peterson
29 * kit@expo.lcs.mit.edu
31 * Date: January 12, 1989
38 #include <./Xaw3_1Toggle.h>
39 #include <./Xaw3_1CommandP.h>
41 /***********************************************************************
43 * Toggle Widget Private Data
45 ***********************************************************************/
47 #define streq(a,b) ( strcmp( (a), (b) ) == 0)
49 typedef struct _RadioGroup
{
50 struct _RadioGroup
*prev
, *next
; /* Pointers to other elements in group. */
51 Widget widget
; /* Widget corrosponding to this element. */
54 /************************************
58 ***********************************/
60 /* New fields for the Toggle widget class record */
61 typedef struct _ToggleClass
{
67 /* Full class record declaration */
68 typedef struct _ToggleClassRec
{
69 CoreClassPart core_class
;
70 SimpleClassPart simple_class
;
71 LabelClassPart label_class
;
72 CommandClassPart command_class
;
73 ToggleClassPart toggle_class
;
76 extern ToggleClassRec toggleClassRec
;
78 /***************************************
80 * Instance (widget) structure
82 **************************************/
84 /* New fields for the Toggle widget record */
91 RadioGroup
* radio_group
;
94 /* Full widget declaration */
95 typedef struct _ToggleRec
{
103 #endif /* _XawToggleP_h */