File indexing completed on 2025-01-18 10:15:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef _XmTextStrSoP_h
0024 #define _XmTextStrSoP_h
0025
0026 #include <Xm/XmP.h>
0027 #include <Xm/Text.h>
0028
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032
0033
0034
0035
0036
0037
0038
0039 typedef struct _XmSourceDataRec {
0040 XmTextSource source;
0041 XmTextWidget *widgets;
0042 XmTextPosition left, right;
0043 char * ptr;
0044 char * value;
0045 char * gap_start;
0046 char * gap_end;
0047 char * PSWC_NWLN;
0048 int length;
0049 int maxlength;
0050 int old_length;
0051 int numwidgets;
0052 int maxallowed;
0053
0054 Time prim_time;
0055 Boolean hasselection;
0056 Boolean editable;
0057 Boolean take_selection;
0058 } XmSourceDataRec, *XmSourceData;
0059
0060 typedef void (*AddWidgetProc)(XmTextSource,
0061 XmTextWidget);
0062
0063 typedef int (*CountLinesProc)(XmTextSource,
0064 XmTextPosition,
0065 unsigned long);
0066
0067 typedef void (*RemoveWidgetProc)(XmTextSource,
0068 XmTextWidget);
0069
0070 typedef XmTextPosition (*ReadProc)(XmTextSource,
0071 XmTextPosition,
0072 XmTextPosition,
0073
0074
0075
0076
0077 XmTextBlock);
0078
0079 typedef XmTextStatus (*ReplaceProc)(XmTextWidget,
0080 XEvent *,
0081 XmTextPosition *,
0082 XmTextPosition *,
0083 XmTextBlock,
0084 #if NeedWidePrototypes
0085 int);
0086 #else
0087 Boolean);
0088 #endif
0089
0090 typedef XmTextPosition (*ScanProc)(XmTextSource,
0091 XmTextPosition,
0092 XmTextScanType,
0093 XmTextScanDirection,
0094 int,
0095 #if NeedWidePrototypes
0096 int);
0097 #else
0098 Boolean);
0099 #endif
0100
0101 typedef Boolean (*GetSelectionProc)(XmTextSource,
0102 XmTextPosition *,
0103 XmTextPosition *);
0104
0105 typedef void (*SetSelectionProc)(XmTextSource,
0106 XmTextPosition,
0107 XmTextPosition,
0108 Time);
0109
0110
0111 typedef struct _XmTextSourceRec {
0112 struct _XmSourceDataRec *data;
0113 AddWidgetProc AddWidget;
0114 CountLinesProc CountLines;
0115 RemoveWidgetProc RemoveWidget;
0116 ReadProc ReadSource;
0117 ReplaceProc Replace;
0118 ScanProc Scan;
0119 GetSelectionProc GetSelection;
0120 SetSelectionProc SetSelection;
0121 } XmTextSourceRec;
0122
0123
0124 #ifdef __cplusplus
0125 }
0126 #endif
0127
0128 #endif
0129