cache rendering of UILabel

This commit is contained in:
Eduardo Bart
2012-01-17 03:36:25 -02:00
parent e701cce5fd
commit 7bcf7f536e
15 changed files with 124 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
Client = {}
local function setupWindow()
function Client.init()
g_window.show()
g_window.setMinimumSize({ width = 600, height = 480 })
@@ -29,11 +29,8 @@ local function setupWindow()
g_window.setIcon(resolvepath('clienticon.png'))
end
function Client.init()
setupWindow()
end
function Client.terminate()
-- save window configs
Settings.set('window-size', g_window.getUnmaximizedSize())
Settings.set('window-pos', g_window.getUnmaximizedPos())
Settings.set('window-maximized', g_window.isMaximized())

View File

@@ -8,5 +8,5 @@ Module
require 'options'
Options.init()
onUnload:
onUnload: |
Options.terminate()

View File

@@ -55,8 +55,8 @@ local function onWidgetStyleApply(widget, styleName, styleNode)
end
end
--connect(UIWidget, { onStyleApply = onWidgetStyleApply,
-- onHoverChange = onWidgetHoverChange})
connect(UIWidget, { onStyleApply = onWidgetStyleApply,
onHoverChange = onWidgetHoverChange})
-- UIWidget extensions
function UIWidget:setTooltip(text)