17#ifndef ZOAPPINTERFACEPOINTERCALLBACK_H
18#define ZOAPPINTERFACEPOINTERCALLBACK_H
21 class IRightClickable;
107 friend class IUsePointer;
138 friend class IUsePointer;
The interface implemented by aspects which wish to respond to pointer hover related events.
Definition interface_pointer_callback.hpp:121
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...
virtual bool onPointerLeave()=0
Virtual method called by a subclass of IUsePointer to signal that a pointer has just left this object...
The interface used by aspects which wish to respond to mouse left click events (or equivalent).
Definition interface_pointer_callback.hpp:89
virtual bool onPointerLeftRelease(glm::vec4 clickLocation)=0
Virtual method called by a subclass of IUsePointer to signal that a left mousebutton release event ha...
virtual bool onPointerLeftClick(glm::vec4 clickLocation)=0
Virtual method called by a subclass of IUsePointer to signal that a left mousebutton press event has ...
The interface used by aspects, objects, which cast pointer rays to interact with objects present in t...
Definition interface_pointer_callback.hpp:36
~IUsePointer()=default
Virtual IUsePointer destructor, so that subclasses can use their own.
bool leftReleaseOn(ILeftClickable &clickable, glm::vec4 clickLocation)
Calls the left mouse button release (or equivalent) callback on an object.
Definition interface_pointer_callback.hpp:145
bool pointerEnter(IHoverable &hoverable, glm::vec4 hoverLocation)
Callback for when a pointer enters a region containing an object.
Definition interface_pointer_callback.hpp:147
bool pointerLeave(IHoverable &hoverable)
Callback for when a pointer leaves a region containing an object.
Definition interface_pointer_callback.hpp:148
bool leftClickOn(ILeftClickable &clickable, glm::vec4 clickLocation)
Calls the left mouse button press (or equivalent) callback on an object.
Definition interface_pointer_callback.hpp:144
Namespace containing all class definitions and functions related to the ToyMaker engine.
Definition application.hpp:24