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, Color inactive_menu_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. |
| inactive_menu_cursor_bg | The background color to apply to the inactive menu elements. |
| current_playing_col | The background color to apply to the currently playing element. |
| current_playing_index | The index of the currently playing element. |