diff options
author | Antony Kellermann | 2018-03-17 14:37:03 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-03-17 14:37:03 -0400 |
commit | c383b029c80222787d967afdfaf5975a4025fef0 (patch) | |
tree | 292c4c13001037cc5fadce2a919faf89bfac383d /graph.h | |
parent | 3f2c67221fc705e202aef9f9ef46e715acb6d44f (diff) | |
download | aur-c383b029c80222787d967afdfaf5975a4025fef0.tar.gz |
Implemented zooming in and out for graphing
Diffstat (limited to 'graph.h')
-rw-r--r-- | graph.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,6 +1,16 @@ #ifndef GRAPH_H #define GRAPH_H +#define ZOOM_5y 0 +#define ZOOM_4y 1 +#define ZOOM_3y 2 +#define ZOOM_2y 3 +#define ZOOM_1y 4 +#define ZOOM_9m 5 +#define ZOOM_6m 6 +#define ZOOM_3m 7 +#define ZOOM_1m 8 + #define ROWS_SPACING 5 #define COLS_SPACING 12 #define DAYS_TO_BUSINESS_DAYS_RATIO (29.0/20.0) @@ -14,6 +24,7 @@ /** * Main input loop + * Entering the key UP or DOWN will zoom in or out one level * @param ticker_name_string symbol */ void graph_main(const char* ticker_name_string); @@ -25,6 +36,6 @@ void graph_main(const char* ticker_name_string); * @param points daily close prices * @param start_time the starting date */ -void graph_print(const double* points, struct tm* start_time); +void graph_print(const double* points, struct tm* start_time, int zoom); #endif
\ No newline at end of file |