diff options
author | chai <chaifix@163.com> | 2019-03-29 22:28:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-29 22:28:40 +0800 |
commit | 157530b8b6e11efc5573d5a0db8987a440197aa1 (patch) | |
tree | f9df79c013885e13dc81e7046c9828037eb29e2e /source/Asura.Editor/controls/widget.h | |
parent | e37b1dfd022bda4dfdcba243c0543c62c89db32f (diff) |
*misc
Diffstat (limited to 'source/Asura.Editor/controls/widget.h')
-rw-r--r-- | source/Asura.Editor/controls/widget.h | 43 |
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 |