HBhvConditionONMOUSEENTER

Functions

HBhvConditionONMOUSEENTER

int

OnMouseMove

void

UnRegister

void

Serialize

Detailed Description

class HBhvConditionONMOUSEENTER : public HBhvConditionMouse

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

Public Functions

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

Constructs an HBhvConditionONMOUSEENTER object.

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 HBhvSensor object that this condition belongs to.

virtual int OnMouseMove(HEventInfo &hevent)

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

virtual void UnRegister()

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

virtual void Serialize(HUtilityXMLGenerator *xmlgen)

Writes XML data to a buffer.