File ui/context.lua
loveui is a love2d library to provide resuable GUI widgets to love2d developers.
Functions
context:init (tags, args) | Initiates a context instance. |
Functions
- context:init (tags, args)
-
Initiates a context instance. The context is a super-widget to which all other widgets are added to. It has :update(dt), :draw(), :keypressed(key, unicode), :keyreleased(key, unicode), :mousepressed(x, y, button), :mousereleased(x, y, button) which needs to be called by the love program at the appropriate places to feed input into the widgets.
Parameters
- tags: A string of whitespaced separated tags
- args: A table of key-value object attributes