SCTC
the soundcloud.com terminal client
Macros | Enumerations | Functions
tui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define F_BOLD   "\1"
 
#define F_RESET   "\2"
 

Enumerations

enum  color {
  cline_default = 1, cline_cmd_char, cline_warning, tbar_default,
  tbar_tab_selected, tbar_tab_nselected, inp_cursor, sbar_default,
  tline_status, tline_default, tline_default_selected, tline_default_played,
  tline_date, tline_date_selected, tline_date_played, tline_ctime,
  tline_ctime_selected, tline_ctime_played, tline_user, tline_user_selected,
  tline_user_played, tline_time, tline_time_selected, tline_time_played,
  cmdlist_default, cmdlist_selected, cmdlist_desc_selected, cmdlist_desc,
  cmdlist_descparam_selected, cmdlist_descparam
}
 
enum  tui_action_kind {
  none, redraw, textbox_modified, tabbar_modified,
  titlebar_modified, statusbar_modified, list_modified, sugg_modified,
  update_list, set_sbar_time, input_modify_text
}
 

Functions

void tui_submit_action (enum tui_action_kind kind)
 
bool tui_init ()
 
void tui_finalize ()
 

Macro Definition Documentation

#define F_BOLD   "\1"
#define F_RESET   "\2"

Enumeration Type Documentation

enum color
Enumerator
cline_default 
cline_cmd_char 
cline_warning 
tbar_default 
tbar_tab_selected 
tbar_tab_nselected 
inp_cursor 
sbar_default 
tline_status 

trackline: the status ('>' or '=')

tline_default 

trackline: the default colors (title / empty parts)

tline_default_selected 

trackline: the default colors (title / empty parts) [if track is selected]

tline_default_played 

trackline: the default colors (title / empty parts) [if part is already played]

tline_date 

trackline: the created_at date

tline_date_selected 

trackline: the created_at date [if track is selected]

tline_date_played 

trackline: the created_at date [if part is already played]

tline_ctime 

trackline: the current position of playback

tline_ctime_selected 

trackline: the current position of playback [if track is selected]

tline_ctime_played 

trackline: the current position of playback [if part is already played]

tline_user 

trackline: the username

tline_user_selected 

trackline: the username [if track is selected]

tline_user_played 

trackline: the username [if part is already played]

tline_time 

trackline: the total time

tline_time_selected 

trackline: the total time [if track is selected]

tline_time_played 

trackline: the total time [if part is already played]

cmdlist_default 

commandlist: the default color

cmdlist_selected 

commandlist: the name [if entry is selected]

cmdlist_desc_selected 

commandlist: the description [if entry is selected]

cmdlist_desc 

commandlist: the description

cmdlist_descparam_selected 

commandlist: the description of parameters [if entry is selected]

cmdlist_descparam 

commandlist: the description of parameters

Enumerator
none 

"do nothing"

redraw 

redraw the whole screen

textbox_modified 

redraw the textbox with new data

tabbar_modified 

the tabbar was modified

titlebar_modified 

the titlebar was modified

statusbar_modified 

the statusbar was modified

list_modified 

the list was modified

sugg_modified 

the list of suggestions were modified

update_list 

set the supplied list as currently visible one

set_sbar_time 

update the time shown in the status bar

input_modify_text 

set the currently visible input

Function Documentation

void tui_finalize ( )

Here is the caller graph for this function:

bool tui_init ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void tui_submit_action ( enum tui_action_kind  kind)

Here is the caller graph for this function: