00001 // Filename: mouseWatcherRegion.cxx00002 // Created by: drose (13Jul00)00003 //00004 ////////////////////////////////////////////////////////////////////00005 //00006 // PANDA 3D SOFTWARE00007 // Copyright (c) Carnegie Mellon University. All rights reserved.00008 //00009 // All use of this software is subject to the terms of the revised BSD00010 // license. You should have received a copy of this license along00011 // 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::output00024 // Access: Published00025 // Description:00026 ////////////////////////////////////////////////////////////////////00027 voidMouseWatcherRegion::00028output(ostream &out) const {
00029 out << get_name() << " lrbt = " << _frame;
00030 }
00031
00032 ////////////////////////////////////////////////////////////////////00033 // Function: MouseWatcherRegion::write00034 // Access: Published00035 // 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_region00046 // Access: Public, Virtual00047 // Description: This is a callback hook function, called whenever the00048 // mouse enters the region. The mouse is only00049 // considered to be "entered" in one region at a time;00050 // in the case of nested regions, it exits the outer00051 // region before entering the inner one.00052 ////////////////////////////////////////////////////////////////////00053 voidMouseWatcherRegion::00054enter_region(constMouseWatcherParameter &) {
00055 }
00056
00057 ////////////////////////////////////////////////////////////////////00058 // Function: MouseWatcherRegion::exit_region00059 // Access: Public, Virtual00060 // Description: This is a callback hook function, called whenever the00061 // mouse exits the region. The mouse is only considered00062 // to be "entered" in one region at a time; in the case00063 // of nested regions, it exits the outer region before00064 // entering the inner one.00065 ////////////////////////////////////////////////////////////////////00066 voidMouseWatcherRegion::00067exit_region(constMouseWatcherParameter &) {
00068 }
00069
00070 ////////////////////////////////////////////////////////////////////00071 // Function: MouseWatcherRegion::within_region00072 // Access: Public, Virtual00073 // Description: This is a callback hook function, called whenever the00074 // mouse moves within the boundaries of the region, even00075 // if it is also within the boundaries of a nested00076 // region. This is different from "enter", which is00077 // only called whenever the mouse is within only that00078 // region.00079 ////////////////////////////////////////////////////////////////////00080 voidMouseWatcherRegion::00081within_region(constMouseWatcherParameter &) {
00082 }
00083
00084 ////////////////////////////////////////////////////////////////////00085 // Function: MouseWatcherRegion::without_region00086 // Access: Public, Virtual00087 // Description: This is a callback hook function, called whenever the00088 // mouse moves completely outside the boundaries of the00089 // region. See within_region().00090 ////////////////////////////////////////////////////////////////////00091 voidMouseWatcherRegion::00092without_region(constMouseWatcherParameter &) {
00093 }
00094
00095 ////////////////////////////////////////////////////////////////////00096 // Function: MouseWatcherRegion::press00097 // Access: Public, Virtual00098 // Description: This is a callback hook function, called whenever a00099 // mouse or keyboard button is depressed while the mouse00100 // is within the region.00101 ////////////////////////////////////////////////////////////////////00102 voidMouseWatcherRegion::00103press(constMouseWatcherParameter &) {
00104 }
00105
00106 ////////////////////////////////////////////////////////////////////00107 // Function: MouseWatcherRegion::release00108 // Access: Public, Virtual00109 // Description: This is a callback hook function, called whenever a00110 // mouse or keyboard button previously depressed with00111 // press() is released.00112 ////////////////////////////////////////////////////////////////////00113 voidMouseWatcherRegion::00114release(constMouseWatcherParameter &) {
00115 }
00116
00117 ////////////////////////////////////////////////////////////////////00118 // Function: MouseWatcherRegion::keystroke00119 // Access: Public, Virtual00120 // Description: This is a callback hook function, called whenever a00121 // keystroke is generated by the user.00122 ////////////////////////////////////////////////////////////////////00123 voidMouseWatcherRegion::00124keystroke(constMouseWatcherParameter &) {
00125 }
00126
00127 ////////////////////////////////////////////////////////////////////00128 // Function: MouseWatcherRegion::candidate00129 // Access: Public, Virtual00130 // Description: This is a callback hook function, called whenever an00131 // IME candidate is highlighted by the user.00132 ////////////////////////////////////////////////////////////////////00133 voidMouseWatcherRegion::00134candidate(constMouseWatcherParameter &) {
00135 }
00136
00137 ////////////////////////////////////////////////////////////////////00138 // Function: MouseWatcherRegion::move00139 // Access: Public, Virtual00140 // Description: This is a callback hook function, called whenever a00141 // mouse is moved within the region.00142 ////////////////////////////////////////////////////////////////////00143 voidMouseWatcherRegion::00144move(constMouseWatcherParameter &) {
00145 }