View Class
View interface (prototype).
Public Methods
new(object)
Constructor for use in subclass declaration.
Parameters:
objecttable (optional): Required for subclassingView.
Returns:
View: NewViewobject.
draw()
Uses UI framework functionality to draw the view.
touchInside(x, y)
Checks if touch was made within view boundaries.
Parameters:
xnumber: Global x-coordinate.ynumber: Global y-coordinate.
Returns:
boolean