Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HBhvConditionONMOUSELEAVE Class Reference

The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the target object. More...

#include <HBhvSensor.h>

List of all members.

Public Member Functions

 HBhvConditionONMOUSELEAVE (const char *target, const char *hevent, bool invert, HBhvSensor *sensor)
virtual int OnMouseMove (HEventInfo &hevent)
virtual void Serialize (HUtilityXMLGenerator *xmlgen)
void UnRegister ()

Protected Attributes

HC_KEY m_OldKey

Detailed Description

The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the target object.


Constructor & Destructor Documentation

HBhvConditionONMOUSELEAVE::HBhvConditionONMOUSELEAVE ( const char *  target,
const char *  hevent,
bool  invert,
HBhvSensor sensor 
)

Constructs an HBhvConditionONMOUSELEAVE object.

Parameters:
targetThe descriptor of the target object. You can use HBhvTargetObject::CreateTargetString() to generate this string.
heventThe event type.
invertPass true to invert the condition. In other words, this condition will return true if the condition evaluates to false and false if the condition evaluates to true.
sensorA pointer to the HBhvSensor object that this condition belongs to.

Member Function Documentation

virtual int HBhvConditionONMOUSELEAVE::OnMouseMove ( HEventInfo hevent) [virtual]

Called by the event manager if the mouse pointer position has changed. This method checks to see if the mouse has left the bounding box of the target object. If the condition was met, then the conditions of the associated sensor are evaluated.

virtual void HBhvConditionONMOUSELEAVE::Serialize ( HUtilityXMLGenerator *  xmlgen) [virtual]

Writes XML data to a buffer.

Reimplemented from HBhvCondition.

void HBhvConditionONMOUSELEAVE::UnRegister ( ) [virtual]

Unregisters the condition so that it no longer gets mouse events.

Reimplemented from HBhvConditionMouse.


Member Data Documentation

For internal use only.


The documentation for this class was generated from the following file: