summaryrefslogtreecommitdiff
path: root/xmake/core/ui/menubar.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-22 00:51:41 +0800
committerruki <[email protected]>2017-12-21 23:10:09 +0800
commitfe6f634879645e86609dfb014bab5546bfe0e7fc (patch)
tree5c0c436390c8bc7aa3f209558b1f155d3f0a71a8 /xmake/core/ui/menubar.lua
parentbf0ea773b29ca4a85430dcb5ab024ed27a8eeb0c (diff)
rewrite refresh view
Diffstat (limited to 'xmake/core/ui/menubar.lua')
-rw-r--r--xmake/core/ui/menubar.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/ui/menubar.lua b/xmake/core/ui/menubar.lua
index af0e2b593..fa9fc910c 100644
--- a/xmake/core/ui/menubar.lua
+++ b/xmake/core/ui/menubar.lua
@@ -55,6 +55,11 @@ end
-- draw view
function menubar:draw()
+
+ -- trace
+ log:print("%s: draw ..", self)
+
+ -- draw it
local c = self:canvas()
c:attr(self:attr("color")):move(0, 0):write(string.rep(' ', self:width() * self:height()))
c:move(1, 0):write(self:title())