Panda3D
pgButtonNotify.h
1 // Filename: pgButtonNotify.h
2 // Created by: drose (18Aug05)
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 #ifndef PGBUTTONNOTIFY_H
16 #define PGBUTTONNOTIFY_H
17 
18 #include "pandabase.h"
19 #include "pgItemNotify.h"
20 
21 class PGButton;
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PGButtonNotify
25 // Description : Objects that inherit from this class can receive
26 // notify messages when a slider bar moves or otherwise
27 // is reconfigured.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDA_PGUI PGButtonNotify : public PGItemNotify {
30 public:
31  INLINE PGButtonNotify();
32 
33 protected:
34  virtual void button_click(PGButton *button, const MouseWatcherParameter &param);
35 
36  friend class PGButton;
37 };
38 
39 #include "pgButtonNotify.I"
40 
41 #endif
This is a particular kind of PGItem that is specialized to behave like a normal button object...
Definition: pgButton.h:32
Objects that inherit from this class can receive notify messages when a slider bar moves or otherwise...
Objects that inherit from this class can receive specialized messages when PGItems change in certain ...
Definition: pgItemNotify.h:30
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...