Struct for window events. More...
#include <IWindow.hpp>
Collaboration diagram for cae::WindowEvent:Public Attributes | ||
| WindowEventType | type | |
| union { | ||
| struct { | ||
| KeyCode key | ||
| } key | ||
| struct { | ||
| int x | ||
| int y | ||
| } mouseMove | ||
| struct { | ||
| MouseButton button | ||
| } mouseButton | ||
| struct { | ||
| float x | ||
| float y | ||
| } scroll | ||
| struct { | ||
| uint16_t w | ||
| uint16_t h | ||
| } resize | ||
| }; | ||
Struct for window events.
Definition at line 62 of file IWindow.hpp.
| union { ... } cae::WindowEvent |
| MouseButton cae::WindowEvent::button |
Definition at line 78 of file IWindow.hpp.
| uint16_t cae::WindowEvent::h |
Definition at line 86 of file IWindow.hpp.
| KeyCode cae::WindowEvent::key |
Definition at line 70 of file IWindow.hpp.
| struct { ... } cae::WindowEvent::key |
| struct { ... } cae::WindowEvent::mouseButton |
| struct { ... } cae::WindowEvent::mouseMove |
| struct { ... } cae::WindowEvent::resize |
| struct { ... } cae::WindowEvent::scroll |
| WindowEventType cae::WindowEvent::type |
Definition at line 64 of file IWindow.hpp.
Referenced by cae::GLFW::cursorPosCallback(), cae::GLFW::frameBufferResizeCallback(), cae::GLFW::keyCallback(), cae::GLFW::mouseButtonCallback(), and cae::GLFW::scrollCallback().
| uint16_t cae::WindowEvent::w |
Definition at line 86 of file IWindow.hpp.
| int cae::WindowEvent::x |
Definition at line 74 of file IWindow.hpp.
| float cae::WindowEvent::x |
Definition at line 82 of file IWindow.hpp.
| int cae::WindowEvent::y |
Definition at line 74 of file IWindow.hpp.
| float cae::WindowEvent::y |
Definition at line 82 of file IWindow.hpp.