Classes | |
class | ScrollerBase |
A custom scroller component that synchronizes with an external index and applies a custom cursor background color. More... | |
Functions | |
Element | image_view (std::string_view url) |
Component | Scroller (Component child, int *external_selected, Color cursor_bg) |
Factory function to create a Scroller component. | |
Element ftxui::image_view | ( | std::string_view | url | ) |
Component ftxui::Scroller | ( | Component | child, |
int * | external_selected, | ||
Color | cursor_bg ) |
Factory function to create a Scroller component.
This function creates an instance of ScrollerBase
with external index control and a custom cursor background color.
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. |
Component
instance representing the scroller.