raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.47k stars 298 forks source link

`GuiScrollPanel()` content parameter is a `Rectangle` but only `width`/`height` are required #340

Closed danielchasehooper closed 8 months ago

danielchasehooper commented 1 year ago

Small api design issue: GuiScrollPanel's content param is a rectangle, but it only reads the rectangle's width/height. the content param should probably be a Vector2 to make the api clearer.

raysan5 commented 8 months ago

I think Rectangle is more easy to understand that it refers to a container area, despite x,y are not used (for now).