#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. More... | |
void | listSelected (ListSelectionEvent *e) |
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b. More... | |
void | actionPerformed (ActionEvent *e) |
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b. More... | |
void | mouseClicked (MouseEvent *e) |
Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b. More... | |
void | mouseDragged (MouseEvent *e) |
Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b. More... | |
void | mouseEntered (MouseEvent *e) |
Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b. More... | |
void | mouseExited (MouseEvent *e) |
Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b. More... | |
void | mouseMoved (MouseEvent *e) |
Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b. More... | |
void | mousePressed (MouseEvent *e) |
Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b. More... | |
void | mouseReleased (MouseEvent *e) |
Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b. More... | |
EventListener * | remove (EventListener *oldl, bool &deleteSelf) |
Removes a listener from this multicaster and returns the resulting multicast listener. More... | |
virtual bool | isMulticaster () |
Returns whether or not the listener is a multicaster. More... | |
Static Public Methods | |
MouseListener * | add (MouseListener *a, MouseListener *b) |
Adds action-listener-a with action-listener-b and returns the resulting multicast listener. More... | |
ActionListener * | add (ActionListener *a, ActionListener *b) |
MouseMotionListener * | add (MouseMotionListener *a, MouseMotionListener *b) |
ListSelectionListener * | add (ListSelectionListener *a, ListSelectionListener *b) |
ActionListener * | remove (ActionListener *l, ActionListener *oldl) |
Removes the old action-listener from action-listener-l and returns the resulting multicast listener. More... | |
ListSelectionListener * | remove (ListSelectionListener *l, ListSelectionListener *oldl) |
Removes the old listSlection-listener from action-listener-l and returns the resulting multicast listener. More... | |
MouseMotionListener * | remove (MouseMotionListener *l, MouseMotionListener *oldl) |
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener. More... | |
MouseListener * | remove (MouseListener *l, MouseListener *oldl) |
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener. More... | |
Static Protected Methods | |
EventListener * | removeInternal (EventListener *l, EventListener *oldl) |
Returns the resulting multicast listener after removing the old listener from listener-l. More... | |
EventListener * | addInternal (EventListener *a, EventListener *b) |
Returns the resulting multicast listener from adding listener-a and listener-b together. More... | |
EventListener * | convertMultiToListener (EventMulticaster *m) |
Converts a EventMulticaster to the base parent class EventListener. More... | |
EventMulticaster * | convertListenerToMulti (EventListener *l) |
Converts a EventListener to the class EventMulticaster . More... | |
Protected Attributes | |
EventListener * | mA |
EventListener * | mB |
|
Creates an event multicaster instance which chains listener-a with listener-b.
Input parameters
|
|
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
Implements Ogre::ActionListener. |
|
|
|
|
|
|
|
Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
|
|
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.
|
|
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. |
|
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 |
|
Returns whether or not the listener is a multicaster.
Reimplemented from Ogre::EventListener. |
|
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
|
|
Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.
Implements Ogre::MouseListener. |
|
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. |
|
Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.
Implements Ogre::MouseListener. |
|
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. |
|
Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.
Implements Ogre::MouseListener. |
|
Removes a listener from this multicaster and returns the resulting multicast listener.
|
|
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
|
|
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
|
|
Removes the old listSlection-listener from action-listener-l and returns the resulting multicast listener.
|
|
Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
|
|
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.
|
|
|
|
|
Copyright © 2002 by The OGRE Team