1 /* $XConsortium: AccTextT.h /main/5 1995/07/15 20:48:04 drk $ */ 2 /* 3 * Motif 4 * 5 * Copyright (c) 1987-2012, The Open Group. All rights reserved. 6 * 7 * These libraries and programs are free software; you can 8 * redistribute them and/or modify them under the terms of the GNU 9 * Lesser General Public License as published by the Free Software 10 * Foundation; either version 2 of the License, or (at your option) 11 * any later version. 12 * 13 * These libraries and programs are distributed in the hope that 14 * they will be useful, but WITHOUT ANY WARRANTY; without even the 15 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 16 * PURPOSE. See the GNU Lesser General Public License for more 17 * details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with these librararies and programs; if not, write 21 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 22 * Floor, Boston, MA 02110-1301 USA 23 */ 24 /* 25 * HISTORY 26 */ 27 #ifndef _XmAccessTextualT_H 28 #define _XmAccessTextualT_H 29 30 #include <Xm/Xm.h> 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 externalref XrmQuark XmQTaccessTextual; 37 38 typedef XtPointer (*XmAccessTextualGetValuesProc)(Widget, int); 39 typedef int (*XmAccessTextualPreferredProc)(Widget); 40 typedef void (*XmAccessTextualSetValuesProc)(Widget, XtPointer, int); 41 42 enum { XmFORMAT_XmSTRING, XmFORMAT_MBYTE, XmFORMAT_WCS }; 43 44 /* Trait structures and typedefs, place typedefs first */ 45 46 /* Version 0: initial release. */ 47 48 typedef struct _XmAccessTextualTraitRec { 49 int version; /* 0 */ 50 XmAccessTextualGetValuesProc getValue; 51 XmAccessTextualSetValuesProc setValue; 52 XmAccessTextualPreferredProc preferredFormat; 53 } XmAccessTextualTraitRec, *XmAccessTextualTrait; 54 55 #ifdef __cplusplus 56 } /* Close scope of 'extern "C"' declaration which encloses file. */ 57 #endif 58 59 #endif /* _XmAccessTextualT_H */ 60