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

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.
 

Function Documentation

◆ image_view()

Element ftxui::image_view ( std::string_view url)

◆ Scroller()

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.

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.
Returns
A Component instance representing the scroller.