Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement control: GuiScrollPanel() #8

Closed
raysan5 opened this issue May 22, 2018 · 1 comment
Closed

Implement control: GuiScrollPanel() #8

raysan5 opened this issue May 22, 2018 · 1 comment

Comments

@raysan5
Copy link
Owner

raysan5 commented May 22, 2018

It would be very useful to have a panel with scrolling that sizes with its contents and offers scroll bars. This is the proposed implementation:

// Scroll Panel control
Vector2 GuiScrollPanel(Rectangle bounds, Rectangle content, Vector2 viewScroll);

Rectangle bounds define the visible area
Rectangle content defines size of internal data and will condition scrolling
Vector2 viewScroll defines the content offset, new offset should be returned in case of scrolling

Note that content.x and content.y could be useless... or just use them as scroll offset.

Check GuiListView() for a temptative implementation of GuiScrollPanel().

@raysan5 raysan5 mentioned this issue Nov 6, 2018
22 tasks
@raysan5
Copy link
Owner Author

raysan5 commented Jan 15, 2019

Partially implemented in commit ef9eb88.

@raysan5 raysan5 closed this as completed Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant