Go to the documentation of this file.
19 int PGMouseWatcherRegion::_next_index = 0;
25 PGMouseWatcherRegion::
26 PGMouseWatcherRegion(
PGItem *item) :
37 PGMouseWatcherRegion::
38 ~PGMouseWatcherRegion() {
50 if (_item !=
nullptr) {
63 if (_item !=
nullptr) {
76 if (_item !=
nullptr) {
87 if (_item !=
nullptr) {
98 if (_item !=
nullptr) {
99 _item->
press(param,
false);
109 if (_item !=
nullptr) {
119 if (_item !=
nullptr) {
130 if (_item !=
nullptr) {
141 if (_item !=
nullptr) {
virtual void candidate(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever the user highlights an option in the IME window.
virtual void candidate(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the user selects an option from the IME menu.
virtual void keystroke(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever the user presses a key.
virtual void move(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the user moves the mouse within the region.
virtual void press(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
virtual void exit_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse exits the region.
This is the base class for all the various kinds of gui widget objects.
virtual void move(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse is moved while within the region.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void keystroke(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the user presses a key.
virtual void without_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves completely outside the boundaries o...
TypeHandle is the identifier used to differentiate C++ class types.
virtual void within_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves within the boundaries of the region...
virtual void without_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves completely outside the boundaries o...
virtual void release(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void exit_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse exits the region.
virtual void release(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void press(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
This is the class that defines a rectangular region on the screen for the MouseWatcher.
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void within_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves within the boundaries of the region...