66 void onScroll(std::function<
void()> callback,
bool overwrite =
true);
75 void onScroll(std::function<
void(
const std::optional<sf::Event>&)> callback,
bool overwrite =
true);
89 void onMouseMoved(std::function<
void()> callback,
bool overwrite =
true);
98 void onMouseMoved(std::function<
void(
const std::optional<sf::Event>&)> callback,
bool overwrite =
true);
121 void onMousePressed(std::function<
void(
const std::optional<sf::Event>&)> callback,
bool overwrite =
true);
144 void onMouseReleased(std::function<
void(
const std::optional<sf::Event>&)> callback,
bool overwrite =
true);
157 bool occurred(
const std::optional<sf::Event>& event)
override;
158 bool filter(
const std::optional<sf::Event>& event,
Core* component)
override;
159 void fire(
const std::optional<sf::Event>& event)
override;
#define ML_EXPORT(ClassName)
Register a Malena type with the framework.
Virtual base class for all Malena framework objects.
Base class for all per-event dispatchers in the Malena event system.
Base class for all event-receiving traits.