The Event Class Definitions. More...
Go to the source code of this file.
Classes | |
| class | Spices::Event |
| This Class is the basic Event Class. Inherit from it and create specific event class. More... | |
| class | Spices::EventDispatcher |
| This Class store a Specific Event type first and Dispatch a event handle function to it. More... | |
Namespaces | |
| namespace | Spices |
Macros | |
| #define | EVENT_CLASS_TYPE(type) |
| Defines Event type. | |
| #define | EVENT_CLASS_CATEGORY(category) virtual int GetCategoryFlags() const override { return category; } |
| Defines Event category. | |
| #define | BIND_EVENT_FN(x) std::bind(&x, this, std::placeholders::_1) |
| Bind Event. | |
Enumerations | |
| enum class | Spices::EventType { Spices::None = 0 , Spices::WindowClose , Spices::WindowResize , Spices::WindowResizeOver , Spices::WindowFocus , Spices::WindowLostFocus , Spices::WindowMoved , Spices::AppTick , Spices::AppUpdate , Spices::AppRender , Spices::SlateResize , Spices::KeyPressed , Spices::KeyReleased , Spices::KeyTyped , Spices::MouseButtonPressed , Spices::MouseButtonReleased , Spices::MouseMoved , Spices::MouseScrolled , Spices::MeshAdded } |
| This enum defines what specific event type is. More... | |
| enum | Spices::EventCategory { Spices::None = 0 , Spices::EventCategoryApplication = (1 << 0) , Spices::EventCategorySlate = (1 << 1) , Spices::EventCategoryInput = (1 << 2) , Spices::EventCategoryKeyboard = (1 << 3) , Spices::EventCategoryMouse = (1 << 4) , Spices::EventCategoryMouseButton = (1 << 5) , Spices::EventCategoryWorld = (1 << 6) } |
| This enum defines what specific event category is. More... | |
Functions | |
| std::ostream & | Spices::operator<< (std::ostream &os, const Event &e) |
| Serialize Event Type. | |
The Event Class Definitions.
Definition in file Event.h.