Back to index

tetex-bin  3.0
xlwradio.h
Go to the documentation of this file.
00001 /* adapted from xlwradio.c in the XEmacs distribution.
00002    Changes are Copyright (C) 2002-2004 the xdvik development team
00003    Original copyright follows:
00004 */
00005 
00006 /* Radio Widget for XEmacs.
00007    Copyright (C) 1999 Edward A. Falk
00008 
00009 This file is part of XEmacs.
00010 
00011 XEmacs is free software; you can redistribute it and/or modify it
00012 under the terms of the GNU General Public License as published by the
00013 Free Software Foundation; either version 2, or (at your option) any
00014 later version.
00015 
00016 XEmacs is distributed in the hope that it will be useful, but WITHOUT
00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019 for more details.
00020 
00021 You should have received a copy of the GNU General Public License
00022 along with XEmacs; see the file COPYING.  If not, write to
00023 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00024 Boston, MA 02111-1307, USA.  */
00025 
00026 /* Synched up with: Radio.h 1.1 */
00027 
00028 /*
00029  * Radio.h - Radio button widget
00030  *
00031  * Author: Edward A. Falk
00032  *         falk@falconer.vip.best.com
00033  *  
00034  * Date:   June 30, 1997
00035  */
00036 
00037 #ifndef _XawRadio_h
00038 #define _XawRadio_h
00039 
00040 #include "xdvi-config.h"
00041 
00042 #ifndef MOTIF /* entire file */
00043 
00044 /***********************************************************************
00045  *
00046  * Radio Widget
00047  *
00048  * The Radio widget is identical to the Toggle widget in behavior but
00049  * not in appearance.  The Radio widget looks like a small diamond
00050  * shaped button to the left of the label.
00051  * (SU: changed this to use a bitmap instead.)
00052  *
00053  ***********************************************************************/
00054 
00055 #include <X11/IntrinsicP.h>
00056 #include <X11/StringDefs.h>
00057 #include <X11/Intrinsic.h>
00058 #include <X11/StringDefs.h>
00059 #include <X11/Xos.h>
00060 #include <X11/Xaw/Text.h>
00061 #include <X11/Xaw/AsciiText.h>
00062 #include <X11/Xaw/Toggle.h>
00063 
00064 /* Resources:
00065 
00066  Name                Class         RepType              Default Value
00067  ----                -----         -------              -------------
00068  radioGroup          RadioGroup    Widget        NULL
00069  radioData           RadioData     Pointer              (XPointer) Widget
00070  isRadio             IsRadio              Booelan              True
00071  state               State         Boolean              Off
00072  background          Background    Pixel         XtDefaultBackground
00073  bitmap                     Pixmap        Pixmap        None
00074  border                     BorderColor   Pixel         XtDefaultForeground
00075  borderWidth         BorderWidth   Dimension     1
00076  callback            Callback      Pointer              NULL
00077  cursor                     Cursor        Cursor        None
00078  destroyCallback     Callback      Pointer              NULL
00079  font                Font          XFontStructx* XtDefaultFont
00080  foreground          Foreground    Pixel         XtDefaultForeground
00081  height                     Height        Dimension     text height
00082  highlightThickness  Thickness     Dimension     2
00083  insensitiveBorder   sensitive     Pixmap        Gray
00084  internalHeight             Height        Dimension     2
00085  internalWidth              Width         Dimension     4
00086  justify             Justify              XtJustify     XtJustifyCenter
00087  label               Label         String        NULL
00088  mappedWhenManaged   MappedWhenManaged Boolean   True
00089  resize                     Resize        Boolean              True
00090  sensitive           Sensitive     Boolean              True
00091  width               Width         Dimension     text width
00092  x                   Position      Position      0
00093  y                   Position      Position      0
00094 
00095 */
00096 
00097 /*
00098  * These should be in StringDefs.h but aren't so we will define
00099  * them here if they are needed.
00100  */
00101 
00102 
00103 extern WidgetClass               radioWidgetClass;
00104 
00105 typedef struct _RadioClassRec   *RadioWidgetClass;
00106 typedef struct _RadioRec        *RadioWidget;
00107 
00108 #define XtNisRadio "isRadio"
00109 #define XtCIsRadio "IsRadio"
00110 
00111 /************************************************************
00112  * 
00113  * Public Functions
00114  *
00115  ************************************************************/
00116 
00117 #endif /* MOTIF */
00118 
00119 #endif /* _XawRadio_h */