From 157530b8b6e11efc5573d5a0db8987a440197aa1 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Mar 2019 22:28:40 +0800 Subject: *misc --- source/Asura.Editor/controls/button.h | 79 +++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 source/Asura.Editor/controls/button.h (limited to 'source/Asura.Editor/controls/button.h') diff --git a/source/Asura.Editor/controls/button.h b/source/Asura.Editor/controls/button.h new file mode 100644 index 0000000..14cd041 --- /dev/null +++ b/source/Asura.Editor/controls/button.h @@ -0,0 +1,79 @@ +#ifndef __ASURA_EDITOR_BUTTON_H__ +#define __ASURA_EDITOR_BUTTON_H__ + +#include + +#include +#include + +#include "../core/signal.h" +#include "widget.h" + +namespace AsuraEditor +{ + + enum ButtonStatus + { + BUTTON_STATUS_NORMAL = 0, + BUTTON_STATUS_PUSHED = 1, + BUTTON_STATUS_HOVER = 2, + BUTTON_STATUS_DISABLED = 3, + BUTTON_STATUS_FOCUSED = 4, + _BUTTON_STATUS_COUNT = 5, + }; + + enum ButtonMessage + { + BUTTON_MSG_CLICK = 0, + BUTTON_MSG_HOVER = 1, + BUTTON_MSG_KILLFOCUS = 2, + _BUTTON_MSG_COUNT = 3, + }; + + class Button + : public Widget + , public AEScripting::Portable