Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef _XmDataF_h
0025 #define _XmDataF_h
0026 
0027 #include <Xm/Xm.h>
0028 #include <Xm/TextF.h>
0029 #include <Xm/Ext.h>
0030 
0031 #if defined(__cplusplus)
0032 extern "C" {
0033 #endif
0034 
0035 typedef struct _XmDataFieldClassRec    *XmDataFieldWidgetClass;
0036 typedef struct _XmDataFieldRec         *XmDataFieldWidget;
0037 
0038 /*      Function Name: XmCreateDataField
0039  *      Description: Creation Routine for UIL and ADA.
0040  *      Arguments: parent - the parent widget.
0041  *                 name - the name of the widget.
0042  *                 args, num_args - the number and list of args.
0043  *      Returns: The Widget created.
0044  */
0045 
0046 Widget XmCreateDataField(
0047 #ifndef _NO_PROTO
0048 Widget, String, ArgList, Cardinal
0049 #endif
0050 );
0051 
0052 /*
0053  * Variable argument list functions
0054  */
0055 
0056 extern Widget XmVaCreateDataField(
0057                         Widget parent,
0058                         char *name,
0059                         ...);
0060 extern Widget XmVaCreateManagedDataField(
0061                         Widget parent,
0062                         char *name,
0063                         ...);
0064 
0065 Boolean _XmDataFieldReplaceText(
0066 #ifndef _NO_PROTO
0067 XmDataFieldWidget, XEvent*, XmTextPosition, XmTextPosition, char*, int, Boolean
0068 #endif
0069 );
0070 
0071 void XmDataFieldSetString(
0072 #ifndef _NO_PROTO
0073 Widget, char*
0074 #endif
0075 );
0076 
0077 extern char * XmDataFieldGetString(
0078 #ifndef _NO_PROTO
0079 Widget
0080 #endif
0081 );
0082 
0083 extern wchar_t * XmDataFieldGetStringWcs(
0084 #ifndef _NO_PROTO
0085 Widget
0086 #endif
0087 );
0088 
0089 void _XmDataFieldSetClipRect(
0090 #ifndef _NO_PROTO
0091 XmDataFieldWidget
0092 #endif
0093 );
0094 
0095 void _XmDataFieldDrawInsertionPoint(
0096 #ifndef _NO_PROTO
0097 XmDataFieldWidget, Boolean
0098 #endif
0099 );
0100 
0101 void XmDataFieldSetHighlight(
0102 #ifndef _NO_PROTO
0103 Widget, XmTextPosition, XmTextPosition, XmHighlightMode
0104 #endif
0105 );
0106 
0107 void XmDataFieldSetAddMode(
0108 #ifndef _NO_PROTO
0109 Widget, Boolean
0110 #endif
0111 );
0112 
0113 char * XmDataFieldGetSelection(
0114 #ifndef _NO_PROTO
0115 Widget
0116 #endif
0117 );
0118 
0119 void XmDataFieldSetSelection(
0120 #ifndef _NO_PROTO
0121 Widget, XmTextPosition, XmTextPosition, Time
0122 #endif
0123 );
0124 
0125 void _XmDataFieldSetSel2(
0126 #ifndef _NO_PROTO
0127 Widget, XmTextPosition, XmTextPosition, Boolean, Time
0128 #endif
0129 );
0130 
0131 Boolean XmDataFieldGetSelectionPosition(
0132 #ifndef _NO_PROTO
0133 Widget, XmTextPosition *, XmTextPosition *
0134 #endif
0135 );
0136 
0137 XmTextPosition XmDataFieldXYToPos(
0138 #ifndef _NO_PROTO
0139 Widget, Position, Position
0140 #endif
0141 );
0142 
0143 void XmDataFieldShowPosition(
0144 #ifndef _NO_PROTO
0145 Widget, XmTextPosition
0146 #endif
0147 );
0148 
0149 Boolean XmDataFieldCut(
0150 #ifndef _NO_PROTO
0151 Widget, Time
0152 #endif
0153 );
0154 
0155 Boolean XmDataFieldCopy(
0156 #ifndef _NO_PROTO
0157 Widget, Time
0158 #endif
0159 );
0160 
0161 Boolean XmDataFieldPaste(
0162 #ifndef _NO_PROTO
0163 Widget
0164 #endif
0165 );
0166 
0167 void XmDataFieldSetEditable(
0168 #ifndef _NO_PROTO
0169 Widget, Boolean
0170 #endif
0171 );
0172 
0173 void XmDataFieldSetInsertionPosition(
0174 #ifndef _NO_PROTO
0175 Widget, XmTextPosition
0176 #endif
0177 );
0178 
0179 extern WidgetClass xmDataFieldWidgetClass;
0180 
0181 typedef struct _XmDataFieldCallbackStruct {
0182     Widget   w;         /* The XmDataField */
0183     String   text;      /* Proposed string */
0184     Boolean  accept;        /* Accept return value, for validation */
0185 } XmDataFieldCallbackStruct;
0186 
0187 #if defined(__cplusplus)
0188 } /* extern "C" */
0189 #endif
0190 
0191 #endif /* _XmDataF_h */