diff options
author | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
commit | 8ee3f7453bf7b0db5c7358e697e91714d825c87d (patch) | |
tree | 57283565219d1808b47bbd4a883a5a52b6eb7bae /source/Asura.Editor/system/editor_window.h | |
parent | d7a972a0f16da0fd7bf4c0b70913920216ff3113 (diff) |
*misc
Diffstat (limited to 'source/Asura.Editor/system/editor_window.h')
-rw-r--r-- | source/Asura.Editor/system/editor_window.h | 62 |
1 files changed, 62 insertions, 0 deletions
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 |