summaryrefslogtreecommitdiff
path: root/source/Asura.Editor/controls/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Asura.Editor/controls/widget.h')
-rw-r--r--source/Asura.Editor/controls/widget.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/source/Asura.Editor/controls/widget.h b/source/Asura.Editor/controls/widget.h
new file mode 100644
index 0000000..9ffd1fb
--- /dev/null
+++ b/source/Asura.Editor/controls/widget.h
@@ -0,0 +1,43 @@
+#ifndef __ASURA_EDITOR_WIDGET_H__
+#define __ASURA_EDITOR_WIDGET_H__
+
+#include <list>
+
+#include <asura-lib-utils/scripting/portable.hpp>
+#include <asura-lib-utils/type.h>
+#include <asura-lib-utils/math/rect.hpp>
+#include <asura-lib-utils/math/vector2.hpp>
+#include <asura-lib-core/input/event.h>
+
+namespace AsuraEditor
+{
+
+ ///
+ /// Asura EditorĿؼ߼Ⱦں¼ѯֻ¼Ӧ߼ӿڡ
+ ///
+ ASURA_ABSTRACT class Widget
+ : public virtual AEScripting::NativeAccessor
+ {
+
+ public:
+
+ ///
+ /// ؼֻбڵѡΪfocusʱŻᴦ룬ԺܸЧ
+ ///
+ virtual void OnEvent(AEInput::Event& e) = 0;
+
+ ///
+ ///
+ ///
+ virtual void OnPaint() = 0;
+
+ protected:
+
+ AEMath::Vector2i mPos;
+ AEMath::Recti mBBox;
+
+ };
+
+}
+
+#endif \ No newline at end of file