SCTC
the soundcloud.com terminal client
tui.h
Go to the documentation of this file.
1 /*
2  SCTC - the soundcloud.com client
3  Copyright (C) 2015 Christian Eichler
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>
17 */
18 
19 #ifndef _TUI_H
20  #define _TUI_H
21 
22  //\cond
23  #include <stdbool.h> // for bool, false, true
24  //\endcond
25 
26  enum color {
31 
32  /* track-line colors */
34 
38 
42 
46 
50 
54 
55  /* command-list colors */
62  };
63 
65  none,
76  };
77 
78  #define F_BOLD "\1"
79  #define F_RESET "\2"
80 
81  void tui_submit_action(enum tui_action_kind kind);
82 
83  bool tui_init();
84  void tui_finalize();
85 #endif /* _TUI_H */
trackline: the current position of playback [if track is selected]
Definition: tui.h:44
bool tui_init()
Definition: tui.c:531
trackline: the default colors (title / empty parts)
Definition: tui.h:35
set the currently visible input
Definition: tui.h:75
commandlist: the name [if entry is selected]
Definition: tui.h:57
trackline: the default colors (title / empty parts) [if track is selected]
Definition: tui.h:36
trackline: the default colors (title / empty parts) [if part is already played]
Definition: tui.h:37
Definition: tui.h:28
commandlist: the description of parameters
Definition: tui.h:61
trackline: the username [if part is already played]
Definition: tui.h:49
Definition: tui.h:30
Definition: tui.h:27
trackline: the username [if track is selected]
Definition: tui.h:48
the list was modified
Definition: tui.h:71
redraw the whole screen
Definition: tui.h:66
Definition: tui.h:27
trackline: the total time [if part is already played]
Definition: tui.h:53
trackline: the created_at date [if part is already played]
Definition: tui.h:41
Definition: tui.h:28
trackline: the current position of playback [if part is already played]
Definition: tui.h:45
trackline: the current position of playback
Definition: tui.h:43
trackline: the username
Definition: tui.h:47
the titlebar was modified
Definition: tui.h:69
trackline: the created_at date
Definition: tui.h:39
commandlist: the default color
Definition: tui.h:56
commandlist: the description of parameters [if entry is selected]
Definition: tui.h:60
commandlist: the description
Definition: tui.h:59
"do nothing"
Definition: tui.h:65
commandlist: the description [if entry is selected]
Definition: tui.h:58
redraw the textbox with new data
Definition: tui.h:67
the list of suggestions were modified
Definition: tui.h:72
trackline: the created_at date [if track is selected]
Definition: tui.h:40
update the time shown in the status bar
Definition: tui.h:74
void tui_submit_action(enum tui_action_kind kind)
Definition: tui.c:505
Definition: tui.h:28
Definition: tui.h:29
set the supplied list as currently visible one
Definition: tui.h:73
Definition: tui.h:27
trackline: the total time [if track is selected]
Definition: tui.h:52
void tui_finalize()
Definition: tui.c:624
the statusbar was modified
Definition: tui.h:70
tui_action_kind
Definition: tui.h:64
trackline: the status ('>' or '=')
Definition: tui.h:33
trackline: the total time
Definition: tui.h:51
color
Definition: tui.h:26
the tabbar was modified
Definition: tui.h:68