Skip to content

possibility: uiArea sizing and scrolling changes #82

Description

@andlabs

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions