-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSystemDelegate.h
39 lines (33 loc) · 949 Bytes
/
SystemDelegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/// @file
/// @author Boris Mikic
/// @version 3.3
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
///
/// @section DESCRIPTION
///
/// Defines a delegate for special system callbacks.
#ifndef APRIL_SYSTEM_DELEGATE_H
#define APRIL_SYSTEM_DELEGATE_H
#include <hltypes/hstring.h>
#include "aprilExport.h"
#include "Window.h"
namespace april
{
class aprilExport SystemDelegate
{
public:
SystemDelegate();
virtual ~SystemDelegate();
virtual bool onQuit(bool canCancel);
virtual void onWindowSizeChanged(int width, int height, bool fullscreen);
virtual void onWindowFocusChanged(bool focused);
virtual void onInputModeChanged(Window::InputMode inputMode);
virtual void onVirtualKeyboardChanged(bool visible, float heightRatio);
virtual void onLowMemoryWarning();
};
}
#endif