19int PGMouseWatcherRegion::_next_index = 0;
26PGMouseWatcherRegion(
PGItem *item) :
38~PGMouseWatcherRegion() {
50 if (_item !=
nullptr) {
51 _item->enter_region(param);
63 if (_item !=
nullptr) {
64 _item->exit_region(param);
76 if (_item !=
nullptr) {
77 _item->within_region(param);
87 if (_item !=
nullptr) {
88 _item->without_region(param);
98 if (_item !=
nullptr) {
99 _item->press(param,
false);
109 if (_item !=
nullptr) {
110 _item->release(param,
false);
119 if (_item !=
nullptr) {
120 _item->keystroke(param,
false);
130 if (_item !=
nullptr) {
131 _item->candidate(param,
false);
141 if (_item !=
nullptr) {
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
This is the class that defines a rectangular region on the screen for the MouseWatcher.
This is the base class for all the various kinds of gui widget objects.
virtual void keystroke(const MouseWatcherParameter ¶m)
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 release(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
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 within_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves within the boundaries of the region...
virtual void exit_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse exits 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 press(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.