Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::MouseMotionTarget Class Reference

Handles the adding and removing of MouseMotionListeners. More...

#include <OgreMouseMotionTarget.h>

Inheritance diagram for Ogre::MouseMotionTarget:

Ogre::PositionTarget Ogre::Cursor Ogre::EventProcessor Ogre::GuiElement Ogre::GuiContainer Ogre::TextAreaGuiElement Ogre::PanelGuiElement Ogre::BorderPanelGuiElement Ogre::CursorGuiElement Ogre::ListGuiElement Ogre::ButtonGuiElement List of all members.

Public Methods

 MouseMotionTarget ()
void processMouseMotionEvent (MouseEvent *e)
void addMouseMotionListener (MouseMotionListener *l)
void removeMouseMotionListener (MouseMotionListener *l)

Protected Attributes

MouseMotionListenermMouseMotionListener

Private Methods

virtual Real getLeft (void) const=0
 Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). More...

virtual Real getTop (void) const=0
 Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). More...

virtual PositionTargetgetPositionTargetParent ()=0
virtual void processEvent (InputEvent *e)=0

Detailed Description

Handles the adding and removing of MouseMotionListeners.

Remarks:
This is implemented through the use of a binary multicaster. See EventMulticaster. GuiElements (or other components) that process the Mouse Motion Event should subclass this class and call processMouseMotionEvent when that event is identified.


Constructor & Destructor Documentation

Ogre::MouseMotionTarget::MouseMotionTarget  
 


Member Function Documentation

void Ogre::MouseMotionTarget::addMouseMotionListener MouseMotionListener   l
 

virtual Real Ogre::PositionTarget::getLeft void    const [pure virtual, inherited]
 

Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right).

Implemented in Ogre::Cursor.

virtual PositionTarget* Ogre::PositionTarget::getPositionTargetParent   [pure virtual, inherited]
 

Implemented in Ogre::Cursor.

virtual Real Ogre::PositionTarget::getTop void    const [pure virtual, inherited]
 

Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom).

Implemented in Ogre::Cursor.

virtual void Ogre::EventTarget::processEvent InputEvent   e [pure virtual, inherited]
 

Implemented in Ogre::Cursor.

void Ogre::MouseMotionTarget::processMouseMotionEvent MouseEvent   e
 

void Ogre::MouseMotionTarget::removeMouseMotionListener MouseMotionListener   l
 


Member Data Documentation

MouseMotionListener* Ogre::MouseMotionTarget::mMouseMotionListener [protected]
 

Copyright © 2002 by The OGRE Team