rebuild geeqie
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1ToggleP.h
blob68c665e6050d731037a7a54559df30082c78b18b
1 /*
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.
24 /*
25 * ToggleP.h - Private definitions for Toggle widget
27 * Author: Chris D. Peterson
28 * MIT X Consortium
29 * kit@expo.lcs.mit.edu
31 * Date: January 12, 1989
35 #ifndef _XawToggleP_h
36 #define _XawToggleP_h
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. */
52 } RadioGroup;
54 /************************************
56 * Class structure
58 ***********************************/
60 /* New fields for the Toggle widget class record */
61 typedef struct _ToggleClass {
62 XtActionProc Set;
63 XtActionProc Unset;
64 XtPointer extension;
65 } ToggleClassPart;
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;
74 } ToggleClassRec;
76 extern ToggleClassRec toggleClassRec;
78 /***************************************
80 * Instance (widget) structure
82 **************************************/
84 /* New fields for the Toggle widget record */
85 typedef struct {
86 /* resources */
87 Widget widget;
88 caddr_t radio_data;
90 /* private data */
91 RadioGroup * radio_group;
92 } TogglePart;
94 /* Full widget declaration */
95 typedef struct _ToggleRec {
96 CorePart core;
97 SimplePart simple;
98 LabelPart label;
99 CommandPart command;
100 TogglePart toggle;
101 } ToggleRec;
103 #endif /* _XawToggleP_h */