-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpm_application.h
More file actions
46 lines (34 loc) · 821 Bytes
/
pm_application.h
File metadata and controls
46 lines (34 loc) · 821 Bytes
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
40
41
42
43
44
45
/*
* File : pm_application.h
* COPYRIGHT (C) 2012-2017, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2017-11-05 realthread the first version
*/
#pragma once
#include <rtgui/rtgui_app.h>
#include <rtgui/rtgui_system.h>
#include <pm_widget.h>
DEFINE_CLASS_ENUM_FLAG_OPERATORS2(rtgui_app_flag);
namespace Persimmon
{
class Application : private utils::noncopyable<Application>
{
public:
Application(const char *title);
virtual ~Application();
virtual rt_bool_t eventHandler(struct rtgui_event *event);
void run(void);
struct rtgui_app *getApplication(void)
{
return application;
}
void activate(void)
{
rtgui_app_activate(application);
}
private:
struct rtgui_app *application;
};
}