summaryrefslogtreecommitdiff
path: root/Source/Asura.Editor/System/ContainerFrame.h
blob: 51a08d42f97c06aeaca386ca56fb261c960fe2a9 (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
63
#ifndef _ASURA_CONTAINER_FRAME_H_
#define _ASURA_CONTAINER_FRAME_H_

#include <windows.h>
#include <string.h>

#include <asura-base/Scripting/Scripting.h>
#include <asura-base/Classes.h>

#include "../Type.h"

namespace_begin(AsuraEditor)

/// ༭ڵnativeڣΪmenuûmenuģGUIWindow
class ContainerFrame : public AEScripting::Portable<ContainerFrame>
{
public:

	enum WindowStyle
	{
		WINDOW_STYLE_MAIN,   ///< 
		WINDOW_STYLE_NORMAL, ///< 
		WINDOW_STYLE_TOOL,   ///< 
		WINDOW_STYLE_POPUP,  ///< 
	};

	struct WindowConfig
	{
		std::string title;  ///< 
		uint x, y;          ///< 
		uint width, height; ///< С
		WindowStyle style;  ///< 
	};

	ContainerFrame();
	~ContainerFrame();

	bool Init(WindowConfig& config);
        
private: 

	WindowStyle m_Style;
	HWND        m_HWND;
	HDC         m_HDC;

luaxport:

	LUAX_DECL_FACTORY(ContainerFrame);

	LUAX_DECL_ENUM(WindowStyle);

	LUAX_DECL_METHOD(_New);
	LUAX_DECL_METHOD(_Init);
	LUAX_DECL_METHOD(_SetPosition);

};

// GUIWindowĿ
using ContainerWindow = ContainerFrame;

namespace_end

#endif