1 /* Radio Widget for SXEmacs.
2 Copyright (C) 1999 Edward A. Falk
4 This file is part of SXEmacs.
6 SXEmacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 SXEmacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 * RadioP.h - Private definitions for Radio widget
22 * Author: Edward A. Falk
23 * falk@falconer.vip.best.com
33 #include ATHENA_ToggleP_h_
35 /***********************************************************************
37 * Radio Widget Private Data
39 ***********************************************************************/
41 /* Already in Xaw/ToggleP.h, and not used by us.
42 #define streq(a, b) ( strcmp((a), (b)) == 0 )
45 typedef void (*XawDiamondProc) (Widget);
47 void RadioSet(Widget w, XEvent * event, String * params, /* unused */
48 Cardinal * num_params); /* unused */
50 void RadioUnset(Widget w, XEvent * event, String * params, /* unused */
51 Cardinal * num_params); /* unused */
53 /************************************
57 ***********************************/
59 /* New fields for the Radio widget class record */
60 typedef struct _RadioClass {
61 Dimension dsize; /* diamond size */
62 XawDiamondProc drawDiamond;
63 /* TODO: 3-d and xaw-xpm features? */
67 #define XtInheritDrawDiamond ((XawDiamondProc)_XtInherit)
69 /* Full class record declaration */
70 typedef struct _RadioClassRec {
71 CoreClassPart core_class;
72 SimpleClassPart simple_class;
74 ThreeDClassPart threeD_class;
76 LabelClassPart label_class;
77 CommandClassPart command_class;
78 ToggleClassPart toggle_class;
79 RadioClassPart radio_class;
82 extern RadioClassRec radioClassRec;
84 /***************************************
86 * Instance (widget) structure
88 **************************************/
90 /* New fields for the Radio widget record */
93 /* TODO: 3-d and xaw-xpm features? */
99 /* Full widget declaration */
100 typedef struct _RadioRec {
112 #endif /* _XawRadioP_h */