Panda3D
mouseWatcherRegion.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 mouseWatcherRegion.cxx
10  * @author drose
11  * @date 2000-07-13
12  */
13 
14 #include "mouseWatcherRegion.h"
15 
16 #include "indent.h"
17 
18 
19 TypeHandle MouseWatcherRegion::_type_handle;
20 
21 /**
22  *
23  */
24 void MouseWatcherRegion::
25 output(std::ostream &out) const {
26  out << get_name() << " lrbt = " << _frame;
27 }
28 
29 /**
30  *
31  */
32 void MouseWatcherRegion::
33 write(std::ostream &out, int indent_level) const {
34  indent(out, indent_level)
35  << get_name() << " lrbt = " << _frame
36  << ", sort = " << _sort << "\n";
37 }
38 
39 /**
40  * This is a callback hook function, called whenever the mouse enters the
41  * region. The mouse is only considered to be "entered" in one region at a
42  * time; in the case of nested regions, it exits the outer region before
43  * entering the inner one.
44  */
47 }
48 
49 /**
50  * This is a callback hook function, called whenever the mouse exits the
51  * region. The mouse is only considered to be "entered" in one region at a
52  * time; in the case of nested regions, it exits the outer region before
53  * entering the inner one.
54  */
57 }
58 
59 /**
60  * This is a callback hook function, called whenever the mouse moves within
61  * the boundaries of the region, even if it is also within the boundaries of a
62  * nested region. This is different from "enter", which is only called
63  * whenever the mouse is within only that region.
64  */
67 }
68 
69 /**
70  * This is a callback hook function, called whenever the mouse moves
71  * completely outside the boundaries of the region. See within_region().
72  */
75 }
76 
77 /**
78  * This is a callback hook function, called whenever a mouse or keyboard
79  * button is depressed while the mouse is within the region.
80  */
83 }
84 
85 /**
86  * This is a callback hook function, called whenever a mouse or keyboard
87  * button previously depressed with press() is released.
88  */
91 }
92 
93 /**
94  * This is a callback hook function, called whenever a keystroke is generated
95  * by the user.
96  */
99 }
100 
101 /**
102  * This is a callback hook function, called whenever an IME candidate is
103  * highlighted by the user.
104  */
107 }
108 
109 /**
110  * This is a callback hook function, called whenever a mouse is moved within
111  * the region.
112  */
115 }
virtual void without_region(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the mouse moves completely outside the boundaries o...
virtual void exit_region(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the mouse exits the region.
virtual void release(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void enter_region(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the mouse enters the region.
virtual void within_region(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the mouse moves within the boundaries of the region...
virtual void press(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
virtual void candidate(const MouseWatcherParameter &param)
This is a callback hook function, called whenever an IME candidate is highlighted by the user.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
virtual void keystroke(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a keystroke is generated by the user.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void move(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse is moved within the region.