Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef _XmExtP_h_
0026 #define _XmExtP_h_
0027 
0028 #include <Xm/Ext.h>
0029 
0030 /************************************************************
0031 *   INCLUDE FILES
0032 *************************************************************/
0033 
0034 #if defined(hpux) && OS_MAJOR_VERSION < 10
0035 #include <nl_ctype.h>
0036 #endif
0037 
0038 /************************************************************
0039 *   TYPEDEFS AND DEFINES
0040 *************************************************************/
0041 
0042 #if defined(__cplusplus)
0043 extern "C" {
0044 #endif
0045 
0046 typedef void (*XmVoidFunc)(void);
0047 typedef int (*XmIntFunc)(void);
0048 typedef unsigned int (*XmUnsignedIntFunc)(void);
0049 
0050 extern String xm_std_filter[], xm_std_constraint_filter[];
0051 
0052 /************************************************************
0053 *   MACROS
0054 *************************************************************/
0055 
0056 #define streq(a, b) (((a) != NULL) && ((b) != NULL) && (strcmp((a), (b)) == 0))
0057 
0058 #define ForAllChildren(w, childP)                                          \
0059   for ( (childP) = (w)->composite.children ;                               \
0060         (childP) < (w)->composite.children + (w)->composite.num_children ; \
0061         (childP)++ )
0062 
0063 /*
0064  * Math Stuff 
0065  *
0066  * Some Systems define MIN and MAX so I have to undef them before I make
0067  * my own definitions.
0068  */
0069 
0070 #define XM_ICON_BUTTON_CLASS_NAME ("XmIconButton")
0071 #define XM_EXT_LIST_CLASS_NAME ("XmExtendedList")
0072 #define XM_ILIST_CLASS_NAME ("XmIList")
0073 #define XM_EXT_18_LIST_CLASS_NAME ("XmExtended18List")
0074 #define XM_I18LIST_CLASS_NAME ("XmI18List")
0075 
0076 
0077 /************************************************************
0078 *   GLOBAL DECLARATIONS
0079 *************************************************************/
0080 
0081    
0082 
0083 void XmResolveAllPartOffsets64(WidgetClass, XmOffsetPtr*, XmOffsetPtr*);
0084 void _XmMoveWidget(Widget, Position, Position);
0085 void _XmResizeWidget(Widget, Dimension, Dimension, Dimension);
0086 void _XmConfigureWidget(Widget, Position, Position, 
0087                         Dimension, Dimension, Dimension);
0088 
0089 XtGeometryResult _XmRequestNewSize(Widget, Boolean, Dimension,
0090                                    Dimension,
0091                                    Dimension *, Dimension *);
0092 
0093 XtGeometryResult _XmHWQuery(Widget, XtWidgetGeometry*, XtWidgetGeometry *);
0094 
0095 void _XmGetFocus(Widget, XEvent *, String *, Cardinal *);
0096 
0097 void _XmFilterArgs(ArgList, Cardinal, String *,
0098                    ArgList *, Cardinal *);
0099 
0100 void _XmSetValuesOnChildren(Widget, ArgList, Cardinal);
0101 
0102 Boolean _XmGadgetWarning(Widget);
0103 
0104 String _XmGetMBStringFromXmString(XmString);
0105 
0106 /*
0107  * Context Managment Routines.
0108  */
0109     
0110 void _XmSetContextData(Widget, XContext, XtPointer);
0111 void _XmDeleteContextData(Widget, XContext);
0112 Boolean _XmGetContextData(Widget, XContext, XtPointer *);
0113 Boolean _XmUtilIsSubclassByNameQ(Widget, XrmQuark);
0114 void _XmInitialIzeConverters(Widget);
0115 
0116 void _XmExtHighlightBorder(Widget);
0117 void _XmExtUnhighlightBorder(Widget);
0118 
0119 
0120 /************************************************************
0121 *   EXTERNAL DECLARATIONS
0122 *************************************************************/
0123 
0124 #if defined(__cplusplus)
0125 }
0126 #endif
0127 
0128 #endif