Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef _XmRepType_h
0024 #define _XmRepType_h
0025 
0026 
0027 #include <Xm/Xm.h>
0028 
0029 
0030 #ifdef __cplusplus
0031 extern "C" {
0032 #endif
0033 
0034 
0035 #define XmREP_TYPE_INVALID      0x1FFF
0036 
0037 typedef unsigned short XmRepTypeId ;
0038 
0039 typedef struct
0040 {   
0041     String rep_type_name ;
0042     String *value_names ;
0043     unsigned char *values ;
0044     unsigned char num_values ;
0045     Boolean reverse_installed ;
0046     XmRepTypeId rep_type_id ;
0047     }XmRepTypeEntryRec, *XmRepTypeEntry, XmRepTypeListRec, *XmRepTypeList ;
0048 
0049 
0050 /********    Public Function Declarations    ********/
0051 
0052 extern XmRepTypeId XmRepTypeRegister( 
0053                         String rep_type,
0054                         String *value_names,
0055                         unsigned char *values,
0056 #if NeedWidePrototypes
0057                         unsigned int num_values) ;
0058 #else
0059                         unsigned char num_values) ;
0060 #endif /* NeedWidePrototypes */
0061 extern void XmRepTypeAddReverse( 
0062 #if NeedWidePrototypes
0063                         int rep_type_id) ;
0064 #else
0065                         XmRepTypeId rep_type_id) ;
0066 #endif /* NeedWidePrototypes */
0067 extern Boolean XmRepTypeValidValue( 
0068 #if NeedWidePrototypes
0069                         int rep_type_id,
0070                         unsigned int test_value,
0071 #else
0072                         XmRepTypeId rep_type_id,
0073                         unsigned char test_value,
0074 #endif /* NeedWidePrototypes */
0075                         Widget enable_default_warning) ;
0076 extern XmRepTypeList XmRepTypeGetRegistered( void ) ;
0077 extern XmRepTypeEntry XmRepTypeGetRecord( 
0078 #if NeedWidePrototypes
0079                         int rep_type_id) ;
0080 #else
0081                         XmRepTypeId rep_type_id) ;
0082 #endif /* NeedWidePrototypes */
0083 extern XmRepTypeId XmRepTypeGetId( 
0084                         String rep_type) ;
0085 extern String * XmRepTypeGetNameList( 
0086 #if NeedWidePrototypes
0087                         int rep_type_id,
0088                         int use_uppercase_format) ;
0089 #else
0090                         XmRepTypeId rep_type_id,
0091                         Boolean use_uppercase_format) ;
0092 #endif /* NeedWidePrototypes */
0093 extern void XmRepTypeInstallTearOffModelConverter( void ) ;
0094 
0095 /********    End Public Function Declarations    ********/
0096 
0097 
0098 
0099 #ifdef __cplusplus
0100 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0101 #endif
0102 
0103 #endif /* _XmRepType_h */
0104 /* DON'T ADD ANYTHING AFTER THIS #endif */