A custom scroller component that synchronizes with an external index and applies a custom cursor background color. More...
Public Member Functions | |
ScrollerBase (Component child, int *external_selected, Color cursor_bg) | |
Constructor for the ScrollerBase class. | |
A custom scroller component that synchronizes with an external index and applies a custom cursor background color.
The ScrollerBase
component disables internal navigation and allows the scroll state to be controlled externally using an external index (external_selected_
). It also supports custom styling for the focused element using a background color (cursor_bg_
).
|
inline |
Constructor for the ScrollerBase class.
child | The child component to be rendered inside the scroller. |
external_selected | A pointer to an external integer that controls the selected index. |
cursor_bg | The background color to apply to the focused element. |