The interface implemented by aspects which wish to respond to pointer hover related events.
More...
#include <interface_pointer_callback.hpp>
|
virtual bool | onPointerEnter (glm::vec4 hoverLocation)=0 |
| Virtual method called by a subclass of IUsePointer to signal that a pointer has entered this object's region.
|
|
virtual bool | onPointerLeave ()=0 |
| Virtual method called by a subclass of IUsePointer to signal that a pointer has just left this object's region.
|
|
The interface implemented by aspects which wish to respond to pointer hover related events.
◆ onPointerEnter()
virtual bool IHoverable::onPointerEnter |
( |
glm::vec4 | hoverLocation | ) |
|
|
privatepure virtual |
Virtual method called by a subclass of IUsePointer to signal that a pointer has entered this object's region.
- Parameters
-
hoverLocation | The 3D coordinates at which the pointer entered this object's region. |
- Return values
-
true | Returned when this object uses the pointer hover event. |
false | Returned when this object does nothing with the pointer hover event. |
Implemented in UIButton.
◆ onPointerLeave()
virtual bool IHoverable::onPointerLeave |
( |
| ) |
|
|
privatepure virtual |
Virtual method called by a subclass of IUsePointer to signal that a pointer has just left this object's region.
- Return values
-
true | Returned when this object uses the pointer hover event. |
false | Returned when this object does nothing with the pointer hover event. |
Implemented in UIButton.
The documentation for this class was generated from the following file: