#include <OgreCursor.h>
Inheritance diagram for Ogre::Cursor:

Public Member Functions | |
| Cursor () | |
| virtual | ~Cursor () |
| void | addToX (Real val) |
| add relative amount to X | |
| void | addToY (Real val) |
| add relative amount to Y | |
| void | addToZ (Real val) |
| add relative amount to Z | |
| void | processEvent (InputEvent *e) |
| process the mouse events that are for any listeners to the cursor | |
| Real | getX () const |
| get the current X position of the cursor 0 left, 1 right | |
| Real | getY () const |
| get the current Y position of the cursor 0 top, 1 bottom | |
| Real | getZ () const |
| get the current Z position of the cursor 0 none, 1 full | |
| Real | getRelX () const |
| get relative X cursor movement | |
| Real | getRelY () const |
| get relative Y cursor movement | |
| Real | getRelZ () const |
| get relative Z cursor movement | |
| Real | getLeft (void) const |
| Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). | |
| Real | getTop (void) const |
| Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). | |
| PositionTarget * | getPositionTargetParent () const |
| The parent of the cursor is NULL as it's position is absolute in the window. | |
| virtual bool | isKeyEnabled () const |
| Real | getScale (void) const |
| Gets the current cursor movement scaling factor. | |
| void | setScale (Real scale) |
| Sets the current cursor movement scaling factor. | |
| void | processMouseMotionEvent (MouseEvent *e) |
| void | addMouseMotionListener (MouseMotionListener *l) |
| void | removeMouseMotionListener (MouseMotionListener *l) |
| void | processMouseEvent (MouseEvent *e) |
| void | addMouseListener (MouseListener *l) |
| void | removeMouseListener (MouseListener *l) |
| bool | isMouseWithin () const |
Protected Member Functions | |
| Real | limit (Real val, Real low, Real high) |
| inline function to clip a value to its low and high limits | |
Protected Attributes | |
| Real | mMouseX |
| Cursor position. | |
| Real | mMouseY |
| Cursor position. | |
| Real | mMouseZ |
| Cursor position. | |
| Real | mRelX |
| relative cursor position | |
| Real | mRelY |
| relative cursor position | |
| Real | mRelZ |
| relative cursor position | |
| Real | mXLowLimit |
| Cursor limits 0-1. | |
| Real | mXHighLimit |
| Cursor limits 0-1. | |
| Real | mYLowLimit |
| Cursor limits 0-1. | |
| Real | mYHighLimit |
| Cursor limits 0-1. | |
| Real | mZLowLimit |
| Cursor limits 0-1. | |
| Real | mZHighLimit |
| Cursor limits 0-1. | |
| Real | mScale |
| Scale the cursor movements. | |
| std::set< MouseMotionListener * > | mMouseMotionListeners |
| std::set< MouseListener * > | mMouseListeners |
| bool | mMouseWithin |
Definition at line 60 of file OgreCursor.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add relative amount to X
|
|
|
add relative amount to Y
|
|
|
add relative amount to Z
|
|
|
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right).
Implements Ogre::PositionTarget. |
|
|
The parent of the cursor is NULL as it's position is absolute in the window.
Implements Ogre::PositionTarget. |
|
|
get relative X cursor movement
Definition at line 106 of file OgreCursor.h. References Ogre::Real. |
|
|
get relative Y cursor movement
Definition at line 109 of file OgreCursor.h. References Ogre::Real. |
|
|
get relative Z cursor movement
Definition at line 112 of file OgreCursor.h. References Ogre::Real. |
|
|
Gets the current cursor movement scaling factor.
Definition at line 130 of file OgreCursor.h. References Ogre::Real. |
|
|
Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom).
Implements Ogre::PositionTarget. |
|
|
get the current X position of the cursor 0 left, 1 right
|
|
|
get the current Y position of the cursor 0 top, 1 bottom
|
|
|
get the current Z position of the cursor 0 none, 1 full
|
|
|
Implements Ogre::PositionTarget. Definition at line 126 of file OgreCursor.h. |
|
|
|
|
||||||||||||||||
|
inline function to clip a value to its low and high limits
Definition at line 77 of file OgreCursor.h. References Ogre::Real. |
|
|
process the mouse events that are for any listeners to the cursor
Implements Ogre::EventTarget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets the current cursor movement scaling factor.
Definition at line 132 of file OgreCursor.h. References Ogre::Real. |
|
|
Definition at line 58 of file OgreMouseTarget.h. |
|
|
Definition at line 58 of file OgreMouseMotionTarget.h. |
|
|
Definition at line 61 of file OgreMouseTarget.h. |
|
|
Cursor position.
Definition at line 64 of file OgreCursor.h. |
|
|
Cursor position.
Definition at line 64 of file OgreCursor.h. |
|
|
Cursor position.
Definition at line 64 of file OgreCursor.h. |
|
|
relative cursor position
Definition at line 67 of file OgreCursor.h. |
|
|
relative cursor position
Definition at line 67 of file OgreCursor.h. |
|
|
relative cursor position
Definition at line 67 of file OgreCursor.h. |
|
|
Scale the cursor movements. Initially set at 1 (no scaling). The scaling effects all axis, XYZ Definition at line 74 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
|
|
Cursor limits 0-1.
Definition at line 70 of file OgreCursor.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Nov 20 12:36:31 2005