|
ncmpc
0.31
|
#include <hscroll.hxx>
Public Member Functions | |
| hscroll (WINDOW *_w, const char *_separator) | |
| bool | IsDefined () const |
| void | Set (unsigned x, unsigned y, unsigned width, const char *text, Style style, attr_t attr=0) |
| void | Clear () |
| void | Rewind () |
| void | Step () |
| void | Paint () const |
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.
|
inline |
|
inline |
| void hscroll::Set | ( | unsigned | x, |
| unsigned | y, | ||
| unsigned | width, | ||
| const char * | text, | ||
| Style | style, | ||
| attr_t | attr = 0 |
||
| ) |
Sets a text to scroll. This installs a timer which redraws every second with the current window attributes. Call hscroll_clear() to disable it.
| void hscroll::Clear | ( | ) |
Removes the text and the timer. It may be reused with Set().
|
inline |
|
inline |
| void hscroll::Paint | ( | ) | const |
Explicitly draws the scrolled text. Calling this function is only allowed if there is a text currently.
1.8.13