00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #ifndef _XawText_h
00052 #define _XawText_h
00053
00054 #include <X11/Xaw3d/Simple.h>
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 typedef long XawTextPosition;
00086
00087 typedef enum { XawtextScrollNever,
00088 XawtextScrollWhenNeeded, XawtextScrollAlways} XawTextScrollMode;
00089
00090 typedef enum { XawtextWrapNever,
00091 XawtextWrapLine, XawtextWrapWord} XawTextWrapMode;
00092
00093 typedef enum { XawtextResizeNever, XawtextResizeWidth,
00094 XawtextResizeHeight, XawtextResizeBoth} XawTextResizeMode;
00095
00096 typedef enum {XawsdLeft, XawsdRight} XawTextScanDirection;
00097 typedef enum {XawtextRead, XawtextAppend, XawtextEdit} XawTextEditType;
00098 typedef enum {XawselectNull, XawselectPosition, XawselectChar, XawselectWord,
00099 XawselectLine, XawselectParagraph, XawselectAll} XawTextSelectType;
00100
00101 typedef struct {
00102 int firstPos;
00103 int length;
00104 char *ptr;
00105 unsigned long format;
00106 } XawTextBlock, *XawTextBlockPtr;
00107
00108 #include <X11/Xaw3d/TextSink.h>
00109 #include <X11/Xaw3d/TextSrc.h>
00110
00111 #define XtEtextScrollNever "never"
00112 #define XtEtextScrollWhenNeeded "whenneeded"
00113 #define XtEtextScrollAlways "always"
00114
00115 #define XtEtextWrapNever "never"
00116 #define XtEtextWrapLine "line"
00117 #define XtEtextWrapWord "word"
00118
00119 #define XtEtextResizeNever "never"
00120 #define XtEtextResizeWidth "width"
00121 #define XtEtextResizeHeight "height"
00122 #define XtEtextResizeBoth "both"
00123
00124 #define XtNautoFill "autoFill"
00125 #define XtNbottomMargin "bottomMargin"
00126 #define XtNdialogHOffset "dialogHOffset"
00127 #define XtNdialogVOffset "dialogVOffset"
00128 #define XtNdisplayCaret "displayCaret"
00129 #define XtNdisplayPosition "displayPosition"
00130 #define XtNleftMargin "leftMargin"
00131 #define XtNrightMargin "rightMargin"
00132 #define XtNscrollVertical "scrollVertical"
00133 #define XtNscrollHorizontal "scrollHorizontal"
00134 #define XtNselectTypes "selectTypes"
00135 #define XtNtopMargin "topMargin"
00136 #define XtNwrap "wrap"
00137
00138 #define XtCAutoFill "AutoFill"
00139 #define XtCScroll "Scroll"
00140 #define XtCSelectTypes "SelectTypes"
00141 #define XtCWrap "Wrap"
00142
00143 #ifndef _XtStringDefs_h_
00144 #define XtNinsertPosition "insertPosition"
00145 #define XtNresize "resize"
00146 #define XtNselection "selection"
00147 #define XtCResize "Resize"
00148 #endif
00149
00150
00151
00152 #define XawTextSearchError (-12345L)
00153
00154
00155
00156 #define XawReplaceError -1
00157 #define XawEditDone 0
00158 #define XawEditError 1
00159 #define XawPositionError 2
00160
00161 extern unsigned long FMT8BIT;
00162 extern unsigned long XawFmt8Bit;
00163 extern unsigned long XawFmtWide;
00164
00165
00166
00167 extern WidgetClass textWidgetClass;
00168
00169 typedef struct _TextClassRec *TextWidgetClass;
00170 typedef struct _TextRec *TextWidget;
00171
00172 _XFUNCPROTOBEGIN
00173
00174 extern XrmQuark _XawTextFormat(
00175 #if NeedFunctionPrototypes
00176 TextWidget
00177 #endif
00178 );
00179
00180 extern void XawTextDisplay(
00181 #if NeedFunctionPrototypes
00182 Widget
00183 #endif
00184 );
00185
00186 extern void XawTextEnableRedisplay(
00187 #if NeedFunctionPrototypes
00188 Widget
00189 #endif
00190 );
00191
00192 extern void XawTextDisableRedisplay(
00193 #if NeedFunctionPrototypes
00194 Widget
00195 #endif
00196 );
00197
00198 extern void XawTextSetSelectionArray(
00199 #if NeedFunctionPrototypes
00200 Widget ,
00201 XawTextSelectType*
00202 #endif
00203 );
00204
00205 extern void XawTextGetSelectionPos(
00206 #if NeedFunctionPrototypes
00207 Widget ,
00208 XawTextPosition* ,
00209 XawTextPosition*
00210 #endif
00211 );
00212
00213 extern void XawTextSetSource(
00214 #if NeedFunctionPrototypes
00215 Widget ,
00216 Widget ,
00217 XawTextPosition
00218 #endif
00219 );
00220
00221 extern int XawTextReplace(
00222 #if NeedFunctionPrototypes
00223 Widget ,
00224 XawTextPosition ,
00225 XawTextPosition ,
00226 XawTextBlock*
00227 #endif
00228 );
00229
00230 extern XawTextPosition XawTextTopPosition(
00231 #if NeedFunctionPrototypes
00232 Widget
00233 #endif
00234 );
00235
00236 extern void XawTextSetInsertionPoint(
00237 #if NeedFunctionPrototypes
00238 Widget ,
00239 XawTextPosition
00240 #endif
00241 );
00242
00243 extern XawTextPosition XawTextGetInsertionPoint(
00244 #if NeedFunctionPrototypes
00245 Widget
00246 #endif
00247 );
00248
00249 extern void XawTextUnsetSelection(
00250 #if NeedFunctionPrototypes
00251 Widget
00252 #endif
00253 );
00254
00255 extern void XawTextSetSelection(
00256 #if NeedFunctionPrototypes
00257 Widget ,
00258 XawTextPosition ,
00259 XawTextPosition
00260 #endif
00261 );
00262
00263 extern void XawTextInvalidate(
00264 #if NeedFunctionPrototypes
00265 Widget ,
00266 XawTextPosition ,
00267 XawTextPosition
00268 #endif
00269 );
00270
00271 extern Widget XawTextGetSource(
00272 #if NeedFunctionPrototypes
00273 Widget
00274 #endif
00275 );
00276
00277 extern XawTextPosition XawTextSearch(
00278 #if NeedFunctionPrototypes
00279 Widget ,
00280 #if NeedWidePrototypes
00281 int ,
00282 #else
00283 XawTextScanDirection ,
00284 #endif
00285 XawTextBlock*
00286 #endif
00287 );
00288
00289 extern void XawTextDisplayCaret(
00290 #if NeedFunctionPrototypes
00291 Widget ,
00292 #if NeedWidePrototypes
00293 int
00294 #else
00295 Boolean
00296 #endif
00297 #endif
00298 );
00299
00300 _XFUNCPROTOEND
00301
00302
00303
00304
00305
00306 #include <X11/Xaw3d/AsciiSrc.h>
00307 #include <X11/Xaw3d/AsciiSink.h>
00308
00309 #endif
00310