18 lines
411 B
C
18 lines
411 B
C
![]() |
#ifndef PLATFORMLISTENER_H
|
||
|
#define PLATFORMLISTENER_H
|
||
|
|
||
|
#include "inputevent.h"
|
||
|
|
||
|
class PlatformListener
|
||
|
{
|
||
|
public:
|
||
|
/// Fired when user tries to close the window
|
||
|
virtual void onClose() = 0;
|
||
|
/// Fired when user resize the window
|
||
|
virtual void onResize(const Size& size) = 0;
|
||
|
/// Fired when user press a key or move the mouse
|
||
|
virtual void onInputEvent(const InputEvent& event) = 0;
|
||
|
};
|
||
|
|
||
|
#endif
|