| 1 |
/* @(#)utype.h 17.1 (ESO-IPG) 01/25/02 17:26:05 */ |
| 2 |
/*--------------------------------------------------------------------- |
| 3 |
* $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $ |
| 4 |
*--------------------------------------------------------------------- |
| 5 |
* |
| 6 |
* |
| 7 |
* Copyright (c) 1992, Visual Edge Software Ltd. |
| 8 |
* |
| 9 |
* ALL RIGHTS RESERVED. Permission to use, copy, modify, and |
| 10 |
* distribute this software and its documentation for any purpose |
| 11 |
* and without fee is hereby granted, provided that the above |
| 12 |
* copyright notice appear in all copies and that both that |
| 13 |
* copyright notice and this permission notice appear in supporting |
| 14 |
* documentation, and that the name of Visual Edge Software not be |
| 15 |
* used in advertising or publicity pertaining to distribution of |
| 16 |
* the software without specific, written prior permission. The year |
| 17 |
* included in the notice is the year of the creation of the work. |
| 18 |
*--------------------------------------------------------------------- |
| 19 |
* File_Description_Section |
| 20 |
*-------------------------------------------------------------------*/ |
| 21 |
|
| 22 |
#ifndef _UTYPE_INCLUDED |
| 23 |
#define _UTYPE_INCLUDED |
| 24 |
|
| 25 |
/*--- include files ---*/ |
| 26 |
#include "uxproto.h" |
| 27 |
#include <X11/Intrinsic.h> |
| 28 |
|
| 29 |
/*--- macro symbolic constants ---*/ |
| 30 |
/* Defined constants used by the convertor functions */ |
| 31 |
#define TO_UIMX 0 |
| 32 |
#define TO_X 1 |
| 33 |
|
| 34 |
/*--- macro functions ---*/ |
| 35 |
|
| 36 |
/*--- types ---*/ |
| 37 |
typedef void (* func_ptr)(); |
| 38 |
#ifdef RUNTIME |
| 39 |
typedef void (*voidFunction)(); |
| 40 |
typedef Cardinal (*cardFunction)(); |
| 41 |
typedef Visual *visualPointer; |
| 42 |
#define XmNmsgDialogType "msgDialogType" |
| 43 |
#endif |
| 44 |
|
| 45 |
/*--- external functions ---*/ |
| 46 |
/* Declarations of functions in utype.c and enum_type.c and */ |
| 47 |
extern void UxUtype_init UXPROTO(( void )); |
| 48 |
|
| 49 |
extern int UxUimx_to_x UXPROTO(( swidget, |
| 50 |
int, char **, |
| 51 |
int, char *, |
| 52 |
int )); |
| 53 |
|
| 54 |
extern int UxCallConverter UXPROTO(( swidget, |
| 55 |
int, char **, |
| 56 |
int, char *, |
| 57 |
int )); |
| 58 |
|
| 59 |
extern int UxStringToIntEnum UXPROTO(( swidget, |
| 60 |
char **, int *, |
| 61 |
int, |
| 62 |
int )); |
| 63 |
|
| 64 |
extern int UxStringToCharEnum UXPROTO(( swidget, |
| 65 |
char **, unsigned char *, |
| 66 |
int, |
| 67 |
int )); |
| 68 |
|
| 69 |
extern void UxUpdateRotatingBuffer UXPROTO((int *BufIndex, |
| 70 |
char ***RingBuffer, |
| 71 |
char *Val, |
| 72 |
func_ptr free_func)); |
| 73 |
|
| 74 |
/* Declarations of functions in user-misc.c */ |
| 75 |
extern void UxFreeXValue UXPROTO(( swidget, |
| 76 |
char *, |
| 77 |
XtArgVal)); |
| 78 |
|
| 79 |
extern void UxClearText UXPROTO(( swidget )); |
| 80 |
|
| 81 |
extern void UxFreeClientDataCB UXPROTO ((Widget _wgt, |
| 82 |
XtPointer client_data, |
| 83 |
XtPointer _call_data)); |
| 84 |
|
| 85 |
/*--- external variables ---*/ |
| 86 |
|
| 87 |
/********************************************************************** |
| 88 |
* Uimx_to_X type index declarations * |
| 89 |
* The following variables get storage defined for them in utypevars.c * |
| 90 |
**********************************************************************/ |
| 91 |
|
| 92 |
/* --------- UIMX types --------- */ |
| 93 |
|
| 94 |
extern int UxUT_float; |
| 95 |
extern int UxUT_int; |
| 96 |
extern int UxUT_short; |
| 97 |
extern int UxUT_string; |
| 98 |
extern int UxUT_vhandle; |
| 99 |
extern int UxUT_char; |
| 100 |
extern int UxUT_long; |
| 101 |
extern int UxUT_stringTable; |
| 102 |
extern int UxUT_cardFunction; |
| 103 |
extern int UxUT_voidFunction; |
| 104 |
extern int UxUT_visualPointer; |
| 105 |
extern int UxUT_XmTextSource; |
| 106 |
|
| 107 |
/* --------- X types --------- */ |
| 108 |
|
| 109 |
/* Non-enumerated xtypes (in alphabetic order, ignoring case) */ |
| 110 |
|
| 111 |
extern int UxXT_Accelerators; |
| 112 |
extern int UxXT_Atom; |
| 113 |
extern int UxXT_bitmap; |
| 114 |
extern int UxXT_BorderPixmap; |
| 115 |
extern int UxXT_BottomShadowPixmap; |
| 116 |
extern int UxXT_char; |
| 117 |
extern int UxXT_Colormap; |
| 118 |
extern int UxXT_CreatePopupChildProc; |
| 119 |
extern int UxXT_Dimension; |
| 120 |
extern int UxXT_DirListItems; |
| 121 |
extern int UxXT_DirSearchProc; |
| 122 |
extern int UxXT_FileListItems; |
| 123 |
extern int UxXT_FileSearchProc; |
| 124 |
extern int UxXT_FontStruct; |
| 125 |
extern int UxXT_HighlightPixmap; |
| 126 |
extern int UxXT_HistoryItems; |
| 127 |
extern int UxXT_InsertPosition; |
| 128 |
extern int UxXT_int; |
| 129 |
extern int UxXT_Items; |
| 130 |
extern int UxXT_KeySym; |
| 131 |
extern int UxXT_ListItems; |
| 132 |
extern int UxXT_StringOrNull; |
| 133 |
extern int UxXT_Pixel; |
| 134 |
extern int UxXT_Pixmap; |
| 135 |
extern int UxXT_Pointer; |
| 136 |
extern int UxXT_Position; |
| 137 |
extern int UxXT_QualifySearchDataProc; |
| 138 |
extern int UxXT_SelectedItems; |
| 139 |
extern int UxXT_short; |
| 140 |
extern int UxXT_String; |
| 141 |
extern int UxXT_StringTable; |
| 142 |
extern int UxXT_TopShadowPixmap; |
| 143 |
extern int UxXT_Translations; |
| 144 |
extern int UxXT_ValueWcs; |
| 145 |
extern int UxXT_VisualPointer; |
| 146 |
extern int UxXT_Widget; |
| 147 |
extern int UxXT_WidgetClass; |
| 148 |
extern int UxXT_WidgetList; |
| 149 |
extern int UxXT_Window; |
| 150 |
extern int UxXT_XID; |
| 151 |
extern int UxXT_XmFontList; |
| 152 |
extern int UxXT_XmString; |
| 153 |
extern int UxXT_XmTextSource; |
| 154 |
|
| 155 |
/* Enumerated xtypes (in alphabetic order) */ |
| 156 |
|
| 157 |
extern int UxXT_Alignment; |
| 158 |
extern int UxXT_ArrowDirection; |
| 159 |
extern int UxXT_AudibleWarning; |
| 160 |
extern int UxXT_AttachmentType; |
| 161 |
extern int UxXT_Bool; |
| 162 |
extern int UxXT_Boolean; |
| 163 |
extern int UxXT_ChildType; |
| 164 |
extern int UxXT_ChildPlacement; |
| 165 |
extern int UxXT_ChildVerticalAlignment; |
| 166 |
extern int UxXT_CommandWindowLocation; |
| 167 |
extern int UxXT_EntryVerticalAlignment; |
| 168 |
extern int UxXT_DefaultButtonType; |
| 169 |
extern int UxXT_DeleteResponse; |
| 170 |
extern int UxXT_DialogStyle; |
| 171 |
extern int UxXT_DialogType; |
| 172 |
extern int UxXT_EditMode; |
| 173 |
extern int UxXT_FileTypeMask; |
| 174 |
extern int UxXT_IndicatorType; |
| 175 |
extern int UxXT_InitialWindowState; |
| 176 |
extern int UxXT_KeyboardFocusPolicy; |
| 177 |
extern int UxXT_LabelType; |
| 178 |
extern int UxXT_ListSizePolicy; |
| 179 |
extern int UxXT_MsgDialogType; |
| 180 |
extern int UxXT_MultiClick; |
| 181 |
extern int UxXT_MwmInputMode; |
| 182 |
extern int UxXT_NavigationType; |
| 183 |
extern int UxXT_Orientation; |
| 184 |
extern int UxXT_Packing; |
| 185 |
extern int UxXT_ProcessingDirection; |
| 186 |
extern int UxXT_ResizePolicy; |
| 187 |
extern int UxXT_RowColumnType; |
| 188 |
extern int UxXT_ScrollBarDisplayPolicy; |
| 189 |
extern int UxXT_ScrollBarPlacement; |
| 190 |
extern int UxXT_ScrollingPolicy; |
| 191 |
extern int UxXT_SelectionPolicy; |
| 192 |
extern int UxXT_SelectionArray; |
| 193 |
extern int UxXT_SeparatorType; |
| 194 |
extern int UxXT_ShadowType; |
| 195 |
extern int UxXT_StringDirection; |
| 196 |
extern int UxXT_TearOffModel; |
| 197 |
extern int UxXT_UnitType; |
| 198 |
extern int UxXT_VisualPolicy; |
| 199 |
extern int UxXT_WinGravity; |
| 200 |
|
| 201 |
#endif /* _UTYPE_INCLUDED */ |