summaryrefslogtreecommitdiff
path: root/source/Asura.Editor/system
diff options
context:
space:
mode:
Diffstat (limited to 'source/Asura.Editor/system')
-rw-r--r--source/Asura.Editor/system/editor_window.cpp6
-rw-r--r--source/Asura.Editor/system/editor_window.h62
-rw-r--r--source/Asura.Editor/system/window.cpp13
-rw-r--r--source/Asura.Editor/system/window.h82
4 files changed, 68 insertions, 95 deletions
diff --git a/source/Asura.Editor/system/editor_window.cpp b/source/Asura.Editor/system/editor_window.cpp
new file mode 100644
index 0000000..0e2d4f4
--- /dev/null
+++ b/source/Asura.Editor/system/editor_window.cpp
@@ -0,0 +1,6 @@
+#include "editor_window.h"
+
+namespace AsuraEditor
+{
+
+} // AsruaEditor \ No newline at end of file
diff --git a/source/Asura.Editor/system/editor_window.h b/source/Asura.Editor/system/editor_window.h
new file mode 100644
index 0000000..8a3b0e1
--- /dev/null
+++ b/source/Asura.Editor/system/editor_window.h
@@ -0,0 +1,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 \ No newline at end of file
diff --git a/source/Asura.Editor/system/window.cpp b/source/Asura.Editor/system/window.cpp
deleted file mode 100644
index 440c88c..0000000
--- a/source/Asura.Editor/system/window.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "window.h"
-
-namespace AsuraEditor
-{
-
- bool Window::Init(int posx, uint posy, uint w, uint h)
- {
- if (mHWND)
- return false;
-
- }
-
-} \ No newline at end of file
diff --git a/source/Asura.Editor/system/window.h b/source/Asura.Editor/system/window.h
deleted file mode 100644
index c9837e3..0000000
--- a/source/Asura.Editor/system/window.h
+++ /dev/null
@@ -1,82 +0,0 @@
-#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
-{
-
- ///
- /// ڷָֻ˿ܵķ񣬾ĿؼӦóơ
- ///
- enum WindowStyle
- {
- WINDOW_STYLE_BASIC, ///<
- WINDOW_STYLE_TOOL, ///<
- WINDOW_STYLE_CONFIRM, ///< ȷϴ
- };
-
- ///
- /// ʱҪ
- ///
- struct WindowConfig
- {
- std::string title; ///<
- uint x, y; ///<
- uint width, height; ///< С
- WindowStyle style; ///<
- };
-
- ///
- /// ༭win32ڣÿһڰһHWNDһHDC
- ///
- class Window
- : public AEScripting::Portable<Window>
- {
- public:
-
- Window();
- ~Window();
-
- bool Init(WindowConfig& config);
-
- private:
-
- //------------------------------------------------------------------------------//
-
- LUAX_DECL_FACTORY(Window);
-
- LUAX_DECL_ENUM(WindowStyle);
-
- LUAX_DECL_METHOD(_New);
- LUAX_DECL_METHOD(_Init);
- LUAX_DECL_METHOD(_SetPosition);
-
- //------------------------------------------------------------------------------//
-
- ///
- /// ڡ
- ///
- Window* mParent;
-
- ///
- /// ھ豸ġ
- ///
- HWND mHWND;
- HDC mHDC;
-
- ///
- /// ڷ
- ///
- WindowStyle mStyle;
-
- };
-
-}
-
-#endif \ No newline at end of file