|
|
@ -62,24 +62,6 @@ typedef struct { |
|
|
|
bool is_hud_visible : 1; |
|
|
|
} Ged; |
|
|
|
|
|
|
|
void ged_init(Ged *a, Usz undo_limit, Usz init_bpm, Usz init_seed); |
|
|
|
|
|
|
|
void ged_make_cursor_visible(Ged *a); |
|
|
|
|
|
|
|
void ged_send_osc_bpm(Ged *a, I32 bpm); |
|
|
|
|
|
|
|
void ged_set_playing(Ged *a, bool playing); |
|
|
|
|
|
|
|
void ged_do_stuff(Ged *a); |
|
|
|
|
|
|
|
bool ged_is_draw_dirty(Ged *a); |
|
|
|
|
|
|
|
void ged_draw(Ged *a, WINDOW *win, char const *filename, bool use_fancy_dots, bool use_fancy_rulers); |
|
|
|
|
|
|
|
double ged_secs_to_deadline(Ged const *a); |
|
|
|
|
|
|
|
ORCA_OK_IF_UNUSED void ged_mouse_event(Ged *a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate); |
|
|
|
|
|
|
|
typedef enum |
|
|
|
{ |
|
|
|
Ged_dir_up, |
|
|
@ -88,10 +70,6 @@ typedef enum |
|
|
|
Ged_dir_right, |
|
|
|
} Ged_dir; |
|
|
|
|
|
|
|
void ged_dir_input(Ged *a, Ged_dir dir, int step_length); |
|
|
|
|
|
|
|
void ged_input_character(Ged *a, char c); |
|
|
|
|
|
|
|
typedef enum |
|
|
|
{ |
|
|
|
Ged_input_cmd_undo, |
|
|
@ -108,6 +86,29 @@ typedef enum |
|
|
|
} Ged_input_cmd; |
|
|
|
|
|
|
|
|
|
|
|
void ged_init(Ged *a, Usz undo_limit, Usz init_bpm, Usz init_seed); |
|
|
|
|
|
|
|
void ged_make_cursor_visible(Ged *a); |
|
|
|
|
|
|
|
void ged_send_osc_bpm(Ged *a, I32 bpm); |
|
|
|
|
|
|
|
void ged_set_playing(Ged *a, bool playing); |
|
|
|
|
|
|
|
void ged_do_stuff(Ged *a); |
|
|
|
|
|
|
|
bool ged_is_draw_dirty(Ged *a); |
|
|
|
|
|
|
|
void ged_draw(Ged *a, WINDOW *win, char const *filename, bool use_fancy_dots, bool use_fancy_rulers); |
|
|
|
|
|
|
|
double ged_secs_to_deadline(Ged const *a); |
|
|
|
|
|
|
|
ORCA_OK_IF_UNUSED void ged_mouse_event(Ged *a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate); |
|
|
|
|
|
|
|
|
|
|
|
void ged_dir_input(Ged *a, Ged_dir dir, int step_length); |
|
|
|
|
|
|
|
void ged_input_character(Ged *a, char c); |
|
|
|
|
|
|
|
void ged_set_window_size(Ged *a, int win_h, int win_w, int softmargin_y, int softmargin_x); |
|
|
|
|
|
|
|
void ged_resize_grid( |
|
|
|