Panda3D
pgMouseWatcherBackground.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 pgMouseWatcherBackground.cxx
10  * @author drose
11  * @date 2001-08-23
12  */
13 
15 #include "pgItem.h"
16 
17 TypeHandle PGMouseWatcherBackground::_type_handle;
18 
19 /**
20  *
21  */
22 PGMouseWatcherBackground::
23 PGMouseWatcherBackground() :
24  MouseWatcherRegion("PGMouseWatcherBackground", 0, 0, 0, 0)
25 {
26  set_active(false);
27  set_keyboard(true);
28 }
29 
30 /**
31  *
32  */
33 PGMouseWatcherBackground::
34 ~PGMouseWatcherBackground() {
35 }
36 
37 /**
38  * This is a callback hook function, called whenever a mouse or keyboard
39  * button is depressed while the mouse is within the background.
40  */
44 }
45 
46 /**
47  * This is a callback hook function, called whenever a mouse or keyboard
48  * button previously depressed with press() is released.
49  */
53 }
54 
55 /**
56  * This is a callback hook function, called whenever the user presses a key.
57  */
61 }
62 
63 /**
64  * This is a callback hook function, called whenever the user uses the IME.
65  */
69 }
static void background_release(const MouseWatcherParameter &param)
Calls release() on all the PGItems with background focus.
Definition: pgItem.cxx:783
virtual void press(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
static void background_press(const MouseWatcherParameter &param)
Calls press() on all the PGItems with background focus.
Definition: pgItem.cxx:769
This is the class that defines a rectangular region on the screen for the MouseWatcher.
virtual void keystroke(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the user presses a key.
virtual void candidate(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the user uses the IME.
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.
virtual void release(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
virtual void set_active(bool active)
Sets whether the PGItem is active for mouse watching.
Definition: pgItem.cxx:828
static void background_candidate(const MouseWatcherParameter &param)
Calls candidate() on all the PGItems with background focus.
Definition: pgItem.cxx:811
static void background_keystroke(const MouseWatcherParameter &param)
Calls keystroke() on all the PGItems with background focus.
Definition: pgItem.cxx:797
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.