From 99b90496765df21c5f377f42b9ed073ccb34c1fd Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 1 Aug 2019 09:15:04 +0800 Subject: *misc --- source/Asura.Editor/controls/widget.h | 42 ----------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 source/Asura.Editor/controls/widget.h (limited to 'source/Asura.Editor/controls/widget.h') diff --git a/source/Asura.Editor/controls/widget.h b/source/Asura.Editor/controls/widget.h deleted file mode 100644 index df914bf..0000000 --- a/source/Asura.Editor/controls/widget.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef __ASURA_EDITOR_WIDGET_H__ -#define __ASURA_EDITOR_WIDGET_H__ - -#include - -#include -#include -#include -#include -#include - -namespace AsuraEditor -{ - - /// - /// Asura Editor的控件逻辑,不包含渲染、窗口和事件轮询,只包含对事件的响应和逻辑处理接口。 - /// - ASURA_ABSTRACT class Widget : public AEScripting::Object - { - - 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 -- cgit v1.1-26-g67d0