23 #ifndef _LAX_LINEINPUT_H
24 #define _LAX_LINEINPUT_H
27 #include <lax/lineedit.h>
28 #include <lax/strmanip.h>
30 #define LINP_ONLEFT (1<<16)
31 #define LINP_ONRIGHT (1<<17)
32 #define LINP_ONTOP (1<<18)
33 #define LINP_ONBOTTOM (1<<19)
34 #define LINP_LEFT (1<<20)
35 #define LINP_RIGHT (1<<21)
36 #define LINP_CENTER (1<<22)
37 #define LINP_POPUP (1<<23)
38 #define LINP_INT (1<<24)
39 #define LINP_FLOAT (1<<25)
40 #define LINP_FILE (1<<26)
41 #define LINP_STYLEMASK (1<<16|1<<17|1<<18|1<<19|1<<20|1<<21|1<<22|1<<23|1<<24|1<<25|1<<26)
56 int xx,
int yy,
int ww,
int hh,
int brder,
57 anXWindow *prev,
unsigned long nowner=0,
const char *nsend=NULL,
58 const char *newlabel=NULL,
const char *newtext=NULL,
unsigned int ntstyle=0,
59 int nlew=0,
int nleh=0,
int npadx=-1,
int npady=-1,
int npadlx=-1,
int npadly=-1);
61 virtual const char *whattype() {
return "LineInput"; }
62 virtual const char *
tooltip(
const char *ntip);
63 virtual anXWindow *GetController() {
return le; }
65 virtual int Event(
const EventData *data,
const char *mes);
66 virtual int FocusOn(
const FocusChangeData *e);
67 virtual int FocusOff(
const FocusChangeData *e);
69 virtual int MoveResize(
int nx,
int ny,
int nw,
int nh);
70 virtual int Resize(
int nw,
int nh);
74 virtual long GetLong(
int *error_ret=NULL);
75 virtual double GetDouble(
int *error_ret=NULL);
76 virtual void SetLabel(
const char *newlabel);
77 virtual void SetText(
const char *newtext);
78 virtual void SetText(
int newtext);
79 virtual void SetText(
double newtext);
80 virtual void SetOwner(
anXWindow *nowner,
const char *mes=NULL) {
if (le) le->
SetOwner(nowner,mes); }
82 virtual int send() {
return 0; }
Mon Feb 17 2014 11:52:57, Laxkit