mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
This PR introduces a new ScrollPanel component with the following capabilities: - Scroll Orientation Support: Allows scrolling in horizontal, vertical, or both directions, providing flexibility for different use cases. - Partial Object Rendering: Supports partial rendering of objects that are only partially visible within the scroll boundaries, improving visual accuracy and performance. - Boundary-Constrained Mouse Interaction: Handles mouse events strictly within the panel's visible boundaries, preventing interaction with objects outside the scrollable area. - Minimum Internal Size (min_width, min_height): Introduces support for virtual space management, allowing the panel to maintain a minimum internal size independent of its actual on-screen dimensions. Even when the panel is resized, this ensures that the content respects a defined virtual space (with min_width and min_height), effectively simulating a larger internal canvas. This is particularly useful for large content or scenarios where a more extensive scrollable area is required than the current visible panel. |
||
|---|---|---|
| .. | ||
| CButton.cpp | ||
| CButton.h | ||
| CChart.cpp | ||
| CChart.h | ||
| CCheckBox.cpp | ||
| CCheckBox.h | ||
| CDropDown.cpp | ||
| CDropDown.h | ||
| CGUIDummyObject.h | ||
| CHotkeyPicker.cpp | ||
| CHotkeyPicker.h | ||
| CImage.cpp | ||
| CImage.h | ||
| CInput.cpp | ||
| CInput.h | ||
| CList.cpp | ||
| CList.h | ||
| CMiniMap.cpp | ||
| CMiniMap.h | ||
| COList.cpp | ||
| COList.h | ||
| CProgressBar.cpp | ||
| CProgressBar.h | ||
| CRadioButton.cpp | ||
| CRadioButton.h | ||
| CScrollPanel.cpp | ||
| CScrollPanel.h | ||
| CSlider.cpp | ||
| CSlider.h | ||
| CText.cpp | ||
| CText.h | ||
| CTooltip.cpp | ||
| CTooltip.h | ||