Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ILeftClickable Class Referenceabstract

The interface used by aspects which wish to respond to mouse left click events (or equivalent). More...

#include <interface_pointer_callback.hpp>

Inheritance diagram for ILeftClickable:
BoardLocations UIButton

Private Member Functions

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.
 

Friends

class IUsePointer
 

Detailed Description

The interface used by aspects which wish to respond to mouse left click events (or equivalent).

Member Function Documentation

◆ 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
clickLocationThe 3D coordinates at which the left click event occurred.
Return values
trueReturned when the left click event is handled by the implementer.
falseReturned 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
clickLocationThe 3D coordinates at which the left mouse button release occurred.
Return values
trueReturned when the left click event is handled by the implementer.
falseReeturned 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: