#include <OgreEventMulticaster.h>
Inheritance diagram for Ogre::EventMulticaster:


Public Methods | |
| EventMulticaster (EventListener *a, EventListener *b) | |
| Creates an event multicaster instance which chains listener-a with listener-b. | |
| void | listSelected (ListSelectionEvent *e) |
| Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b. | |
| void | actionPerformed (ActionEvent *e) |
| Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b. | |
| void | scrollPerformed (ScrollEvent *e) |
| Handles the scrollPerformed event by invoking the scrollPerformed methods on listener-a and listener-b. | |
| void | keyPressed (KeyEvent *e) |
| Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b. | |
| void | keyReleased (KeyEvent *e) |
| Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b. | |
| void | keyClicked (KeyEvent *e) |
| Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b. | |
| void | mouseClicked (MouseEvent *e) |
| Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b. | |
| void | mouseDragged (MouseEvent *e) |
| Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b. | |
| void | mouseEntered (MouseEvent *e) |
| Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b. | |
| void | mouseExited (MouseEvent *e) |
| Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b. | |
| void | mouseMoved (MouseEvent *e) |
| Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b. | |
| void | mousePressed (MouseEvent *e) |
| Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b. | |
| void | mouseReleased (MouseEvent *e) |
| Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b. | |
| EventListener * | remove (EventListener *oldl, bool &deleteSelf) |
| Removes a listener from this multicaster and returns the resulting multicast listener. | |
| virtual bool | isMulticaster () const |
| Returns whether or not the listener is a multicaster. | |
| virtual void | mouseDragEntered (MouseEvent *e) |
| virtual void | mouseDragExited (MouseEvent *e) |
| virtual void | mouseDragDropped (MouseEvent *e) |
Static Public Methods | |
| KeyListener * | add (KeyListener *a, KeyListener *b) |
| Adds action-listener-a with action-listener-b and returns the resulting multicast listener. | |
| MouseListener * | add (MouseListener *a, MouseListener *b) |
| ActionListener * | add (ActionListener *a, ActionListener *b) |
| MouseMotionListener * | add (MouseMotionListener *a, MouseMotionListener *b) |
| ListSelectionListener * | add (ListSelectionListener *a, ListSelectionListener *b) |
| ScrollListener * | add (ScrollListener *a, ScrollListener *b) |
| ActionListener * | remove (ActionListener *l, ActionListener *oldl) |
| Removes the old action-listener from action-listener-l and returns the resulting multicast listener. | |
| ScrollListener * | remove (ScrollListener *l, ScrollListener *oldl) |
| Removes the old scroll-listener from scroll-listener-l and returns the resulting multicast listener. | |
| ListSelectionListener * | remove (ListSelectionListener *l, ListSelectionListener *oldl) |
| Removes the old listSlection-listener from action-listener-l and returns the resulting multicast listener. | |
| KeyListener * | remove (KeyListener *l, KeyListener *oldl) |
| Removes the old key-listener from key-listener-l and returns the resulting multicast listener. | |
| MouseMotionListener * | remove (MouseMotionListener *l, MouseMotionListener *oldl) |
| Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener. | |
| MouseListener * | remove (MouseListener *l, MouseListener *oldl) |
| Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener. | |
Static Protected Methods | |
| EventListener * | removeInternal (EventListener *l, EventListener *oldl) |
| Returns the resulting multicast listener after removing the old listener from listener-l. | |
| EventListener * | addInternal (EventListener *a, EventListener *b) |
| Returns the resulting multicast listener from adding listener-a and listener-b together. | |
| EventListener * | convertMultiToListener (EventMulticaster *m) |
| Converts a EventMulticaster to the base parent class EventListener. | |
| EventMulticaster * | convertListenerToMulti (EventListener *l) |
| Converts a EventListener to the class EventMulticaster . | |
Protected Attributes | |
| EventListener * | mA |
| EventListener * | mB |
Definition at line 81 of file OgreEventMulticaster.h.
|
||||||||||||
|
Creates an event multicaster instance which chains listener-a with listener-b.
Input parameters
Definition at line 33 of file OgreEventMulticaster.cpp. Referenced by addInternal(). |
|
|
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
Implements Ogre::ActionListener. Definition at line 79 of file OgreEventMulticaster.cpp. |
|
||||||||||||
|
Definition at line 56 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Definition at line 61 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Definition at line 46 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Definition at line 51 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Definition at line 38 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
Definition at line 42 of file OgreEventMulticaster.cpp. References addInternal(). |
|
||||||||||||
|
Returns the resulting multicast listener from adding listener-a and listener-b together. If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new EventMulticaster instance which chains a with b.
Definition at line 66 of file OgreEventMulticaster.cpp. References convertMultiToListener(), and EventMulticaster(). |
|
|
Converts a EventListener to the class EventMulticaster . Since multicaster has many parent listeners (Action,Mouse etc), it has multiple EventListeners, so choose 1 (Action arbitrary) to reach the EventListener. This method throws an exception if the listener isn't a multicaster. Definition at line 233 of file OgreEventMulticaster.cpp. References Except, and Ogre::EventListener::isMulticaster(). Referenced by removeInternal(). |
|
|
Converts a EventMulticaster to the base parent class EventListener. Since multicaster has many parent listeners (Action,Mouse etc), it has multiple EventListeners, so choose 1 (Action arbitrary) to reach the EventListener Definition at line 222 of file OgreEventMulticaster.cpp. Referenced by addInternal(), and remove(). |
|
|
Returns whether or not the listener is a multicaster.
Reimplemented from Ogre::EventListener. Definition at line 216 of file OgreEventMulticaster.cpp. |
|
|
Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
Definition at line 97 of file OgreEventMulticaster.cpp. |
|
|
Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.
Definition at line 126 of file OgreEventMulticaster.cpp. |
|
|
Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.
Definition at line 132 of file OgreEventMulticaster.cpp. |
|
|
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
Definition at line 73 of file OgreEventMulticaster.cpp. |
|
|
Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.
Implements Ogre::MouseListener. Definition at line 91 of file OgreEventMulticaster.cpp. |
|
|
Definition at line 104 of file OgreEventListeners.h. Referenced by Ogre::MouseTarget::processMouseEvent(). |
|
|
Definition at line 102 of file OgreEventListeners.h. Referenced by Ogre::MouseTarget::processMouseEvent(). |
|
|
Definition at line 103 of file OgreEventListeners.h. Referenced by Ogre::MouseTarget::processMouseEvent(). |
|
|
Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b.
|
|
|
Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b.
Implements Ogre::MouseListener. Definition at line 103 of file OgreEventMulticaster.cpp. |
|
|
Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.
Implements Ogre::MouseListener. Definition at line 109 of file OgreEventMulticaster.cpp. |
|
|
Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b.
|
|
|
Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b.
Implements Ogre::MouseListener. Definition at line 115 of file OgreEventMulticaster.cpp. |
|
|
Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.
Implements Ogre::MouseListener. Definition at line 121 of file OgreEventMulticaster.cpp. |
|
||||||||||||
|
Removes a listener from this multicaster and returns the resulting multicast listener.
Definition at line 168 of file OgreEventMulticaster.cpp. References addInternal(), convertMultiToListener(), mA, mB, and removeInternal(). |
|
||||||||||||
|
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
Definition at line 154 of file OgreEventMulticaster.cpp. References removeInternal(). |
|
||||||||||||
|
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
Definition at line 163 of file OgreEventMulticaster.cpp. References removeInternal(). |
|
||||||||||||
|
Removes the old key-listener from key-listener-l and returns the resulting multicast listener.
Definition at line 158 of file OgreEventMulticaster.cpp. References removeInternal(). |
|
||||||||||||
|
Removes the old listSlection-listener from action-listener-l and returns the resulting multicast listener.
Definition at line 138 of file OgreEventMulticaster.cpp. References removeInternal(). |
|
||||||||||||
|
Removes the old scroll-listener from scroll-listener-l and returns the resulting multicast listener.
Definition at line 149 of file OgreEventMulticaster.cpp. References removeInternal(). |
|
||||||||||||
|
Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
Definition at line 144 of file OgreEventMulticaster.cpp. References removeInternal(). Referenced by removeInternal(). |
|
||||||||||||
|
Returns the resulting multicast listener after removing the old listener from listener-l. If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of EventMulticaster, then it removes the old listener from it. Else, returns listener l.
Definition at line 191 of file OgreEventMulticaster.cpp. References convertListenerToMulti(), Ogre::EventListener::isMulticaster(), and remove(). Referenced by remove(). |
|
|
Handles the scrollPerformed event by invoking the scrollPerformed methods on listener-a and listener-b.
Definition at line 85 of file OgreEventMulticaster.cpp. |
|
|
Definition at line 276 of file OgreEventMulticaster.h. Referenced by EventMulticaster(), and remove(). |
|
|
Definition at line 277 of file OgreEventMulticaster.h. Referenced by EventMulticaster(), and remove(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:17:21 2004