Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:29

0001 /* 
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022 */ 
0023 /***********************************************************************
0024  *
0025  * Toggle Widget
0026  *
0027  ***********************************************************************/
0028 #ifndef _XmToggle_h
0029 #define _XmToggle_h
0030 
0031 #include <Xm/Xm.h>
0032 
0033 #ifdef __cplusplus
0034 extern "C" {
0035 #endif
0036 
0037 externalref WidgetClass xmToggleButtonWidgetClass;
0038 
0039 typedef struct _XmToggleButtonClassRec *XmToggleButtonWidgetClass;
0040 typedef struct _XmToggleButtonRec      *XmToggleButtonWidget;
0041 
0042 /*fast subclass define */
0043 #ifndef XmIsToggleButton
0044 #define XmIsToggleButton(w)     XtIsSubclass(w, xmToggleButtonWidgetClass)
0045 #endif /* XmIsToggleButton */
0046 
0047 
0048 /********    Public Function Declarations    ********/
0049 
0050 Boolean XmToggleButtonGetState( 
0051                         Widget w);
0052 void XmToggleButtonSetState( 
0053                         Widget w,
0054 #if NeedWidePrototypes
0055                         int newstate,
0056                         int notify);
0057 #else
0058                         Boolean newstate,
0059                         Boolean notify);
0060 #endif /* NeedWidePrototypes */
0061 
0062 Boolean XmToggleButtonSetValue(
0063         Widget w,
0064 #if NeedWidePrototypes
0065         int newstate,
0066         int notify );
0067 #else
0068         XmToggleButtonState newstate,
0069         Boolean notify );
0070 #endif /* NeedWidePrototypes */
0071 Widget XmCreateToggleButton( 
0072                         Widget parent,
0073                         char *name,
0074                         Arg *arglist,
0075                         Cardinal argCount);
0076 Widget XmVaCreateToggleButton(
0077                         Widget parent,
0078                         char *name,
0079                         ...);
0080 Widget XmVaCreateManagedToggleButton(
0081                         Widget parent,
0082                         char *name,
0083                         ...);
0084 /********    End Public Function Declarations    ********/
0085 
0086 
0087 #ifdef __cplusplus
0088 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0089 #endif
0090 
0091 #endif /* _XmToggle_h */
0092 /* DON'T ADD ANYTHING AFTER THIS #endif */