Panda3D
Loading...
Searching...
No Matches
pgMouseWatcherGroup.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file pgMouseWatcherGroup.cxx
10 * @author drose
11 * @date 2001-07-09
12 */
13
14#include "pgMouseWatcherGroup.h"
15#include "pgTop.h"
16
17TypeHandle PGMouseWatcherGroup::_type_handle;
18
19/**
20 *
21 */
22PGMouseWatcherGroup::
23~PGMouseWatcherGroup() {
24 // When the MouseWatcherGroup destructs for whatever reason, the PGTop
25 // object should lose its MouseWatcher.
26 if (_top != nullptr) {
27 _top->_watcher_group = nullptr;
28 _top->set_mouse_watcher(nullptr);
29 }
30}
void set_mouse_watcher(MouseWatcher *watcher)
Sets the MouseWatcher pointer that the PGTop object registers its PG items with.
Definition pgTop.cxx:132
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.