Panda3D

pgMouseWatcherBackground.cxx

00001 // Filename: pgMouseWatcherBackground.cxx
00002 // Created by:  drose (23Aug01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "pgMouseWatcherBackground.h"
00016 #include "pgItem.h"
00017 
00018 TypeHandle PGMouseWatcherBackground::_type_handle;
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: PGMouseWatcherBackground::Constructor
00022 //       Access: Public
00023 //  Description: 
00024 ////////////////////////////////////////////////////////////////////
00025 PGMouseWatcherBackground::
00026 PGMouseWatcherBackground() :
00027   MouseWatcherRegion("PGMouseWatcherBackground", 0, 0, 0, 0)
00028 {
00029   set_active(false);
00030   set_keyboard(true);
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //     Function: PGMouseWatcherBackground::Destructor
00035 //       Access: Public, Virtual
00036 //  Description: 
00037 ////////////////////////////////////////////////////////////////////
00038 PGMouseWatcherBackground::
00039 ~PGMouseWatcherBackground() {
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: PGMouseWatcherBackground::press
00044 //       Access: Public, Virtual
00045 //  Description: This is a callback hook function, called whenever a
00046 //               mouse or keyboard button is depressed while the mouse
00047 //               is within the background.
00048 ////////////////////////////////////////////////////////////////////
00049 void PGMouseWatcherBackground::
00050 press(const MouseWatcherParameter &param) {
00051   PGItem::background_press(param);
00052 }
00053 
00054 ////////////////////////////////////////////////////////////////////
00055 //     Function: PGMouseWatcherBackground::release
00056 //       Access: Public, Virtual
00057 //  Description: This is a callback hook function, called whenever a
00058 //               mouse or keyboard button previously depressed with
00059 //               press() is released.
00060 ////////////////////////////////////////////////////////////////////
00061 void PGMouseWatcherBackground::
00062 release(const MouseWatcherParameter &param) {
00063   PGItem::background_release(param);
00064 }
00065 
00066 ////////////////////////////////////////////////////////////////////
00067 //     Function: PGMouseWatcherBackground::keystroke
00068 //       Access: Public, Virtual
00069 //  Description: This is a callback hook function, called whenever
00070 //               the user presses a key.
00071 ////////////////////////////////////////////////////////////////////
00072 void PGMouseWatcherBackground::
00073 keystroke(const MouseWatcherParameter &param) {
00074   PGItem::background_keystroke(param);
00075 }
00076 
00077 ////////////////////////////////////////////////////////////////////
00078 //     Function: PGMouseWatcherBackground::candidate
00079 //       Access: Public, Virtual
00080 //  Description: This is a callback hook function, called whenever
00081 //               the user uses the IME.
00082 ////////////////////////////////////////////////////////////////////
00083 void PGMouseWatcherBackground::
00084 candidate(const MouseWatcherParameter &param) {
00085   PGItem::background_candidate(param);
00086 }
 All Classes Functions Variables Enumerations