1 /* $XConsortium: ToggleP.h,v 1.9 94/04/17 20:13:19 converse Exp $ */
5 Copyright (c) 1989 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
31 * ToggleP.h - Private definitions for Toggle widget
33 * Author: Chris D. Peterson
35 * kit@expo.lcs.mit.edu
37 * Date: January 12, 1989
44 #include <X11/Xaw/Toggle.h>
45 #include <X11/Xaw/CommandP.h>
47 /***********************************************************************
49 * Toggle Widget Private Data
51 ***********************************************************************/
53 #define streq(a, b) ( strcmp((a), (b)) == 0 )
55 typedef struct _RadioGroup
{
56 struct _RadioGroup
*prev
, *next
; /* Pointers to other elements in group. */
57 Widget widget
; /* Widget corrosponding to this element. */
60 /************************************
64 ***********************************/
66 /* New fields for the Toggle widget class record */
67 typedef struct _ToggleClass
{
73 /* Full class record declaration */
74 typedef struct _ToggleClassRec
{
75 CoreClassPart core_class
;
76 SimpleClassPart simple_class
;
77 LabelClassPart label_class
;
78 CommandClassPart command_class
;
79 ToggleClassPart toggle_class
;
82 extern ToggleClassRec toggleClassRec
;
84 /***************************************
86 * Instance (widget) structure
88 **************************************/
90 /* New fields for the Toggle widget record */
97 RadioGroup
* radio_group
;
100 /* Full widget declaration */
101 typedef struct _ToggleRec
{
109 #endif /* _XawToggleP_h */