summaryrefslogtreecommitdiff
path: root/xmake/core/ui/button.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-28 00:30:37 +0800
committerruki <[email protected]>2017-12-27 21:03:47 +0800
commitf37f8f9a1588348b042b1df69a805dc614f0fbbc (patch)
tree58dca219d616e997096bdc9383b7192f7c5345a8 /xmake/core/ui/button.lua
parentba9ff696b98908ec469c463ccdb7a313bb56c04a (diff)
improve group select
Diffstat (limited to 'xmake/core/ui/button.lua')
-rw-r--r--xmake/core/ui/button.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/core/ui/button.lua b/xmake/core/ui/button.lua
index 22413a83c..92f5f8894 100644
--- a/xmake/core/ui/button.lua
+++ b/xmake/core/ui/button.lua
@@ -43,5 +43,17 @@ function button:init(name, bounds, text)
self:cursor_show(true)
end
+-- set state
+function button:state_set(name, enable)
+
+ -- set label state
+ label.state_set(self, name, enable)
+
+ -- the focused text and background attribute
+ if name == "focused" then
+ -- TODO
+ end
+end
+
-- return module
return button