Resizability

When you create a SimpleWindow, you can see its resizability to be one of these via the constructor...

Values

ValueMeaning
fixedSize

the window cannot be resized

allowResizing

the window can be resized. The buffer (if there is one) will automatically adjust size, but not stretch the contents. the windowResized delegate will be called so you can respond to the new size yourself.

automaticallyScaleIfPossible

if possible, your drawing buffer will remain the same size and simply be automatically scaled to the new window size. If this is impossible, it will not allow the user to resize the window at all. Note: window.width and window.height WILL be adjusted, which might throw you off if you draw based on them, so keep track of your expected width and height separately. That way, when it is scaled, things won't be thrown off.

Meta