inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
misc.hpp File Reference
#include "../dirsort/taglib_parser.h"
#include "./colors.hpp"
#include "components/image_view.hpp"
#include <cctype>
#include <ftxui/component/captured_mouse.hpp>
#include <ftxui/component/component.hpp>
#include <ftxui/component/component_base.hpp>
#include <ftxui/component/event.hpp>
#include <ftxui/component/screen_interactive.hpp>
#include <ftxui/dom/elements.hpp>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  ComponentState
 

Functions

auto formatLyrics (const std::string &lyrics)
 
std::string charToStr (char ch)
 
auto FormatTime (int seconds)
 
auto getTrueColor (TrueColors::Color color)
 
auto getTrueBGColor (TrueColors::Color color)
 
auto renderAlbumName (const std::string &album_name, const int &year, ftxui::Color sel_color)
 
auto renderSongName (const std::string &disc_track_info, const std::string &song_name, const int &duration)
 
auto CreateMenu (const std::vector< std::string > *vecLines, int *currLine)
 
auto RenderSongMenu (const std::vector< Element > &items)
 
auto RenderThumbnail (const std::string &songFilePath, const std::string &cacheDirPath, const std::string &songTitle, const std::string &artistName, const std::string &albumName, const std::string &genre, unsigned int year, unsigned int trackNumber, unsigned int discNumber, float progress)
 

Function Documentation

◆ charToStr()

std::string charToStr ( char ch)

◆ CreateMenu()

auto CreateMenu ( const std::vector< std::string > * vecLines,
int * currLine )

◆ formatLyrics()

auto formatLyrics ( const std::string & lyrics)

◆ FormatTime()

auto FormatTime ( int seconds)

◆ getTrueBGColor()

auto getTrueBGColor ( TrueColors::Color color)

◆ getTrueColor()

auto getTrueColor ( TrueColors::Color color)

◆ renderAlbumName()

auto renderAlbumName ( const std::string & album_name,
const int & year,
ftxui::Color sel_color )

◆ RenderSongMenu()

auto RenderSongMenu ( const std::vector< Element > & items)

◆ renderSongName()

auto renderSongName ( const std::string & disc_track_info,
const std::string & song_name,
const int & duration )

◆ RenderThumbnail()

auto RenderThumbnail ( const std::string & songFilePath,
const std::string & cacheDirPath,
const std::string & songTitle,
const std::string & artistName,
const std::string & albumName,
const std::string & genre,
unsigned int year,
unsigned int trackNumber,
unsigned int discNumber,
float progress )