Allow scripts to define the size of the content area separately from the window dimensions
What if Layers had x and y values (optionally w and h)? The x of an element would become an offset value relative to its layer, and the absolute value would require something like Element:getX(). Layers could then be blitted at their coordinates. This would also help with #28 .
Pull the existing scrollbars out of TextEditor or Listbox. They should maybe be a bit wider...
Track the currently visible area and blit that from the visible layers
If layers end up getting dimensions, this could also check to see if the layer is in the viewport before drawing it, and/or only blitting the portion that intersects the viewport.
Larger Viewport
Allow scripts to define the size of the content area separately from the window dimensions
What if Layers had
x
andy
values (optionallyw
andh
)? Thex
of an element would become an offset value relative to its layer, and the absolute value would require something likeElement:getX()
. Layers could then be blitted at their coordinates. This would also help with #28 .Pull the existing scrollbars out of TextEditor or Listbox. They should maybe be a bit wider...
Track the currently visible area and blit that from the visible layers
If layers end up getting dimensions, this could also check to see if the layer is in the viewport before drawing it, and/or only blitting the portion that intersects the viewport.