#ifndef XNE_TEXTFIELD_H
#define XNE_TEXTFIELD_H
#ifndef DISABLE_XNE_TEXTFIELD
#define XNEtextfieldWidgetClass textfieldWidgetClass
#define XNECreateText(parent,name,args,count) XNECreateTextField(parent,name,args,count)
#define XNETextSetString(widget,value) XNETextFieldSetString(widget,value)
#define XNETextGetString(widget) XNETextFieldGetString(widget)
#define XNETextGetLastPosition(widget) XNETextFieldGetLastPosition(widget)
#define XNETextSetInsertionPosition(widget, i) XNETextFieldSetInsertionPosition(widget, i)
#define XNETextGetLastPosition(widget) XNETextFieldGetLastPosition(widget)
#define XNETextSetSelection(w, f, l, t) XNETextFieldSetSelection(w, f, l, t)
#else
#define XNEtextfieldWidgetClass xmTextFieldWidgetClass
#define XNECreateText(parent,name,args,count) XmCreateTextField(parent,name,args,count)
#define XNETextSetString(widget,value) XmTextFieldSetString(widget,value)
#define XNETextGetString(widget) TextGetStringUtf8(widget)
#define XNETextGetLastPosition(widget) XmTextFieldGetLastPosition(widget)
#define XNETextSetInsertionPosition(widget, i) XmTextFieldSetInsertionPosition(widget, i)
#define XNETextSetSelection(w, f, l, t) XmTextFieldSetSelection(w, f, l, t)
#endif
#include <X11/Intrinsic.h>
#include <Xm/TextF.h>
#include "../source/text.h"
extern WidgetClass textfieldWidgetClass;
struct TextFieldClassRec;
struct TextFieldRec;
typedef struct TextFieldRec *TextFieldWidget;
void textfield_init(Widget request, Widget neww, ArgList args, Cardinal *num_args);
void textfield_realize(Widget widget, XtValueMask *mask, XSetWindowAttributes *attributes);
void textfield_destroy(Widget widget);
void textfield_resize(Widget widget);
void textfield_expose(Widget widget, XEvent* event, Region region);
Boolean textfield_set_values(Widget old, Widget request, Widget neww, ArgList args, Cardinal *num_args);
Boolean textfield_acceptfocus(Widget widget, Time *time);
void textfield_recalc_size(TextFieldWidget w);
void XNETextFieldSetString(Widget widget,
char *value);
char* XNETextFieldGetString(Widget widget);
XmTextPosition XNETextFieldGetLastPosition(Widget widget);
void XNETextFieldSetInsertionPosition(Widget widget, XmTextPosition i);
void XNETextFieldSetSelection(Widget w, XmTextPosition first, XmTextPosition last, Time sel_time);
#endif