#include <AppCore/Window.h>
Interface for all Window-related events.
- See also
- Window::set_listener
◆ ~WindowListener()
virtual ultralight::WindowListener::~WindowListener |
( |
| ) |
|
|
inlinevirtual |
◆ OnClose()
Called when the Window is closed.
◆ OnKeyEvent()
Called when a keyboard event is fired.
- Parameters
-
evt | Details for the event. |
- Returns
- Return false to consume the event and prevent it from propagating further.
◆ OnMouseEvent()
Called when a mouse event is fired.
- Parameters
-
evt | Details for the event. |
- Returns
- Return false to consume the event and prevent it from propagating further.
◆ OnResize()
virtual void ultralight::WindowListener::OnResize |
( |
ultralight::Window * |
window, |
|
|
uint32_t |
width_px, |
|
|
uint32_t |
height_px |
|
) |
| |
|
inlinevirtual |
Called when the Window is resized.
- Parameters
-
width | The new width (in pixels). |
height | The new height (in pixels). |
◆ OnScrollEvent()
Called when a scroll event is fired.
- Parameters
-
evt | Details for the event. |
- Returns
- Return false to consume the event and prevent it from propagating further.
The documentation for this class was generated from the following file: