#ifndef XNE_TEXTFIELDP_H
#define XNE_TEXTFIELDP_H
#include <Xm/XmP.h>
#include <Xm/PrimitiveP.h>
#include <X11/CoreP.h>
#include "../source/textDisp.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct TextFieldClassPart {
int unused;
} TextFieldClassPart;
typedef struct TextFieldClassRec {
CoreClassPart core_class;
XmPrimitiveClassPart primitive_class;
TextFieldClassPart textfield_class;
} TextFieldClassRec;
extern TextFieldClassRec nTextFieldClassRec;
typedef struct TextFieldPart {
XtCallbackList valueChangedCB;
XtCallbackList focusCB;
XtCallbackList losingFocusCB;
XtCallbackList activateCB;
int hasFocus;
char *renderTable;
NFont *font;
XIM xim;
XIC xic;
GC gc;
GC gcInv;
GC highlightBackground;
XftColor foregroundColor;
XftColor backgroundColor;
XftDraw *d;
char *buffer;
size_t alloc;
size_t length;
size_t pos;
int posCalc;
int posX;
int scrollX;
int textarea_xoff;
int textarea_yoff;
int hasSelection;
int selStart;
int selEnd;
int selStartX;
int selEndX;
Time btn1ClickPrev;
Time btn1ClickPrev2;
int dontAdjustSel;
int blinkrate;
int cursorOn;
XtIntervalId blinkProcId;
} TextFieldPart;
typedef struct TextFieldRec {
CorePart core;
XmPrimitivePart primitive;
TextFieldPart textfield;
} TextFieldRec;
#ifdef __cplusplus
}
#endif
#endif