Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GMouseMotionMessage Class Reference

Message sent when the mouse is moved. More...

#include <gauge3d/input/message.h>

Inherits GAUGE3D::GInputMessage.

List of all members.

Public Methods

 GMouseMotionMessage (pGObject origin,GString axis,float change,float absolute)
 Create a mouse motion message with the given info. More...

virtual ~GMouseMotionMessage ()
float Absolute ()
 Returns the absolute position of the mouse. More...


Detailed Description

Message sent when the mouse is moved.

This class is here for two reasons:


Constructor & Destructor Documentation

GAUGE3D::GMouseMotionMessage::GMouseMotionMessage ( pGObject origin,
GString axis,
float change,
float absolute ) [inline]
 

Create a mouse motion message with the given info.

Parameters:
origin   A pointer to the object which is the logical "originator" of the message. For example, most messages will originate from a GDisplay.
button   The name of the axis on which the motion occurred. Something like "mouse x".
change   The distance that the mouse moved. This should be measured in the same units as absolute.
absolute   If the mouse is not captured by the display, then this is the absolute position of the mouse. The edges of the screen are 0.0 and 1.0.
Remarks:
Yes, mouse motion will usually have to be sent as two separate messages (one for x and one for y).


Member Function Documentation

float GAUGE3D::GMouseMotionMessage::Absolute ( ) [inline]
 

Returns the absolute position of the mouse.

Remarks:
This will be zero if the mouse is in captured mode.


The documentation for this class was generated from the following file:
Generated at Tue Jan 30 17:07:34 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000