00001 // Filename: pgMouseWatcherParameter.h 00002 // Created by: drose (05Jul01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef PGMOUSEWATCHERPARAMETER_H 00020 #define PGMOUSEWATCHERPARAMETER_H 00021 00022 #include "pandabase.h" 00023 00024 #include "mouseWatcherParameter.h" 00025 #include "typedReferenceCount.h" 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : PGMouseWatcherParameter 00029 // Description : This specialization on MouseWatcherParameter allows 00030 // us to tag on additional elements to events for the 00031 // gui system, and also inherits from 00032 // TypedReferenceCount so we can attach this thing to an 00033 // event. 00034 //////////////////////////////////////////////////////////////////// 00035 class EXPCL_PANDA PGMouseWatcherParameter : public TypedReferenceCount, public MouseWatcherParameter { 00036 // For now, this must inherit from TypedReferenceCount on the left, 00037 // because MSVC++ wants to make that base class be the one at the 00038 // front of the structure, not MouseWatcherParameter for some 00039 // reason, and interrogate assumes that whichever base class is on 00040 // the left will be at the front of the structure. 00041 public: 00042 INLINE PGMouseWatcherParameter(); 00043 INLINE PGMouseWatcherParameter(const MouseWatcherParameter ©); 00044 INLINE void operator = (const MouseWatcherParameter ©); 00045 virtual ~PGMouseWatcherParameter(); 00046 00047 PUBLISHED: 00048 void output(ostream &out) const; 00049 00050 public: 00051 static TypeHandle get_class_type() { 00052 return _type_handle; 00053 } 00054 static void init_type() { 00055 TypedReferenceCount::init_type(); 00056 register_type(_type_handle, "PGMouseWatcherParameter", 00057 TypedReferenceCount::get_class_type()); 00058 } 00059 virtual TypeHandle get_type() const { 00060 return get_class_type(); 00061 } 00062 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00063 00064 private: 00065 static TypeHandle _type_handle; 00066 }; 00067 00068 #include "pgMouseWatcherParameter.I" 00069 00070 #endif