ncmpc  0.29
Functions
song_paint.h File Reference
#include "config.h"
#include "ncmpc_curses.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

void paint_song_row (WINDOW *w, unsigned y, unsigned width, bool selected, bool highlight, const struct mpd_song *song, struct hscroll *hscroll, const char *format)
 

Function Documentation

◆ paint_song_row()

void paint_song_row ( WINDOW *  w,
unsigned  y,
unsigned  width,
bool  selected,
bool  highlight,
const struct mpd_song *  song,
struct hscroll hscroll,
const char *  format 
)

Paints a song into a list window row. The cursor must be set to the first character in the row prior to calling this function.

Parameters
wthe ncurses window
ythe row number in the window
widththe width of the row
selectedtrue if the row is selected
highlighttrue if the row is highlighted
songthe song object
hscrollan optional hscroll object
formatthe song format