-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.h
More file actions
55 lines (42 loc) · 1 KB
/
Copy pathui.h
File metadata and controls
55 lines (42 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef ui_h
#define ui_h
#include <string>
#define MIXER_VIEW 1
#define SEQUENCER_VIEW 2
#define DJ_VIEW 3
#define HELP_VIEW 4
void ui_init(void);
void onsignal(int);
void cleanup(void);
void update(void);
void save_and_quit(void);
void before_playing(void);
void done_playing(void);
bool play_until_input(void);
bool load_project();
bool save_project();
string read_prompt(const string &prompt);
int read_int(const string &prompt);
bool read_yn(const string &prompt);
void print_error(const string &error);
void print_status(const string &status);
void clear_status();
void clear_screen();
extern string filename;
extern bool has_name;
extern bool need_save;
extern bool edit_mode;
extern int offset_time;
extern int offset_note;
extern int s_idx;
extern int i_idx;
extern int cursor_x;
extern int cursor_y;
extern uint16_t nl_last[];
extern const char note_names[13];
extern bool quit_now;
extern bool is_playing;
extern const char note_chars[][4];
extern int width;
extern int height;
#endif