00001 //--- < CURSORPOLICY.H > --------| ViewGraph - A Flexible Graph view Framework | 00002 // 00003 // Cursor policy sets cursor behaviour for all 00004 // the nodes beneath it. Use it to enforce 00005 // uniform cursor behaviour over a group of nodes. 00006 // 00007 // $Author: botik32 $ 00008 // $Revision: 1.1.1.1 $ 00009 // $Date: 2004/03/26 10:50:26 $ 00010 //-----------------------------------------------------------------------------/ 00011 00012 #ifndef CURSORPOLICY_H 00013 #define CURSORPOLICY_H 00014 00015 #include <cZUI/scenenode.h> 00016 00017 class Event; 00018 class Message; 00019 class SurfaceCursor; 00020 00021 class CursorPolicyNode : public SceneNode 00022 { 00023 protected: 00024 SurfaceCursor *hover_cursor; 00025 SurfaceCursor *clicked_cursor; 00026 public: 00027 CursorPolicyNode( BaseSceneNode * ); 00028 void set_hovercursor( SurfaceCursor * ); 00029 void set_clickedcursor( SurfaceCursor * ); 00030 00031 bool handle_event( Event * ); 00032 }; 00033 00034 #endif 00035 00036 /// $Log: cursorpolicy.h,v $ 00037 /// Revision 1.1.1.1 2004/03/26 10:50:26 botik32 00038 /// Initial release 00039 /// 00040 /// Revision 1.1.1.1 2004/03/26 08:53:33 botik 00041 /// initial import 00042 /// 00043 /// 00044 /// Revision 1.1 2003/11/26 13:41:05 botik 00045 /// imported cvspolicy contrib class 00046 /// 00047 /// ---------------------------------------------------------------------- 00048 ///