HBhvConditionONMOUSELEAVE
-
class
HBhvConditionONMOUSELEAVE The
HBhvConditionONMOUSEENTERclass evaluates if the mouse pointer has left the bounding box of the target object.Inherits from:
HBhvConditionMouse
Methods
-
HBhvConditionONMOUSELEAVE::HBhvConditionONMOUSELEAVE(char const *target, char const *hevent, bool invert, HBhvSensor *sensor) Constructs an
HBhvConditionONMOUSELEAVEobject.Parameters
target: The descriptor of the target object. You can use
HBhvTargetObject::CreateTargetString()to generate this string.hevent: The event type.
invert: Pass 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.
sensor: A pointer to the
HBhvSensorobject that this condition belongs to.
-
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.
-
void
HBhvConditionONMOUSELEAVE::UnRegister() virtual
Unregisters the condition so that it no longer gets mouse events.
-
virtual void
HBhvConditionONMOUSELEAVE::Serialize(HUtilityXMLGenerator *xmlgen) virtual
Writes XML data to a buffer.
Variables
-
HC_KEY
HBhvConditionONMOUSELEAVE::m_OldKey protected
HC_KEYFor internal use only.