Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pgui/pgTop.I

Go to the documentation of this file.
00001 // Filename: pgTop.I
00002 // Created by:  drose (13Mar02)
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 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: PGTop::Copy Constructor
00022 //       Access: Public
00023 //  Description: 
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE PGTop::
00026 PGTop(const PGTop &copy) :
00027   PandaNode(copy),
00028   _watcher(copy._watcher)
00029 {
00030 }
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: PGTop::get_mouse_watcher
00034 //       Access: Published
00035 //  Description: Returns the MouseWatcher pointer that the PGTop object
00036 //               registers its PG items with, or NULL if the
00037 //               MouseWatcher has not yet been set.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE MouseWatcher *PGTop::
00040 get_mouse_watcher() const {
00041   return _watcher;
00042 }
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //     Function: PGTop::add_region
00046 //       Access: Public
00047 //  Description: Adds the indicated region to the set of regions in
00048 //               the group.  Returns true if it was successfully
00049 //               added, or false if it was already on the list.
00050 ////////////////////////////////////////////////////////////////////
00051 INLINE bool PGTop::
00052 add_region(MouseWatcherRegion *region) {
00053   if (_watcher_group == (PGMouseWatcherGroup *)NULL) {
00054     return false;
00055   }
00056   return _watcher_group->add_region(region);
00057 }
00058 
00059 ////////////////////////////////////////////////////////////////////
00060 //     Function: PGTop::clear_regions
00061 //       Access: Public
00062 //  Description: Removes all the regions from the group.
00063 ////////////////////////////////////////////////////////////////////
00064 INLINE void PGTop::
00065 clear_regions() {
00066   if (_watcher_group == (PGMouseWatcherGroup *)NULL) {
00067     return;
00068   }
00069   _watcher_group->clear_regions();
00070 }

Generated on Fri May 2 00:42:45 2003 for Panda by doxygen1.3