Migrating in #73 and andlabs/ui#116.
Instead of maintaining separate non-scrolling and scrolling uiAreas, have just scrolling ones. The width and height can be independently set to affect horizontal and vertical scrolling.
If the width of a uiArea is <= 0 (or should it be < instead?), the uiArea is as wide as the available space, as in a non-scrolling uiArea. Otherwise, the uiArea will scroll to that width.
Likewise for height and OpenGL uiAreas.
Probably also introduce uiAreaSize() to get the current size and uiAreaHandler.SizeChanged() as an event to catch when the size has changed in the case of a <=0 dimension.
The only problem platform here is GTK+; I'm not sure how to make GtkScrolledWindow and GtkViewport and GtkDrawingArea play nice with this design.
Migrating in #73 and andlabs/ui#116.
Instead of maintaining separate non-scrolling and scrolling uiAreas, have just scrolling ones. The width and height can be independently set to affect horizontal and vertical scrolling.
If the width of a uiArea is <= 0 (or should it be < instead?), the uiArea is as wide as the available space, as in a non-scrolling uiArea. Otherwise, the uiArea will scroll to that width.
Likewise for height and OpenGL uiAreas.
Probably also introduce uiAreaSize() to get the current size and uiAreaHandler.SizeChanged() as an event to catch when the size has changed in the case of a <=0 dimension.
The only problem platform here is GTK+; I'm not sure how to make GtkScrolledWindow and GtkViewport and GtkDrawingArea play nice with this design.