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

Ogre::MouseTarget Class Reference

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

#include <OgreMouseTarget.h>

Inheritance diagram for Ogre::MouseTarget:

Ogre::PositionTarget Ogre::EventTarget 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

 MouseTarget ()
void processMouseEvent (MouseEvent *e)
void addMouseListener (MouseListener *l)
void removeMouseListener (MouseListener *l)
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

Protected Attributes

MouseListenermMouseListener

Detailed Description

Handles the adding and removing of MouseListeners.

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


Constructor & Destructor Documentation

Ogre::MouseTarget::MouseTarget  
 


Member Function Documentation

void Ogre::MouseTarget::addMouseListener MouseListener   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::MouseTarget::processMouseEvent MouseEvent   e
 

void Ogre::MouseTarget::removeMouseListener MouseListener   l
 


Member Data Documentation

MouseListener* Ogre::MouseTarget::mMouseListener [protected]
 

Copyright © 2002 by The OGRE Team