X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fdisplay.h;fp=src%2Fdisplay.h;h=a12f3807b5bb57f5743976730da42f4f4edb6a03;hp=113e89258003989ea327a62b410875617ea9bbdd;hb=bb2eedc347c7457678118762799806db07d5d200;hpb=d525cc402e67386372745a4bc3c04a488ea264f7 diff --git a/src/display.h b/src/display.h index 113e892..a12f380 100644 --- a/src/display.h +++ b/src/display.h @@ -2,11 +2,18 @@ /* includes */ #include +#include /* defines */ #define D_SUCCESS 1 #define D_ERROR -1 +#define MAX_TERM_STRING 64 + +#define CENTERED (1<<0) +#define LEFT (1<<1) +#define RIGHT (1<<2) + /* display specific variables */ typedef struct s_display { int max_x; @@ -19,3 +26,5 @@ typedef struct s_display { int display_init(t_display *display); int display_refresh(t_display *display); int display_shutdown(t_display *display); +int display_term_line(t_display *display,char sym); +int display_term_string(t_display *display,char *string);