Debian Codegraph @

texk/xdvik/gui/xlwradio.h

raw
1 /* adapted from xlwradio.c in the XEmacs distribution.
2 Changes are Copyright (C) 2002-2004 the xdvik development team
3 Original copyright follows:
4 */
5
6 /* Radio Widget for XEmacs.
7 Copyright (C) 1999 Edward A. Falk
8
9 This file is part of XEmacs.
10
11 XEmacs is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2, or (at your option) any
14 later version.
15
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with XEmacs; see the file COPYING. If not, write to
23 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA. */
25
26 /* Synched up with: Radio.h 1.1 */
27
28 /*
29 * Radio.h - Radio button widget
30 *
31 * Author: Edward A. Falk
32 * [email protected]
33 *
34 * Date: June 30, 1997
35 */
36
37 #ifndef _XawRadio_h
38 #define _XawRadio_h
39
40 #ifndef MOTIF /* entire file */
41
42 /***********************************************************************
43 *
44 * Radio Widget
45 *
46 * The Radio widget is identical to the Toggle widget in behavior but
47 * not in appearance. The Radio widget looks like a small diamond
48 * shaped button to the left of the label.
49 * (SU: changed this to use a bitmap instead.)
50 *
51 ***********************************************************************/
52
53 #include <X11/IntrinsicP.h>
54 #include <X11/StringDefs.h>
55 #include <X11/Intrinsic.h>
56 #include <X11/StringDefs.h>
57 #include <X11/Xos.h>
58 #include <X11/Xaw/Text.h>
59 #include <X11/Xaw/AsciiText.h>
60 #include <X11/Xaw/Toggle.h>
61
62 /* Resources:
63
64 Name Class RepType Default Value
65 ---- ----- ------- -------------
66 radioGroup RadioGroup Widget NULL
67 radioData RadioData Pointer (XPointer) Widget
68 isRadio IsRadio Booelan True
69 state State Boolean Off
70 background Background Pixel XtDefaultBackground
71 bitmap Pixmap Pixmap None
72 border BorderColor Pixel XtDefaultForeground
73 borderWidth BorderWidth Dimension 1
74 callback Callback Pointer NULL
75 cursor Cursor Cursor None
76 destroyCallback Callback Pointer NULL
77 font Font XFontStructx* XtDefaultFont
78 foreground Foreground Pixel XtDefaultForeground
79 height Height Dimension text height
80 highlightThickness Thickness Dimension 2
81 insensitiveBorder sensitive Pixmap Gray
82 internalHeight Height Dimension 2
83 internalWidth Width Dimension 4
84 justify Justify XtJustify XtJustifyCenter
85 label Label String NULL
86 mappedWhenManaged MappedWhenManaged Boolean True
87 resize Resize Boolean True
88 sensitive Sensitive Boolean True
89 width Width Dimension text width
90 x Position Position 0
91 y Position Position 0
92
93 */
94
95 /*
96 * These should be in StringDefs.h but aren't so we will define
97 * them here if they are needed.
98 */
99
100
101 extern WidgetClass radioWidgetClass;
102
103 typedef struct _RadioClassRec *RadioWidgetClass;
104 typedef struct _RadioRec *RadioWidget;
105
106 #define XtNisRadio "isRadio"
107 #define XtCIsRadio "IsRadio"
108
109 /************************************************************
110 *
111 * Public Functions
112 *
113 ************************************************************/
114
115 #endif /* MOTIF */
116
117 #endif /* _XawRadio_h */