LuciadCPillar 2023.1.04
|
A callback class that is called when a cursor changes. More...
#include <luciad/maps/IMouseCursorCallback.h>
Public Member Functions | |
virtual | ~IMouseCursorCallback ()=default |
virtual void | onMouseCursorChanged (MouseCursor cursor)=0 |
Implement this method to handle a cursor that is returned when the map's cursor changes. More... | |
Static Public Member Functions | |
static std::shared_ptr< IMouseCursorCallback > | create (std::function< void(MouseCursor)> function) |
Creates a default IMouseCursorCallback instance that delegates the IMouseCursorCallback::onMouseCursorChanged to the given function. More... | |
A callback class that is called when a cursor changes.
See for example
|
virtualdefault |
|
static |
Creates a default IMouseCursorCallback instance that delegates the IMouseCursorCallback::onMouseCursorChanged to the given function.
This is a convenience method that allows to reduce boiler plate code, and use lambdas.
function | the function that is called by IMouseCursorCallback::onMouseCursorChanged |
|
pure virtual |
Implement this method to handle a cursor that is returned when the map's cursor changes.
cursor | the mouse cursor. |