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
15#include "pgItem.h"
16
17TypeHandle 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 */
45
46/**
47 * This is a callback hook function, called whenever a mouse or keyboard
48 * button previously depressed with press() is released.
49 */
54
55/**
56 * This is a callback hook function, called whenever the user presses a key.
57 */
62
63/**
64 * This is a callback hook function, called whenever the user uses the IME.
65 */
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.
static void background_release(const MouseWatcherParameter &param)
Calls release() on all the PGItems with background focus.
Definition pgItem.cxx:798
static void background_candidate(const MouseWatcherParameter &param)
Calls candidate() on all the PGItems with background focus.
Definition pgItem.cxx:822
static void background_press(const MouseWatcherParameter &param)
Calls press() on all the PGItems with background focus.
Definition pgItem.cxx:786
static void background_keystroke(const MouseWatcherParameter &param)
Calls keystroke() on all the PGItems with background focus.
Definition pgItem.cxx:810
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.
virtual void press(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button is depressed while the m...
virtual void release(const MouseWatcherParameter &param)
This is a callback hook function, called whenever a mouse or keyboard button previously depressed wit...
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.