Functions

Layer(init) Constructor
Layer:add_view(v) Add a view to the layer
Layer:draw() Draw the layer
Layer:draw_subviews(vv, dim, wx, wy) Draw subviews of a view
Layer:subview_at_point(v, x, y) Get the subview of a view at a particular point
Layer:view_at_point(x, y) Get the view at a particular point

Functions

Layer(init)

Constructor

Parameters:

init Constructor properties
init.context The layer's context
Layer:add_view(v)

Add a view to the layer

Parameters:

v The view to add
Layer:draw()

Draw the layer

Layer:draw_subviews(vv, dim, wx, wy)

Draw subviews of a view

Parameters:

vv The view
dim The dimensions of the context
wx The containing widget's width
wy The containing widget's height
Layer:subview_at_point(v, x, y)

Get the subview of a view at a particular point

Parameters:

v [NO DESCRIPTION]
x x-coordinate
y y-coodinate

Return:

  • The subview
Layer:view_at_point(x, y)

Get the view at a particular point

Parameters:

x x-coordinate
y y-coodinate

Return:

  • The view