HBhvConditionONMOUSELEAVE Class Reference
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the target object. More...
#include <HBhvSensor.h>
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 () |
![]() | |
HBhvConditionMouse (const char *target, const char *hevent, bool invert, HBhvSensor *sensor) | |
bool | IsClicked (HC_KEY target, float x, float y) |
virtual void | Register () |
![]() | |
virtual void | Evaluate (bool &and_flag, bool &or_flag) |
virtual HBhvSensor * | GetSensor () |
HBhvCondition (const char *target, const char *hevent, bool invert, HBhvSensor *sensor) | |
virtual void | Serialize (HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt) |
virtual void | SetTarget (const char *target) |
Protected Attributes | |
HC_KEY | m_OldKey |
![]() | |
bool | m_bConditionMet |
bool | m_bInvert |
char | m_Event [256] |
HBhvSensor * | m_pSensor |
HBhvTargetObject * | m_pTarget |
char | m_Value [256] |
Additional Inherited Members | |
![]() | |
static void * | XMLCallback (HUtilityXMLTag *xt, bool open, void *m_pExtraData) |
Detailed Description
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the target object.
Constructor & Destructor Documentation
◆ HBhvConditionONMOUSELEAVE()
HBhvConditionONMOUSELEAVE::HBhvConditionONMOUSELEAVE | ( | const char * | target, |
const char * | hevent, | ||
bool | invert, | ||
HBhvSensor * | sensor | ||
) |
Constructs an HBhvConditionONMOUSELEAVE 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.
Member Function Documentation
◆ OnMouseMove()
|
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.
◆ Serialize()
|
virtual |
Writes XML data to a buffer.
Reimplemented from HBhvCondition.
◆ UnRegister()
|
virtual |
Unregisters the condition so that it no longer gets mouse events.
Reimplemented from HBhvConditionMouse.
Member Data Documentation
◆ m_OldKey
|
protected |
For internal use only.
The documentation for this class was generated from the following file: