<html> <head> <title>Ogre::MouseMotionTarget class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::MouseMotionTarget Class Reference</h1>Handles the adding and removing of MouseMotionListeners. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreMouseMotionTarget_8h-source.html">OgreMouseMotionTarget.h</a>></code> <p> Inheritance diagram for Ogre::MouseMotionTarget:<p><center><img src="classOgre_1_1MouseMotionTarget__inherit__graph.png" border="0" usemap="#Ogre_1_1MouseMotionTarget__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1MouseMotionTarget__inherit__map"> <area href="classOgre_1_1Cursor.html" shape="rect" coords="7,244,95,225" alt=""> <area href="classOgre_1_1EventProcessor.html" shape="rect" coords="119,244,260,225" alt=""> <area href="classOgre_1_1GuiElement.html" shape="rect" coords="284,244,399,225" alt=""> <area href="classOgre_1_1PositionTarget.html" shape="rect" coords="123,105,256,86" alt=""> <area href="classOgre_1_1EventTarget.html" shape="rect" coords="129,36,249,17" alt=""> <area href="classOgre_1_1GuiContainer.html" shape="rect" coords="108,313,233,294" alt=""> <area href="classOgre_1_1TextAreaGuiElement.html" shape="rect" coords="257,313,425,294" alt=""> <area href="classOgre_1_1TTYGuiElement.html" shape="rect" coords="449,313,591,294" alt=""> <area href="classOgre_1_1PanelGuiElement.html" shape="rect" coords="96,382,245,364" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::MouseMotionTarget:<p><center><img src="classOgre_1_1MouseMotionTarget__coll__graph.png" border="0" usemap="#Ogre_1_1MouseMotionTarget__coll__map" alt="Collaboration graph"></center> <map name="Ogre_1_1MouseMotionTarget__coll__map"> <area href="classOgre_1_1PositionTarget.html" shape="rect" coords="7,108,140,89" alt=""> <area href="classOgre_1_1EventTarget.html" shape="rect" coords="13,36,133,17" alt=""> <area href="classOgre_1_1MouseMotionListener.html" shape="rect" coords="164,108,337,89" alt=""> <area href="classOgre_1_1EventListener.html" shape="rect" coords="187,36,315,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1MouseMotionTarget-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1MouseMotionTargeta0">MouseMotionTarget</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1TTYGuiElementa93">processMouseMotionEvent</a> (<a class="el" href="classOgre_1_1MouseEvent.html">MouseEvent</a> *e)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1TTYGuiElementa94">addMouseMotionListener</a> (<a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a> *l)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1TTYGuiElementa95">removeMouseMotionListener</a> (<a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a> *l)</td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1TTYGuiElementn51">mMouseMotionListener</a></td></tr> <tr><td colspan=2><br><h2>Private Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="namespaceOgre.html#a349">Real</a> </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1PositionTargeta0">getLeft</a> (void) const=0</td></tr> <tr><td> </td><td><font size=-1><em>Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right).</em> <a href="#Ogre_1_1PositionTargeta0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="namespaceOgre.html#a349">Real</a> </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1PositionTargeta1">getTop</a> (void) const=0</td></tr> <tr><td> </td><td><font size=-1><em>Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom).</em> <a href="#Ogre_1_1PositionTargeta1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1PositionTarget.html">PositionTarget</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1PositionTargeta2">getPositionTargetParent</a> ()=0</td></tr> <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1PositionTargeta3">isKeyEnabled</a> () const=0</td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classOgre_1_1MouseMotionTarget.html#Ogre_1_1ScrollTargeta4">processEvent</a> (<a class="el" href="classOgre_1_1InputEvent.html">InputEvent</a> *e)=0</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Handles the adding and removing of MouseMotionListeners. <p> <dl compact><dt><b> Remarks: </b><dd> This is implemented through the use of a binary multicaster. See <a class="el" href="classOgre_1_1EventMulticaster.html">EventMulticaster</a>. GuiElements (or other components) that process the Mouse Motion Event should subclass this class and call processMouseMotionEvent when that event is identified. </dl> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00056">56</a> of file <a class="el" href="OgreMouseMotionTarget_8h-source.html">OgreMouseMotionTarget.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="Ogre_1_1MouseMotionTargeta0" doxytag="Ogre::MouseMotionTarget::MouseMotionTarget"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Ogre::MouseMotionTarget::MouseMotionTarget </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00037">37</a> of file <a class="el" href="OgreMouseMotionTarget_8cpp-source.html">OgreMouseMotionTarget.cpp</a>. <p> References <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00059">mMouseMotionListener</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1TTYGuiElementa94" doxytag="Ogre::MouseMotionTarget::addMouseMotionListener"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::MouseMotionTarget::addMouseMotionListener </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a> * </td> <td class="mdname1" valign="top" nowrap> <em>l</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00065">65</a> of file <a class="el" href="OgreMouseMotionTarget_8cpp-source.html">OgreMouseMotionTarget.cpp</a>. <p> References <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00059">mMouseMotionListener</a>. <p> Referenced by <a class="el" href="OgreInput_8cpp-source.html#l00146">Ogre::InputReader::addCursorMoveListener</a>(), <a class="el" href="OgreListGuiElement_8cpp-source.html#l00266">Ogre::ListGuiElement::addListItem</a>(), <a class="el" href="OgrePopupMenuGuiElement_8cpp-source.html#l00043">Ogre::PopupMenuGuiElement::PopupMenuGuiElement</a>(), and <a class="el" href="OgreScrollBarGuiElement_8cpp-source.html#l00162">Ogre::ScrollBarGuiElement::setScrollBitName</a>(). </td> </tr> </table> <a name="Ogre_1_1PositionTargeta0" doxytag="Ogre::MouseMotionTarget::getLeft"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="namespaceOgre.html#a349">Real</a> Ogre::PositionTarget::getLeft </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). <p> <p> Implemented in <a class="el" href="classOgre_1_1Cursor.html#Ogre_1_1Cursora12">Ogre::Cursor</a>, <a class="el" href="classOgre_1_1EventProcessor.html#Ogre_1_1EventProcessora12">Ogre::EventProcessor</a>, and <a class="el" href="classOgre_1_1GuiElement.html#Ogre_1_1TTYGuiElementa44">Ogre::GuiElement</a>. </td> </tr> </table> <a name="Ogre_1_1PositionTargeta2" doxytag="Ogre::MouseMotionTarget::getPositionTargetParent"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1PositionTarget.html">PositionTarget</a>* Ogre::PositionTarget::getPositionTargetParent </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implemented in <a class="el" href="classOgre_1_1Cursor.html#Ogre_1_1Cursora14">Ogre::Cursor</a>, <a class="el" href="classOgre_1_1EventProcessor.html#Ogre_1_1EventProcessora13">Ogre::EventProcessor</a>, and <a class="el" href="classOgre_1_1GuiElement.html#Ogre_1_1TTYGuiElementa73">Ogre::GuiElement</a>. </td> </tr> </table> <a name="Ogre_1_1PositionTargeta1" doxytag="Ogre::MouseMotionTarget::getTop"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="namespaceOgre.html#a349">Real</a> Ogre::PositionTarget::getTop </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). <p> <p> Implemented in <a class="el" href="classOgre_1_1Cursor.html#Ogre_1_1Cursora13">Ogre::Cursor</a>, <a class="el" href="classOgre_1_1EventProcessor.html#Ogre_1_1EventProcessora11">Ogre::EventProcessor</a>, and <a class="el" href="classOgre_1_1GuiElement.html#Ogre_1_1TTYGuiElementa46">Ogre::GuiElement</a>. </td> </tr> </table> <a name="Ogre_1_1PositionTargeta3" doxytag="Ogre::MouseMotionTarget::isKeyEnabled"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual bool Ogre::PositionTarget::isKeyEnabled </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implemented in <a class="el" href="classOgre_1_1Cursor.html#Ogre_1_1Cursora15">Ogre::Cursor</a>, <a class="el" href="classOgre_1_1EventProcessor.html#Ogre_1_1EventProcessora14">Ogre::EventProcessor</a>, <a class="el" href="classOgre_1_1GuiElement.html#Ogre_1_1TTYGuiElementa70">Ogre::GuiElement</a>, and <a class="el" href="classOgre_1_1TextBoxGuiElement.html#Ogre_1_1TextBoxGuiElementa6">Ogre::TextBoxGuiElement</a>. <p> Referenced by <a class="el" href="OgreEventDispatcher_8cpp-source.html#l00257">Ogre::EventDispatcher::trackKeyEnterExit</a>(). </td> </tr> </table> <a name="Ogre_1_1ScrollTargeta4" doxytag="Ogre::MouseMotionTarget::processEvent"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void Ogre::EventTarget::processEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1InputEvent.html">InputEvent</a> * </td> <td class="mdname1" valign="top" nowrap> <em>e</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [pure virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implemented in <a class="el" href="classOgre_1_1Cursor.html#Ogre_1_1Cursora5">Ogre::Cursor</a>, <a class="el" href="classOgre_1_1EventProcessor.html#Ogre_1_1EventProcessora5">Ogre::EventProcessor</a>, <a class="el" href="classOgre_1_1GuiControl.html#Ogre_1_1GuiControla2">Ogre::GuiControl</a>, <a class="el" href="classOgre_1_1GuiElement.html#Ogre_1_1TTYGuiElementa68">Ogre::GuiElement</a>, <a class="el" href="classOgre_1_1OverlayManager.html#Ogre_1_1OverlayManagera12">Ogre::OverlayManager</a>, <a class="el" href="classOgre_1_1BorderButtonGuiElement.html#Ogre_1_1BorderButtonGuiElementa4">Ogre::BorderButtonGuiElement</a>, <a class="el" href="classOgre_1_1ButtonGuiElement.html#Ogre_1_1ButtonGuiElementa4">Ogre::ButtonGuiElement</a>, <a class="el" href="classOgre_1_1ScrollBarGuiElement.html#Ogre_1_1ScrollBarGuiElementa14">Ogre::ScrollBarGuiElement</a>, and <a class="el" href="classOgre_1_1TextBoxGuiElement.html#Ogre_1_1TextBoxGuiElementa7">Ogre::TextBoxGuiElement</a>. <p> Referenced by <a class="el" href="OgreEventDispatcher_8cpp-source.html#l00083">Ogre::EventDispatcher::processKeyEvent</a>(), <a class="el" href="OgreEventDispatcher_8cpp-source.html#l00204">Ogre::EventDispatcher::retargetKeyEvent</a>(), and <a class="el" href="OgreEventDispatcher_8cpp-source.html#l00155">Ogre::EventDispatcher::retargetMouseEvent</a>(). </td> </tr> </table> <a name="Ogre_1_1TTYGuiElementa93" doxytag="Ogre::MouseMotionTarget::processMouseMotionEvent"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::MouseMotionTarget::processMouseMotionEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1MouseEvent.html">MouseEvent</a> * </td> <td class="mdname1" valign="top" nowrap> <em>e</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00044">44</a> of file <a class="el" href="OgreMouseMotionTarget_8cpp-source.html">OgreMouseMotionTarget.cpp</a>. <p> References <a class="el" href="OgreInputEvent_8cpp-source.html#l00089">Ogre::InputEvent::getID</a>(), <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00059">mMouseMotionListener</a>, <a class="el" href="classOgre_1_1MouseMotionListener.html#Ogre_1_1MouseMotionListenera1">Ogre::MouseMotionListener::mouseDragged</a>(), <a class="el" href="OgreEventListeners_8h-source.html#l00154">Ogre::MouseMotionListener::mouseDragMoved</a>(), and <a class="el" href="classOgre_1_1MouseMotionListener.html#Ogre_1_1MouseMotionListenera0">Ogre::MouseMotionListener::mouseMoved</a>(). <p> Referenced by <a class="el" href="OgreGuiElement_8cpp-source.html#l00549">Ogre::GuiElement::processEvent</a>(), <a class="el" href="OgreEventProcessor_8cpp-source.html#l00152">Ogre::EventProcessor::processEvent</a>(), and <a class="el" href="OgreCursor_8cpp-source.html#l00087">Ogre::Cursor::processEvent</a>(). </td> </tr> </table> <a name="Ogre_1_1TTYGuiElementa95" doxytag="Ogre::MouseMotionTarget::removeMouseMotionListener"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::MouseMotionTarget::removeMouseMotionListener </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a> * </td> <td class="mdname1" valign="top" nowrap> <em>l</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00074">74</a> of file <a class="el" href="OgreMouseMotionTarget_8cpp-source.html">OgreMouseMotionTarget.cpp</a>. <p> References <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00059">mMouseMotionListener</a>. <p> Referenced by <a class="el" href="OgreInput_8cpp-source.html#l00151">Ogre::InputReader::removeCursorMoveListener</a>(). </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1TTYGuiElementn51" doxytag="Ogre::MouseMotionTarget::mMouseMotionListener"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a>* Ogre::MouseMotionTarget::mMouseMotionListener<code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreMouseMotionTarget_8h-source.html#l00059">59</a> of file <a class="el" href="OgreMouseMotionTarget_8h-source.html">OgreMouseMotionTarget.h</a>. <p> Referenced by <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00065">addMouseMotionListener</a>(), <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00037">MouseMotionTarget</a>(), <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00044">processMouseMotionEvent</a>(), and <a class="el" href="OgreMouseMotionTarget_8cpp-source.html#l00074">removeMouseMotionListener</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreMouseMotionTarget_8h-source.html">OgreMouseMotionTarget.h</a><li><a class="el" href="OgreMouseMotionTarget_8cpp-source.html">OgreMouseMotionTarget.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:18:38 2004 </p> </body> </html>