26 #define LIST_BOOKMARKS 1
141 #define NOTHING_SELECTED ((unsigned int) ~0)
void state_set_status(enum color color, char *text)
Definition: state.c:154
size_t state_get_current_list()
Get the id of the currently displayed list.
Definition: state.c:46
char * state_get_status_text()
Get the current text in the status bar.
Definition: state.c:57
void state_set_tb_pos_rel(int delta)
Definition: state.c:143
char * state_get_title_text()
Get the current text in the title bar.
Definition: state.c:56
size_t state_get_current_time()
Definition: state.c:64
struct command * state_get_commands()
Definition: state.c:63
bool state_init()
Global initialization of the internal state of SCTC.
Definition: state.c:173
size_t state_get_tb_old_pos()
size_t state_get_old_selected()
Definition: state.c:49
void state_set_title(char *title_line_text)
Definition: state.c:93
char * state_get_tb_text()
Get the text of the currently visible textbox.
Definition: state.c:59
The basic datastructure representing a single track.
Definition: track.h:67
size_t state_get_sugg_selected()
Definition: state.c:65
void state_set_current_selected(size_t selected)
Definition: state.c:118
void state_set_current_playback(size_t list, size_t track)
Definition: state.c:109
void state_set_sugg_selected(size_t selected)
Definition: state.c:96
struct track_list * state_get_list(size_t id)
Get the track_list for a specific id.
Definition: state.c:51
void state_set_repeat(enum repeat repeat)
Definition: state.c:92
size_t state_get_current_selected()
Definition: state.c:47
size_t state_get_current_position()
Definition: state.c:48
void state_add_list(struct track_list *_list)
Definition: state.c:78
repeat
Definition: state.h:40
callback_event
Definition: state.h:28
void state_set_tb_pos(size_t pos)
Definition: state.c:102
enum color state_get_status_color()
Get the current color of the text in the status bar.
Definition: state.c:58
void state_set_current_selected_rel(int delta)
Definition: state.c:129
const struct command commands[]
Array of all commands supported by SCTC.
Definition: command.c:600
size_t state_get_tb_pos()
Definition: state.c:61
void state_set_current_position(size_t pos)
Definition: state.c:125
char * state_get_input()
Definition: state.c:62
bool state_finalize()
Global finalization of the internal state of SCTC.
Definition: state.c:179
void state_register_callback(enum callback_event evt, void(*cb)(void))
Definition: state.c:168
void state_set_current_time(size_t time)
Definition: state.c:94
void state_set_tb(char *title, char *text)
Definition: state.c:161
void state_set_commands(struct command *commands)
Definition: state.c:67
size_t state_get_current_playback_list()
Definition: state.c:115
size_t state_get_current_playback_track()
Definition: state.c:116
void state_set_current_list(size_t list)
Definition: state.c:69
Definitions of the most important structures track and track_list
color
Definition: tui.h:26
char * state_get_tb_title()
Get the title of the currently visible textbox.
Definition: state.c:60
enum repeat state_get_repeat()
Get the current repeat state.
Definition: state.c:55