ncmpc  0.29
Data Fields
hscroll Struct Reference

#include <hscroll.h>

Data Fields

WINDOW * w
 
const char * separator
 
unsigned x
 
unsigned y
 
unsigned width
 
attr_t attrs
 
short pair
 
char * text
 
gsize offset
 
guint source_id
 

Detailed Description

This class is used to auto-scroll text which does not fit on the screen. Call hscroll_init() to initialize the object, hscroll_clear() to free resources, and hscroll_set() to begin scrolling.

Field Documentation

◆ w

WINDOW* hscroll::w

◆ separator

const char* hscroll::separator

◆ x

unsigned hscroll::x

The bounding coordinates on the screen.

◆ y

unsigned hscroll::y

◆ width

unsigned hscroll::width

◆ attrs

attr_t hscroll::attrs

ncurses attributes for drawing the text.

◆ pair

short hscroll::pair

ncurses colors for drawing the text.

◆ text

char* hscroll::text

The scrolled text, in the current locale.

◆ offset

gsize hscroll::offset

The current scrolling offset. This is a character position, not a screen column.

◆ source_id

guint hscroll::source_id

The id of the timer which updates the scrolled area every second.


The documentation for this struct was generated from the following file: