first version of textlog with GUI

introducing generic "view" with two instantiations: stdout and textlist
This commit is contained in:
Cedric Roux
2016-04-28 15:02:01 +02:00
parent 29859bb930
commit ca945b53de
10 changed files with 326 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef _VIEW_H_
#define _VIEW_H_
#include "gui/gui.h"
/* defines the public API of views */
typedef struct view {
void (*clear)(struct view *this);
void (*append)(struct view *this, ...);
} view;
view *new_stdout(void);
view *new_textlist(int maxsize, float refresh_rate, gui *g, widget *w);
#endif /* _VIEW_H_ */