Panda3D
panda
src
pgui
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
17
TypeHandle
PGMouseWatcherGroup::_type_handle;
18
19
/**
20
*
21
*/
22
PGMouseWatcherGroup::
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
}
PGTop::set_mouse_watcher
void set_mouse_watcher(MouseWatcher *watcher)
Sets the MouseWatcher pointer that the PGTop object registers its PG items with.
Definition:
pgTop.cxx:132
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
pgTop.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pgMouseWatcherGroup.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sun Dec 27 2020 13:23:12 for Panda3D by
1.8.20