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)
 
auto Scroller (Component child, int *external_selected, Color cursor_bg, Color inactive_menu_cursor_bg) -> Component
 Factory function to create a Scroller component.
 

Function Documentation

◆ image_view()

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

◆ Scroller()

auto ftxui::Scroller ( Component child,
int * external_selected,
Color cursor_bg,
Color inactive_menu_cursor_bg ) -> Component

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.
inactive_menu_cursor_bgThe background color to apply to the inactive menu elements.
current_playing_colThe background color to apply to the currently playing element.
current_playing_indexThe index of the currently playing element.
Returns
A Component instance representing the scroller.