LuciadCPillar 2023.1.02
|
This is a callback class that is called when something is invalidated. More...
#include <luciad/utils/IInvalidationCallback.h>
Public Member Functions | |
virtual | ~IInvalidationCallback ()=default |
virtual void | onInvalidate ()=0 |
Called by the object on which this callback was set when the object is invalidated. More... | |
Static Public Member Functions | |
static std::shared_ptr< IInvalidationCallback > | create (std::function< void()> function) |
Creates a default IInvalidationCallback instance that delegates the IInvalidationCallback::onInvalidate to the given function. More... | |
This is a callback class that is called when something is invalidated.
For example, this class is implemented (and set on the Map) when integrating a Map component with a UI framework. In that case, implementations of this class need to make sure that the UI framework will eventually call Map::Renderer::paint .
|
virtualdefault |
|
static |
Creates a default IInvalidationCallback instance that delegates the IInvalidationCallback::onInvalidate
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 IInvalidationCallback::onInvalidate |
|
pure virtual |
Called by the object on which this callback was set when the object is invalidated.