Functions

View(init) Constructor
View:add_view(v) Add a subview
View:notify(msg, ...) Notify any registered listeners of an event
View:register(msg, f) Register for event notifications

Functions

View(init)

Constructor

Parameters:

init Constructor properties
init.background Draw Background (default true)
init.border Draw border (default true)
init.enabled Enabled flag (default true)
init.offset Initial offset (default {0, 0})
init.visible Visible flag (default true)
View:add_view(v)

Add a subview

Parameters:

v The subview
View:notify(msg, ...)

Notify any registered listeners of an event

Parameters:

msg The message
... The arguments to pass to the listener
View:register(msg, f)

Register for event notifications

Parameters:

msg The message
f The handler