Creates a viewport wrapping parent constrained to bounds.
parent
bounds
Viewport(this.parent, Rect bounds) : bounds = Rect( bounds.x, bounds.y, max(0, bounds.width), max(0, bounds.height), );