27#include "utility/event/event.hpp"
29namespace utility::event
54 std::shared_ptr<Event>
create(
void)
const override;
61 std::shared_ptr<CursorEnterEvent>
createTyped(
void)
const;
65 bool _entered {
false };
Factory for creating CursorEnterEvent instances.
std::shared_ptr< Event > create(void) const override
Create a CursorEnterEvent as a base Event pointer.
std::shared_ptr< CursorEnterEvent > createTyped(void) const
Create a strongly-typed CursorEnterEvent.
Cursor enter/leave event.
CursorEnterEvent(void)
Default constructor.
~CursorEnterEvent(void) override
Default destructor.
CursorEnterEvent & setEntered(const bool entered) noexcept
Set whether the cursor entered or left the content area.
bool isEntered(void) const noexcept
Check if the cursor entered the content area.
Abstract factory interface for creating events.
Base class for events in the event system.