Panda3D
 All Classes Functions Variables Enumerations
pgMouseWatcherBackground.cxx
1 // Filename: pgMouseWatcherBackground.cxx
2 // Created by: drose (23Aug01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pgMouseWatcherBackground.h"
16 #include "pgItem.h"
17 
18 TypeHandle PGMouseWatcherBackground::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: PGMouseWatcherBackground::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 PGMouseWatcherBackground::
26 PGMouseWatcherBackground() :
27  MouseWatcherRegion("PGMouseWatcherBackground", 0, 0, 0, 0)
28 {
29  set_active(false);
30  set_keyboard(true);
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function: PGMouseWatcherBackground::Destructor
35 // Access: Public, Virtual
36 // Description:
37 ////////////////////////////////////////////////////////////////////
38 PGMouseWatcherBackground::
39 ~PGMouseWatcherBackground() {
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: PGMouseWatcherBackground::press
44 // Access: Public, Virtual
45 // Description: This is a callback hook function, called whenever a
46 // mouse or keyboard button is depressed while the mouse
47 // is within the background.
48 ////////////////////////////////////////////////////////////////////
52 }
53 
54 ////////////////////////////////////////////////////////////////////
55 // Function: PGMouseWatcherBackground::release
56 // Access: Public, Virtual
57 // Description: This is a callback hook function, called whenever a
58 // mouse or keyboard button previously depressed with
59 // press() is released.
60 ////////////////////////////////////////////////////////////////////
64 }
65 
66 ////////////////////////////////////////////////////////////////////
67 // Function: PGMouseWatcherBackground::keystroke
68 // Access: Public, Virtual
69 // Description: This is a callback hook function, called whenever
70 // the user presses a key.
71 ////////////////////////////////////////////////////////////////////
75 }
76 
77 ////////////////////////////////////////////////////////////////////
78 // Function: PGMouseWatcherBackground::candidate
79 // Access: Public, Virtual
80 // Description: This is a callback hook function, called whenever
81 // the user uses the IME.
82 ////////////////////////////////////////////////////////////////////
86 }
static void background_release(const MouseWatcherParameter &param)
Calls release() on all the PGItems with background focus.
Definition: pgItem.cxx:836
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:819
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:85
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
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:890
static void background_candidate(const MouseWatcherParameter &param)
Calls candidate() on all the PGItems with background focus.
Definition: pgItem.cxx:870
static void background_keystroke(const MouseWatcherParameter &param)
Calls keystroke() on all the PGItems with background focus.
Definition: pgItem.cxx:853