The interface used by aspects which wish to respond to mouse left click events (or equivalent).
More...
#include <interface_pointer_callback.hpp>
|
virtual bool | onPointerLeftClick (glm::vec4 clickLocation)=0 |
| Virtual method called by a subclass of IUsePointer to signal that a left mousebutton press event has occurred.
|
|
virtual bool | onPointerLeftRelease (glm::vec4 clickLocation)=0 |
| Virtual method called by a subclass of IUsePointer to signal that a left mousebutton release event has occurred.
|
|
The interface used by aspects which wish to respond to mouse left click events (or equivalent).
◆ onPointerLeftClick()
virtual bool ILeftClickable::onPointerLeftClick |
( |
glm::vec4 | clickLocation | ) |
|
|
privatepure virtual |
Virtual method called by a subclass of IUsePointer to signal that a left mousebutton press event has occurred.
- Parameters
-
clickLocation | The 3D coordinates at which the left click event occurred. |
- Return values
-
true | Returned when the left click event is handled by the implementer. |
false | Returned when nothing is done with the left click event. |
Implemented in BoardLocations, and UIButton.
◆ onPointerLeftRelease()
virtual bool ILeftClickable::onPointerLeftRelease |
( |
glm::vec4 | clickLocation | ) |
|
|
privatepure virtual |
Virtual method called by a subclass of IUsePointer to signal that a left mousebutton release event has occurred.
- Parameters
-
clickLocation | The 3D coordinates at which the left mouse button release occurred. |
- Return values
-
true | Returned when the left click event is handled by the implementer. |
false | Reeturned when nothing is done with the left click event. |
Implemented in BoardLocations, and UIButton.
The documentation for this class was generated from the following file: