summaryrefslogtreecommitdiff
path: root/source/Asura.Editor/widgets/button.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 00:43:25 +0800
committerchai <chaifix@163.com>2019-03-29 00:43:25 +0800
commitf4c338c63f3456a8eccd56c35e233843687d55be (patch)
tree7278fe4723320c9ef310c5a04d92bf0be1bc778c /source/Asura.Editor/widgets/button.h
parent3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (diff)
*thread
Diffstat (limited to 'source/Asura.Editor/widgets/button.h')
-rw-r--r--source/Asura.Editor/widgets/button.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/Asura.Editor/widgets/button.h b/source/Asura.Editor/widgets/button.h
index 305cd35..14cd041 100644
--- a/source/Asura.Editor/widgets/button.h
+++ b/source/Asura.Editor/widgets/button.h
@@ -36,6 +36,8 @@ namespace AsuraEditor
{
public:
+ LUAX_DECL_FACTORY(Button);
+
Button();
~Button();
@@ -50,10 +52,10 @@ namespace AsuraEditor
int GetStatus();
void SetImage(int status, AEGraphics::Image* image);
- LUAX_DECL_FACTORY(Button);
-
private:
+ //------------------------------------------------------------------------------//
+
LUAX_DECL_ENUM(ButtonStatus);
LUAX_DECL_ENUM(ButtonMessage);
@@ -61,6 +63,8 @@ namespace AsuraEditor
LUAX_DECL_METHOD(_Disconnect);
LUAX_DECL_METHOD(_SetImage);
+ //------------------------------------------------------------------------------//
+
int mStatus; // ǰ״̬
Signal mSignals[_BUTTON_MSG_COUNT]; // 3Ϣsignal
AEGraphics::Image* mImage[_BUTTON_STATUS_COUNT]; // 5״̬ͼ