Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

qevent.h

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     // General
00021     int type();
00022 
00023     // Mouse
00024     int x();
00025     int y();
00026     int button();
00027     bool down();
00028     bool doubleclick();
00029 
00030     int ScreenX();
00031     int ScreenY();
00032     
00033     // Keyboard
00034     int ascii();
00035     int state();
00036 
00037     // Wheel
00038     int delta();
00039 
00040     // Focus
00041     bool focus();
00042 
00043     // Expose
00044     GRect &exposed();
00045 };
00046 
00047 #endif

Generated on Wed Oct 26 14:46:51 2005 for Lgi by  doxygen 1.4.1