9-slice image support

This commit is contained in:
airstruck
2015-10-27 01:15:47 -04:00
parent c9414eec48
commit 61c9aacd94
12 changed files with 126 additions and 41 deletions

View File

@@ -37,6 +37,14 @@ function Input:handleKeyboard (key, x, y)
})
end
function Input:handleTextInput (text, x, y)
local widget = self.layout.focusedWidget or self.layout:getWidgetAt(x, y)
self:bubbleEvent('TextInput', widget, {
target = widget,
text = text, x = x, y = y
})
end
function Input:handleMotion (x, y)
local widget = self.layout:getWidgetAt(x, y)
local previousWidget = self.previousMotionWidget