15 #include "pgMouseWatcherRegion.h" 18 #include "string_utils.h" 20 int PGMouseWatcherRegion::_next_index = 0;
28 PGMouseWatcherRegion::
29 PGMouseWatcherRegion(
PGItem *item) :
42 PGMouseWatcherRegion::
43 ~PGMouseWatcherRegion() {
58 if (_item != (
PGItem *)NULL) {
74 if (_item != (
PGItem *)NULL) {
91 if (_item != (
PGItem *)NULL) {
105 if (_item != (
PGItem *)NULL) {
119 if (_item != (
PGItem *)NULL) {
120 _item->
press(param,
false);
133 if (_item != (
PGItem *)NULL) {
146 if (_item != (
PGItem *)NULL) {
159 if (_item != (
PGItem *)NULL) {
172 if (_item != (
PGItem *)NULL) {
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 the user moves the mouse within 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 enter_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse enters the region.
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 keystroke(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the user presses a key.
virtual void release(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void release(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
This is the class that defines a rectangular region on the screen for the MouseWatcher.
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 within_region(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever the mouse moves within the boundaries of 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 move(const MouseWatcherParameter ¶m)
This is a callback hook function, called whenever a mouse is moved while within the region...
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, bool background)
This is a callback hook function, called whenever the user highlights an option in the IME window...
virtual void keystroke(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever the user presses a key.
TypeHandle is the identifier used to differentiate C++ class types.
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.
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 press(const MouseWatcherParameter ¶m, bool background)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...