00001
00002 #ifndef __QEvent_h
00003 #define __QEvent_h
00004
00005 #include "LgiLinux.h"
00006
00007 #define DOUBLE_CLICK_TIME 400
00008
00009 class QEvent : public QObject
00010 {
00011 protected:
00012 XEvent *Event;
00013 char16 Char;
00014
00015 public:
00016 QEvent(XEvent *e, QInput *i = 0);
00017
00018 XEvent *GetEvent() { return Event; }
00019
00020
00021 int type();
00022
00023
00024 int x();
00025 int y();
00026 int button();
00027 bool down();
00028 bool doubleclick();
00029
00030 int ScreenX();
00031 int ScreenY();
00032
00033
00034 int ascii();
00035 int state();
00036
00037
00038 int delta();
00039
00040
00041 bool focus();
00042
00043
00044 GRect &exposed();
00045 };
00046
00047 #endif