blob: 8a3b0e166c7c943b4a218e80f4cac6768fc6ec9a (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef __ASURA_EDITOR_WINDOW_H__
#define __ASURA_EDITOR_WINDOW_H__
#include <windows.h>
#include <string.h>
#include <asura-utils/scripting/portable.hpp>
#include "../type.h"
namespace AsuraEditor
{
///
/// ༭ڵnative
///
class ContainerWindow : public AEScripting::Portable<ContainerWindow>
{
public:
enum WindowStyle
{
WINDOW_STYLE_BASIC, ///<
WINDOW_STYLE_TOOL, ///<
WINDOW_STYLE_CONFIRM, ///< ȷϴ
};
struct WindowConfig
{
std::string title; ///<
uint x, y; ///<
uint width, height; ///< С
WindowStyle style; ///<
};
ContainerWindow();
~ContainerWindow();
bool Init(WindowConfig& config);
private:
ContainerWindow* mParent;
WindowStyle mStyle;
HWND mHWND;
HDC mHDC;
luaxport:
LUAX_DECL_FACTORY(ContainerWindow);
LUAX_DECL_ENUM(WindowStyle);
LUAX_DECL_METHOD(_New);
LUAX_DECL_METHOD(_Init);
LUAX_DECL_METHOD(_SetPosition);
};
} // AsuraEditor
#endif
|