open_toontown_panda3d/panda/src/pgui/pgMouseWatcherBackground.cxx

87 lines
3.2 KiB
C++

// Filename: pgMouseWatcherBackground.cxx
// Created by: drose (23Aug01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#include "pgMouseWatcherBackground.h"
#include "pgItem.h"
TypeHandle PGMouseWatcherBackground::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
PGMouseWatcherBackground::
PGMouseWatcherBackground() :
MouseWatcherRegion("PGMouseWatcherBackground", 0, 0, 0, 0)
{
set_active(false);
set_keyboard(true);
}
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
PGMouseWatcherBackground::
~PGMouseWatcherBackground() {
}
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::press
// Access: Public, Virtual
// Description: This is a callback hook function, called whenever a
// mouse or keyboard button is depressed while the mouse
// is within the background.
////////////////////////////////////////////////////////////////////
void PGMouseWatcherBackground::
press(const MouseWatcherParameter &param) {
PGItem::background_press(param);
}
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::release
// Access: Public, Virtual
// Description: This is a callback hook function, called whenever a
// mouse or keyboard button previously depressed with
// press() is released.
////////////////////////////////////////////////////////////////////
void PGMouseWatcherBackground::
release(const MouseWatcherParameter &param) {
PGItem::background_release(param);
}
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::keystroke
// Access: Public, Virtual
// Description: This is a callback hook function, called whenever
// the user presses a key.
////////////////////////////////////////////////////////////////////
void PGMouseWatcherBackground::
keystroke(const MouseWatcherParameter &param) {
PGItem::background_keystroke(param);
}
////////////////////////////////////////////////////////////////////
// Function: PGMouseWatcherBackground::candidate
// Access: Public, Virtual
// Description: This is a callback hook function, called whenever
// the user uses the IME.
////////////////////////////////////////////////////////////////////
void PGMouseWatcherBackground::
candidate(const MouseWatcherParameter &param) {
PGItem::background_candidate(param);
}