00001
00002 #ifndef __XEvent_h
00003 #define __XEvent_h
00004
00005 #include "LgiLinux.h"
00006
00007 #define DOUBLE_CLICK_TIME 400
00008
00009 class XlibEvent : public XObject
00010 {
00011 protected:
00012 XEvent *Event;
00013
00014
00015 uint8 Scancode;
00016 LgiKey Sym;
00017 int Mod;
00018 char16 Unicode;
00019
00020 public:
00021 XlibEvent(XEvent *e);
00022
00023 XEvent *GetEvent() { return Event; }
00024
00025
00026 int type();
00027
00028
00029 int x();
00030 int y();
00031 int button();
00032 bool down();
00033 bool doubleclick();
00034
00035 int ScreenX();
00036 int ScreenY();
00037
00038
00039 char16 unicode(XIC Ic);
00040 LgiKey getsym() { return Sym; }
00041 bool ischar();
00042 int state();
00043
00044
00045 int delta();
00046
00047
00048 bool focus();
00049
00050
00051 GRect &exposed();
00052 };
00053
00054 #endif