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

panda/src/tform/mouseWatcherRegion.cxx

Go to the documentation of this file.
00001 // Filename: mouseWatcherRegion.cxx
00002 // Created by:  drose (13Jul00)
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 #include "mouseWatcherRegion.h"
00020 
00021 #include <indent.h>
00022 
00023 
00024 TypeHandle MouseWatcherRegion::_type_handle;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: MouseWatcherRegion::output
00028 //       Access: Published
00029 //  Description:
00030 ////////////////////////////////////////////////////////////////////
00031 void MouseWatcherRegion::
00032 output(ostream &out) const {
00033   out << get_name() << " lrbt = " << _frame;
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: MouseWatcherRegion::write
00038 //       Access: Published
00039 //  Description:
00040 ////////////////////////////////////////////////////////////////////
00041 void MouseWatcherRegion::
00042 write(ostream &out, int indent_level) const {
00043   indent(out, indent_level)
00044     << get_name() << " lrbt = " << _frame
00045     << ", sort = " << _sort << "\n";
00046 }
00047 
00048 ////////////////////////////////////////////////////////////////////
00049 //     Function: MouseWatcherRegion::enter
00050 //       Access: Public, Virtual
00051 //  Description: This is a callback hook function, called whenever the
00052 //               mouse enters the region.  The mouse is only
00053 //               considered to be "entered" in one region at a time;
00054 //               in the case of nested regions, it exits the outer
00055 //               region before entering the inner one.
00056 ////////////////////////////////////////////////////////////////////
00057 void MouseWatcherRegion::
00058 enter(const MouseWatcherParameter &) {
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: MouseWatcherRegion::exit
00063 //       Access: Public, Virtual
00064 //  Description: This is a callback hook function, called whenever the
00065 //               mouse exits the region.  The mouse is only considered
00066 //               to be "entered" in one region at a time; in the case
00067 //               of nested regions, it exits the outer region before
00068 //               entering the inner one.
00069 ////////////////////////////////////////////////////////////////////
00070 void MouseWatcherRegion::
00071 exit(const MouseWatcherParameter &) {
00072 }
00073 
00074 ////////////////////////////////////////////////////////////////////
00075 //     Function: MouseWatcherRegion::within
00076 //       Access: Public, Virtual
00077 //  Description: This is a callback hook function, called whenever the
00078 //               mouse moves within the boundaries of the region, even
00079 //               if it is also within the boundaries of a nested
00080 //               region.  This is different from "enter", which is
00081 //               only called whenever the mouse is within only that
00082 //               region.
00083 ////////////////////////////////////////////////////////////////////
00084 void MouseWatcherRegion::
00085 within(const MouseWatcherParameter &) {
00086 }
00087 
00088 ////////////////////////////////////////////////////////////////////
00089 //     Function: MouseWatcherRegion::without
00090 //       Access: Public, Virtual
00091 //  Description: This is a callback hook function, called whenever the
00092 //               mouse moves completely outside the boundaries of the
00093 //               region.  See within().
00094 ////////////////////////////////////////////////////////////////////
00095 void MouseWatcherRegion::
00096 without(const MouseWatcherParameter &) {
00097 }
00098 
00099 ////////////////////////////////////////////////////////////////////
00100 //     Function: MouseWatcherRegion::press
00101 //       Access: Public, Virtual
00102 //  Description: This is a callback hook function, called whenever a
00103 //               mouse or keyboard button is depressed while the mouse
00104 //               is within the region.
00105 ////////////////////////////////////////////////////////////////////
00106 void MouseWatcherRegion::
00107 press(const MouseWatcherParameter &) {
00108 }
00109 
00110 ////////////////////////////////////////////////////////////////////
00111 //     Function: MouseWatcherRegion::release
00112 //       Access: Public, Virtual
00113 //  Description: This is a callback hook function, called whenever a
00114 //               mouse or keyboard button previously depressed with
00115 //               press() is released.
00116 ////////////////////////////////////////////////////////////////////
00117 void MouseWatcherRegion::
00118 release(const MouseWatcherParameter &) {
00119 }
00120 
00121 ////////////////////////////////////////////////////////////////////
00122 //     Function: MouseWatcherRegion::keystroke
00123 //       Access: Public, Virtual
00124 //  Description: This is a callback hook function, called whenever a
00125 //               keystroke is generated by the user.
00126 ////////////////////////////////////////////////////////////////////
00127 void MouseWatcherRegion::
00128 keystroke(const MouseWatcherParameter &) {
00129 }

Generated on Fri May 2 00:44:29 2003 for Panda by doxygen1.3