/* * File: screen.h * Author: camilstaps * * Created on August 19, 2015, 12:01 AM */ #ifndef SCREEN_H #define SCREEN_H #ifdef __cplusplus extern "C" { #endif typedef struct Screen { unsigned short rows, columns, first_visible_row, first_visible_column, cursor_x, cursor_y; unsigned char** data; void (*update)(struct Screen); } Screen; Screen* newScreen(unsigned short rows, unsigned short columns, void (*update)(Screen)); inline void freeScreen(Screen* screen); //void writeOnS //void appendToScreen #ifdef __cplusplus } #endif #endif /* SCREEN_H */