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 #ifndef _XmTextF_h
0024 #define _XmTextF_h
0025 
0026 #include <Xm/Xm.h>
0027 
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031 
0032 /******************
0033  * type defines   *
0034  ******************/
0035 typedef struct _XmTextFieldClassRec *XmTextFieldWidgetClass;
0036 typedef struct _XmTextFieldRec *XmTextFieldWidget;
0037 
0038 /******************
0039  * extern class   *
0040  ******************/
0041 externalref WidgetClass       xmTextFieldWidgetClass;
0042 
0043 
0044 /************************
0045  * fast subclass define *
0046  ************************/
0047 #ifndef XmIsTextField
0048 #define XmIsTextField(w)     XtIsSubclass(w, xmTextFieldWidgetClass)
0049 #endif /* XmIsTextField */
0050 
0051 
0052 /********************
0053  * public functions *
0054  ********************/
0055 
0056 /********    Public Function Declarations    ********/
0057 
0058 char * XmTextFieldGetString( 
0059                  Widget w);
0060 int XmTextFieldGetSubstring( 
0061                  Widget widget,
0062                  XmTextPosition start,
0063                  int num_chars,
0064                  int buf_size,
0065                  char *buffer);
0066 wchar_t * XmTextFieldGetStringWcs( 
0067                  Widget w);
0068 int XmTextFieldGetSubstringWcs( 
0069                  Widget widget,
0070                  XmTextPosition start,
0071                  int num_chars,
0072                  int buf_size,
0073                  wchar_t *buffer);
0074 XmTextPosition XmTextFieldGetLastPosition( 
0075                  Widget w);
0076 void XmTextFieldSetString( 
0077                  Widget w,
0078                  char *value);
0079 void XmTextFieldSetStringWcs( 
0080                  Widget w,
0081                  wchar_t *wc_value);
0082 void XmTextFieldReplace( 
0083                  Widget w,
0084                  XmTextPosition from_pos,
0085                  XmTextPosition to_pos,
0086                  char *value);
0087 void XmTextFieldReplaceWcs( 
0088                  Widget w,
0089                  XmTextPosition from_pos,
0090                  XmTextPosition to_pos,
0091                  wchar_t *wc_value);
0092 void XmTextFieldInsert( 
0093                  Widget w,
0094                  XmTextPosition position,
0095                  char *value);
0096 void XmTextFieldInsertWcs( 
0097                  Widget w,
0098                  XmTextPosition position,
0099                  wchar_t *wcstring);
0100 void XmTextFieldSetAddMode( 
0101                         Widget w,
0102 #if NeedWidePrototypes
0103                         int state);
0104 #else
0105                         Boolean state);
0106 #endif /* NeedWidePrototypes */
0107 Boolean XmTextFieldGetAddMode( 
0108                  Widget w);
0109 Boolean XmTextFieldGetEditable( 
0110                  Widget w);
0111 void XmTextFieldSetEditable( 
0112                         Widget w,
0113 #if NeedWidePrototypes
0114                         int editable);
0115 #else
0116                         Boolean editable);
0117 #endif /* NeedWidePrototypes */
0118 int XmTextFieldGetMaxLength( 
0119                  Widget w);
0120 void XmTextFieldSetMaxLength( 
0121                  Widget w,
0122                  int max_length);
0123 XmTextPosition XmTextFieldGetCursorPosition( 
0124                  Widget w);
0125 XmTextPosition XmTextFieldGetInsertionPosition( 
0126                  Widget w);
0127 void XmTextFieldSetCursorPosition( 
0128                  Widget w,
0129                  XmTextPosition position);
0130 void XmTextFieldSetInsertionPosition( 
0131                  Widget w,
0132                  XmTextPosition position);
0133 Boolean XmTextFieldGetSelectionPosition( 
0134                  Widget w,
0135                  XmTextPosition *left,
0136                  XmTextPosition *right);
0137 char * XmTextFieldGetSelection( 
0138                  Widget w);
0139 wchar_t * XmTextFieldGetSelectionWcs( 
0140                  Widget w);
0141 Boolean XmTextFieldRemove( 
0142                  Widget w);
0143 Boolean XmTextFieldCopy( 
0144                  Widget w,
0145                  Time clip_time);
0146 Boolean XmTextFieldCopyLink( 
0147                  Widget w,
0148                  Time clip_time);
0149 Boolean XmTextFieldCut( 
0150                  Widget w,
0151                  Time clip_time);
0152 Boolean XmTextFieldPaste( 
0153                  Widget w);
0154 Boolean XmTextFieldPasteLink( 
0155                  Widget w);
0156 void XmTextFieldClearSelection( 
0157                  Widget w,
0158                  Time sel_time);
0159 void XmTextFieldSetSelection( 
0160                  Widget w,
0161                  XmTextPosition first,
0162                  XmTextPosition last,
0163                  Time sel_time);
0164 XmTextPosition XmTextFieldXYToPos( 
0165                         Widget w,
0166 #if NeedWidePrototypes
0167                         int x,
0168                         int y);
0169 #else
0170                         Position x,
0171                         Position y);
0172 #endif /* NeedWidePrototypes */
0173 Boolean XmTextFieldPosToXY( 
0174                  Widget w,
0175                  XmTextPosition position,
0176                  Position *x,
0177                  Position *y);
0178 void XmTextFieldShowPosition( 
0179                  Widget w,
0180                  XmTextPosition position);
0181 void XmTextFieldSetHighlight( 
0182                  Widget w,
0183                  XmTextPosition left,
0184                  XmTextPosition right,
0185                  XmHighlightMode mode);
0186 int XmTextFieldGetBaseline( 
0187                  Widget w);
0188 Widget XmCreateTextField( 
0189                         Widget parent,
0190                         char *name,
0191                         ArgList arglist,
0192                         Cardinal argcount);
0193 Widget XmVaCreateTextField(
0194                         Widget parent,
0195                         char *name,
0196                         ...);
0197 Widget XmVaCreateManagedTextField(
0198                         Widget parent,
0199                         char *name,
0200                         ...);
0201 
0202 /********    End Public Function Declarations    ********/
0203 
0204 
0205 #ifdef __cplusplus
0206 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0207 #endif
0208 
0209 #endif /* _XmTextF_h */
0210 /* DON'T ADD STUFF AFTER THIS #endif */