inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
ftxui::ScrollerBase Class Reference

A custom scroller component that synchronizes with an external index and applies a custom cursor background color. More...

Inheritance diagram for ftxui::ScrollerBase:

Public Member Functions

 ScrollerBase (Component child, int *external_selected, Color cursor_bg)
 Constructor for the ScrollerBase class.
 

Detailed Description

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_).

Constructor & Destructor Documentation

◆ ScrollerBase()

ftxui::ScrollerBase::ScrollerBase ( Component child,
int * external_selected,
Color cursor_bg )
inline

Constructor for the ScrollerBase class.

Parameters
childThe child component to be rendered inside the scroller.
external_selectedA pointer to an external integer that controls the selected index.
cursor_bgThe background color to apply to the focused element.

The documentation for this class was generated from the following file: