orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
mouseeventmanager.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef HYDROQGUI_MOUSEEVENTMANAGER_H 00012 #define HYDROQGUI_MOUSEEVENTMANAGER_H 00013 00014 #include <hydroqguielementutil/iguielement.h> 00015 #include <hydroutil/uncopyable.h> 00016 00017 namespace hydroqguielementutil { 00018 00026 class MouseEventManager : public hydroutil::Uncopyable 00027 { 00028 00029 public: 00030 00031 MouseEventManager() 00032 : mouseEventReceiver_(NULL) 00033 {} 00034 00035 bool mouseEventReceiverIsSet() const { return mouseEventReceiver_!=NULL; } 00036 00037 IGuiElement *mouseEventReceiver() const { return mouseEventReceiver_; } 00038 00039 bool requestBecomeMouseEventReceiver( IGuiElement *requester ); 00040 00041 void relinquishMouseEventReceiver( IGuiElement *relinquisher ); 00042 00043 private: 00044 00045 // NULL means no-one is receiving mouse events 00046 IGuiElement *mouseEventReceiver_; 00047 00048 }; 00049 00050 } 00051 00052 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)