#include <OgreCursor.h>
Inheritance diagram for Ogre::Cursor:
Public Methods | |
Cursor () | |
~Cursor () | |
void | addToX (Real val) |
add relative amount to X. More... | |
void | addToY (Real val) |
add relative amount to Y. More... | |
void | addToZ (Real val) |
add relative amount to Z. More... | |
void | processEvent (InputEvent *e) |
process the mouse events that are for any listeners to the cursor. More... | |
Real | getX () const |
get the current X position of the cursor 0 left, 1 right. More... | |
Real | getY () const |
get the current Y position of the cursor 0 top, 1 bottom. More... | |
Real | getZ () const |
get the current Z position of the cursor 0 none, 1 full. More... | |
Real | getLeft (void) const |
Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). More... | |
Real | getTop (void) const |
Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). More... | |
PositionTarget * | getPositionTargetParent () |
The parent of the cursor is NULL as it's position is absolute in the window. More... | |
void | processMouseMotionEvent (MouseEvent *e) |
void | addMouseMotionListener (MouseMotionListener *l) |
void | removeMouseMotionListener (MouseMotionListener *l) |
void | processMouseEvent (MouseEvent *e) |
void | addMouseListener (MouseListener *l) |
void | removeMouseListener (MouseListener *l) |
Protected Methods | |
Real | limit (Real val, Real low, Real high) |
inline function to clip a value to its low and high limits. More... | |
Protected Attributes | |
Real | mMouseX |
Cursor position. More... | |
Real | mMouseY |
Cursor position. More... | |
Real | mMouseZ |
Cursor position. More... | |
Real | mXLowLimit |
Cursor limits 0-1. More... | |
Real | mXHighLimit |
Cursor limits 0-1. More... | |
Real | mYLowLimit |
Cursor limits 0-1. More... | |
Real | mYHighLimit |
Cursor limits 0-1. More... | |
Real | mZLowLimit |
Cursor limits 0-1. More... | |
Real | mZHighLimit |
Cursor limits 0-1. More... | |
Real | mScale |
Scale the cursor movements. More... | |
MouseMotionListener * | mMouseMotionListener |
MouseListener * | mMouseListener |
|
|
|
|
|
|
|
|
|
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. |
|
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.
|
|
inline function to clip a value to its low and high limits.
|
|
process the mouse events that are for any listeners to the cursor.
Implements Ogre::EventTarget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Cursor position.
|
|
Cursor position.
|
|
Cursor position.
|
|
Scale the cursor movements. Initially set at 1 (no scaling). The scaling effects all axis, XYZ |
|
Cursor limits 0-1.
|
|
Cursor limits 0-1.
|
|
Cursor limits 0-1.
|
|
Cursor limits 0-1.
|
|
Cursor limits 0-1.
|
|
Cursor limits 0-1.
|
Copyright © 2002 by The OGRE Team