Panda3D
 All Classes Functions Variables Enumerations
pgMouseWatcherGroup.cxx
00001 // Filename: pgMouseWatcherGroup.cxx
00002 // Created by:  drose (09Jul01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "pgMouseWatcherGroup.h"
00016 #include "pgTop.h"
00017 
00018 TypeHandle PGMouseWatcherGroup::_type_handle;
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: PGMouseWatcherGroup::Destructor
00022 //       Access: Public, Virtual
00023 //  Description: 
00024 ////////////////////////////////////////////////////////////////////
00025 PGMouseWatcherGroup::
00026 ~PGMouseWatcherGroup() {
00027   // When the MouseWatcherGroup destructs for whatever reason, the
00028   // PGTop object should lose its MouseWatcher.
00029   if (_top != (PGTop *)NULL) {
00030     _top->_watcher_group = (PGMouseWatcherGroup *)NULL;
00031     _top->set_mouse_watcher((MouseWatcher *)NULL);
00032   }
00033 }
 All Classes Functions Variables Enumerations