• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

widget.h

Go to the documentation of this file.
00001 #ifndef WIT_WIDGET_H
00002 #define WIT_WIDGET_H
00003 
00004 #include "eventhandler.h"
00005 #include "hotspot.h"
00006 #include "renderer.h"
00007 
00008 namespace wit {
00009 
00010 class PointerEvent;
00011 class PointerLeaveEvent;
00012 class WidgetPrivate;
00013 
00014 class Widget : public EventHandler, public Hotspot, public Renderer
00015 {
00016 public:
00017     Widget();
00018 
00019     bool autoFocus() const;
00020     void setAutoFocus(bool on);
00021     bool hasPointer(int controllerID = -1) const;
00022 
00023     virtual void focusEvent(PointerEvent* event);
00024     virtual bool pointerEvent(PointerEvent* event);
00025     virtual bool pointerLeaveEvent(PointerLeaveEvent* event);
00026 
00027 private:
00028     WidgetPrivate* d;
00029 };
00030 
00031 }
00032 
00033 #endif

Generated on Sat Sep 3 2011 10:25:00 for wit by  doxygen 1.7.2