Factory function to create a Scroller component.
This function creates an instance of ScrollerBase with external index control and a custom cursor background color.
- Parameters
-
| 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. |
- Returns
- A
Component instance representing the scroller.