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 #ifndef GWEN_UI_EDITBOX_H
00029 #define GWEN_UI_EDITBOX_H
00030
00031 typedef enum {
00032 GWEN_EditBoxType_Char=0,
00033 GWEN_EditBoxType_Int
00034 } GWEN_EDITBOX_TYPE;
00035
00036 #include <gwenhywfar/misc.h>
00037 #include <gwenhywfar/inherit.h>
00038 #include <gwenhywfar/ui/widget.h>
00039 #include <gwenhywfar/buffer.h>
00040
00041 #define GWEN_EDITBOX_FLAGS_MULTILINE 0x00010000
00042 #define GWEN_EDITBOX_FLAGS_DYNAMIC 0x00020000
00043 #define GWEN_EDITBOX_FLAGS_CLEARALL 0x00040000
00044 #define GWEN_EDITBOX_FLAGS_INSERT 0x00080000
00045 #define GWEN_EDITBOX_FLAGS_EDIT 0x00100000
00046
00047
00048 GWEN_WIDGET *GWEN_EditBox_new(GWEN_WIDGET *parent,
00049 GWEN_TYPE_UINT32 flags,
00050 const char *name,
00051 const char *text,
00052 int x, int y,
00053 int width, int height,
00054 int maxLen);
00055
00056 GWEN_BUFFER *GWEN_EditBox_GetText(const GWEN_WIDGET *w, int asAscii);
00057
00058 void GWEN_EditBox_SetDataType(GWEN_WIDGET *w, GWEN_EDITBOX_TYPE d);
00059
00060
00061 int GWEN_EditBox_Validate(GWEN_WIDGET *w);
00062
00063 #endif
00064
00065
00066
00067
00068