Panda3D

Loading...
Searching...
No Matches
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
14#include "pgMouseWatcherBackground.h"
15#include "pgItem.h"
16
17 TypeHandle PGMouseWatcherBackground::_type_handle;
18
19/**
20 *
21 */
22PGMouseWatcherBackground::
23PGMouseWatcherBackground() :
24 MouseWatcherRegion("PGMouseWatcherBackground", 0, 0, 0, 0)
25{
26 set_active(false);
27 set_keyboard(true);
28}
29
30/**
31 *
32 */
33PGMouseWatcherBackground::
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 */
41 void PGMouseWatcherBackground::
42 press(const MouseWatcherParameter &param) {
43 PGItem::background_press(param);
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 */
50 void PGMouseWatcherBackground::
51 release(const MouseWatcherParameter &param) {
52 PGItem::background_release(param);
53}
54
55/**
56 * This is a callback hook function, called whenever the user presses a key.
57 */
58 void PGMouseWatcherBackground::
59 keystroke(const MouseWatcherParameter &param) {
60 PGItem::background_keystroke(param);
61}
62
63/**
64 * This is a callback hook function, called whenever the user uses the IME.
65 */
66 void PGMouseWatcherBackground::
67 candidate(const MouseWatcherParameter &param) {
68 PGItem::background_candidate(param);
69}
MouseWatcherParameter
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...
Definition mouseWatcherParameter.h:28
MouseWatcherRegion
This is the class that defines a rectangular region on the screen for the MouseWatcher.
Definition mouseWatcherRegion.h:31
PGItem::background_release
static void background_release(const MouseWatcherParameter &param)
Calls release() on all the PGItems with background focus.
Definition pgItem.cxx:803
PGItem::background_candidate
static void background_candidate(const MouseWatcherParameter &param)
Calls candidate() on all the PGItems with background focus.
Definition pgItem.cxx:833
PGItem::background_press
static void background_press(const MouseWatcherParameter &param)
Calls press() on all the PGItems with background focus.
Definition pgItem.cxx:786
PGItem::background_keystroke
static void background_keystroke(const MouseWatcherParameter &param)
Calls keystroke() on all the PGItems with background focus.
Definition pgItem.cxx:818
PGMouseWatcherBackground::keystroke
virtual void keystroke(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the user presses a key.
Definition pgMouseWatcherBackground.cxx:59
PGMouseWatcherBackground::candidate
virtual void candidate(const MouseWatcherParameter &param)
This is a callback hook function, called whenever the user uses the IME.
Definition pgMouseWatcherBackground.cxx:67
PGMouseWatcherBackground::press
virtual void press(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
Definition pgMouseWatcherBackground.cxx:42
PGMouseWatcherBackground::release
virtual void release(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
Definition pgMouseWatcherBackground.cxx:51
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
pgItem.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pgMouseWatcherBackground.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.