diff options
author | Antony Kellermann | 2018-06-04 11:08:09 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-06-04 11:08:09 -0400 |
commit | a70d1a61723db974b4e7f4230881cf272e9d6427 (patch) | |
tree | 86c17cbe91584ff515103cea8619967351580078 /info.h | |
parent | 57630b8152a5d9e21214dd02d1b5d0e7fa642d09 (diff) | |
download | aur-a70d1a61723db974b4e7f4230881cf272e9d6427.tar.gz |
Implemented peers_printw and made small fixes to info
Diffstat (limited to 'info.h')
-rw-r--r-- | info.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -38,6 +38,11 @@ #define NEWS_HEIGHT GRAPH_HEIGHT + PADDING * 3 #define NEWS_WIDTH GRAPH_WIDTH +#define PEERS_Y NEWS_Y +#define PEERS_X NEWS_X + NEWS_WIDTH + PADDING * 2 +#define PEERS_HEIGHT GRAPH_HEIGHT +#define PEERS_WIDTH GRAPH_WIDTH + #include <stdlib.h> #include <ncurses.h> #include "api.h" @@ -71,20 +76,27 @@ void info_print(Info* symbol_info); void info_printw(WINDOW* window, Info* symbol_info); /** - * Prints num_articles articles relating to the given symbol to stdout. Currently on works for stocks/etfs + * Prints num_articles articles relating to the given symbol to stdout. Currently only works for stocks/etfs * @param symbol stock/etf symbol * @param num_articles number of articles to print (max 50) */ void news_print(const char* symbol, int num_articles); /** - * Prints articles relating to the given symbol to an Ncurses window. Currently on works for stocks/etfs + * Prints articles relating to the given symbol to an Ncurses window. Currently only works for stocks/etfs * @param window * @param symbol_info Info* */ void news_printw(WINDOW* window, Info* symbol_info); /** + * Prints peers relating to the given symbol to an Ncurses window. Currently only works for stocks/etfs + * @param window + * @param symbol_info Info* + */ +void peers_printw(WINDOW* window, Info* symbol_info); + +/** * Graphs a security in stdscr. If symbol2 is not NULL, also graphs that security. * @param symbol security to graph * @param symbol2 optional second security |