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
IHoverable Class Referenceabstract

The interface implemented by aspects which wish to respond to pointer hover related events. More...

#include <interface_pointer_callback.hpp>

Inheritance diagram for IHoverable:
UIButton

Private Member Functions

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.
 

Friends

class IUsePointer
 

Detailed Description

The interface implemented by aspects which wish to respond to pointer hover related events.

Member Function Documentation

◆ 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
hoverLocationThe 3D coordinates at which the pointer entered this object's region.
Return values
trueReturned when this object uses the pointer hover event.
falseReturned 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
trueReturned when this object uses the pointer hover event.
falseReturned when this object does nothing with the pointer hover event.

Implemented in UIButton.


The documentation for this class was generated from the following file: