Panda3D

mouseWatcherRegion.cxx

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