File indexing completed on 2025-01-30 10:26:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048 #ifndef _XawText_h
0049 #define _XawText_h
0050
0051 #include <X11/Xaw/Simple.h>
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084 typedef long XawTextPosition;
0085
0086 #ifndef notdef
0087 typedef enum {
0088 XawtextScrollNever,
0089 XawtextScrollWhenNeeded,
0090 XawtextScrollAlways
0091 } XawTextScrollMode;
0092
0093 typedef enum {
0094 XawtextResizeNever,
0095 XawtextResizeWidth,
0096 XawtextResizeHeight,
0097 XawtextResizeBoth
0098 } XawTextResizeMode;
0099 #endif
0100
0101 typedef enum {
0102 XawtextWrapNever,
0103 XawtextWrapLine,
0104 XawtextWrapWord
0105 } XawTextWrapMode;
0106
0107 typedef enum {
0108 XawsdLeft,
0109 XawsdRight
0110 } XawTextScanDirection;
0111
0112 typedef enum {
0113 XawtextRead,
0114 XawtextAppend,
0115 XawtextEdit
0116 } XawTextEditType;
0117
0118 typedef enum {
0119 XawselectNull,
0120 XawselectPosition,
0121 XawselectChar,
0122 XawselectWord,
0123 XawselectLine,
0124 XawselectParagraph,
0125 XawselectAll,
0126 XawselectAlphaNumeric
0127 } XawTextSelectType;
0128
0129 typedef enum {
0130 XawjustifyLeft,
0131 XawjustifyRight,
0132 XawjustifyCenter,
0133 XawjustifyFull
0134 } XawTextJustifyMode;
0135
0136 typedef struct {
0137 int firstPos;
0138 int length;
0139 char *ptr;
0140 unsigned long format;
0141 } XawTextBlock, *XawTextBlockPtr;
0142
0143 #ifndef OLDXAW
0144 typedef struct {
0145 int line_number;
0146 int column_number;
0147 XawTextPosition insert_position;
0148 XawTextPosition last_position;
0149 Boolean overwrite_mode;
0150 } XawTextPositionInfo;
0151
0152 typedef struct {
0153 XawTextPosition left, right;
0154 XawTextBlock *block;
0155 } XawTextPropertyInfo;
0156
0157 typedef struct _XawTextAnchor XawTextAnchor;
0158 typedef struct _XawTextEntity XawTextEntity;
0159 typedef struct _XawTextProperty XawTextProperty;
0160 typedef struct _XawTextPropertyList XawTextPropertyList;
0161 #endif
0162
0163 #include <X11/Xaw/TextSink.h>
0164 #include <X11/Xaw/TextSrc.h>
0165
0166 #define XtEtextScrollNever "never"
0167 #define XtEtextScrollWhenNeeded "whenneeded"
0168 #define XtEtextScrollAlways "always"
0169 #define XtEtextResizeNever "never"
0170 #define XtEtextResizeWidth "width"
0171 #define XtEtextResizeHeight "height"
0172 #define XtEtextResizeBoth "both"
0173
0174 #define XtEtextWrapNever "never"
0175 #define XtEtextWrapLine "line"
0176 #define XtEtextWrapWord "word"
0177
0178 #define XtNautoFill "autoFill"
0179 #define XtNbottomMargin "bottomMargin"
0180 #define XtNdialogHOffset "dialogHOffset"
0181 #define XtNdialogVOffset "dialogVOffset"
0182 #define XtNdisplayCaret "displayCaret"
0183 #define XtNdisplayPosition "displayPosition"
0184 #define XtNleftMargin "leftMargin"
0185 #define XtNrightMargin "rightMargin"
0186 #define XtNpositionCallback "positionCallback"
0187 #define XtNscrollVertical "scrollVertical"
0188 #define XtNscrollHorizontal "scrollHorizontal"
0189 #define XtNselectTypes "selectTypes"
0190 #define XtNtopMargin "topMargin"
0191 #define XtNwrap "wrap"
0192
0193 #define XtCColumn "Column"
0194 #define XtNleftColumn "leftColumn"
0195 #define XtNrightColumn "rightColumn"
0196
0197 #define XtCJustifyMode XtCJustify
0198 #define XtNjustifyMode XtNjustify
0199 #define XtEtextJustifyLeft "left"
0200 #define XtEtextJustifyRight "right"
0201 #define XtEtextJustifyCenter "center"
0202 #define XtEtextJustifyFull "full"
0203
0204 #define XtCAutoFill "AutoFill"
0205 #define XtCSelectTypes "SelectTypes"
0206 #define XtCWrap "Wrap"
0207 #ifndef notdef
0208 #define XtCScroll "Scroll"
0209 #endif
0210
0211 #ifndef _XtStringDefs_h_
0212 #define XtNinsertPosition "insertPosition"
0213 #ifndef notdef
0214 #define XtNresize "resize"
0215 #define XtCResize "Resize"
0216 #endif
0217 #define XtNselection "selection"
0218 #endif
0219
0220
0221 #define XawTextSearchError (-12345L)
0222
0223
0224 #define XawReplaceError -1
0225 #define XawEditDone 0
0226 #define XawEditError 1
0227 #define XawPositionError 2
0228
0229
0230 #define XawTextFormat(tw,fmt) ((unsigned long)_XawTextFormat(tw) == (fmt))
0231
0232 extern unsigned long FMT8BIT;
0233 extern unsigned long XawFmt8Bit;
0234 extern unsigned long XawFmtWide;
0235
0236 extern WidgetClass textWidgetClass;
0237
0238 typedef struct _TextClassRec *TextWidgetClass;
0239 typedef struct _TextRec *TextWidget;
0240
0241 _XFUNCPROTOBEGIN
0242
0243 XrmQuark _XawTextFormat
0244 (
0245 TextWidget tw
0246 );
0247
0248 void XawTextDisplay
0249 (
0250 Widget w
0251 );
0252
0253 void XawTextEnableRedisplay
0254 (
0255 Widget w
0256 );
0257
0258 void XawTextDisableRedisplay
0259 (
0260 Widget w
0261 );
0262
0263 void XawTextSetSelectionArray
0264 (
0265 Widget w,
0266 XawTextSelectType *sarray
0267 );
0268
0269 void XawTextGetSelectionPos
0270 (
0271 Widget w,
0272 XawTextPosition *begin_return,
0273 XawTextPosition *end_return
0274 );
0275
0276 void XawTextSetSource
0277 (
0278 Widget w,
0279 Widget source,
0280 XawTextPosition top
0281 );
0282
0283 int XawTextReplace
0284 (
0285 Widget w,
0286 XawTextPosition start,
0287 XawTextPosition end,
0288 XawTextBlock *text
0289 );
0290
0291 XawTextPosition XawTextTopPosition
0292 (
0293 Widget w
0294 );
0295
0296 XawTextPosition XawTextLastPosition
0297 (
0298 Widget w
0299 );
0300
0301 void XawTextSetInsertionPoint
0302 (
0303 Widget w,
0304 XawTextPosition position
0305 );
0306
0307 XawTextPosition XawTextGetInsertionPoint
0308 (
0309 Widget w
0310 );
0311
0312 void XawTextUnsetSelection
0313 (
0314 Widget w
0315 );
0316
0317 void XawTextSetSelection
0318 (
0319 Widget w,
0320 XawTextPosition left,
0321 XawTextPosition right
0322 );
0323
0324 void XawTextInvalidate
0325 (
0326 Widget w,
0327 XawTextPosition from,
0328 XawTextPosition to
0329 );
0330
0331 Widget XawTextGetSource
0332 (
0333 Widget w
0334 );
0335
0336 Widget XawTextGetSink
0337 (
0338 Widget w
0339 );
0340
0341 XawTextPosition XawTextSearch
0342 (
0343 Widget w,
0344 #if NeedWidePrototypes
0345 int dir,
0346 #else
0347 XawTextScanDirection dir,
0348 #endif
0349 XawTextBlock *text
0350 );
0351
0352 void XawTextDisplayCaret
0353 (
0354 Widget w,
0355 #if NeedWidePrototypes
0356 int visible
0357 #else
0358 Boolean visible
0359 #endif
0360 );
0361
0362 _XFUNCPROTOEND
0363
0364
0365
0366
0367 #include <X11/Xaw/AsciiSrc.h>
0368 #include <X11/Xaw/AsciiSink.h>
0369
0370 #endif