1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
/*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef _XmTextStrSoI_h
#define _XmTextStrSoI_h
#include <Xm/TextStrSoP.h>
#ifdef __cplusplus
extern "C" {
#endif
/******** Private Function Declarations ********/
extern char * _XmStringSourceGetString(XmTextWidget tw,
XmTextPosition from,
XmTextPosition to,
#if NeedWidePrototypes
int want_wchar);
#else
Boolean want_wchar);
#endif /* NeedWidePrototypes */
extern Boolean _XmTextFindStringBackwards(Widget w,
XmTextPosition start,
char *search_string,
XmTextPosition *position);
extern Boolean _XmTextFindStringForwards(Widget w,
XmTextPosition start,
char *search_string,
XmTextPosition *position);
extern void _XmStringSourceSetGappedBuffer(XmSourceData data,
XmTextPosition position);
extern Boolean _XmTextModifyVerify(XmTextWidget initiator,
XEvent *event,
XmTextPosition *start,
XmTextPosition *end,
XmTextPosition *cursorPos,
XmTextBlock block,
XmTextBlock newblock,
Boolean *freeBlock);
extern XmTextSource _XmStringSourceCreate(char *value,
#if NeedWidePrototypes
int is_wchar);
#else
Boolean is_wchar);
#endif /* NeedWidePrototypes */
extern void _XmStringSourceDestroy(XmTextSource source);
extern char * _XmStringSourceGetValue(XmTextSource source,
#if NeedWidePrototypes
int want_wchar);
#else
Boolean want_wchar);
#endif /* NeedWidePrototypes */
extern void _XmStringSourceSetValue(XmTextWidget widget,
char *value);
extern Boolean _XmStringSourceHasSelection(XmTextSource source);
extern Boolean _XmStringSourceGetEditable(XmTextSource source);
extern void _XmStringSourceSetEditable(XmTextSource source,
#if NeedWidePrototypes
int editable);
#else
Boolean editable);
#endif /* NeedWidePrototypes */
extern int _XmStringSourceGetMaxLength(XmTextSource source);
extern void _XmStringSourceSetMaxLength(XmTextSource source,
int max);
extern int _XmTextBytesToCharacters(char *characters,
char *bytes,
int num_chars,
#if NeedWidePrototypes
int add_null_terminator,
#else
Boolean add_null_terminator,
#endif /* NeedWidePrototypes */
int max_char_size);
extern int _XmTextCharactersToBytes(char *bytes,
char *characters,
int num_chars,
int max_char_size);
extern void _XmTextValueChanged(XmTextWidget initiator,
XEvent *event);
extern Boolean *_XmStringSourceGetPending(XmTextWidget widget);
extern void _XmStringSourceSetPending(XmTextWidget widget,
Boolean *pending);
/******** End Private Function Declarations ********/
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration which encloses file. */
#endif
#endif /* _XmTextStrSoI_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */
|