#ifndef TEXTINPUT_H #define TEXTINPUT_H #include #include "structures.h" typedef struct TEXT_ROW { char *row; int length; } TextRow; typedef struct TEXT_BODY { TextRow *rows; int nRows; } TextBody; TextBody getTextBody(nSDL_Font *f, int w, char *s); void DrawTextLine(SDL_Surface *scr, nSDL_Font *f, int x, int y, TextRow *l); void DrawTextBody(SDL_Surface *scr, nSDL_Font *f, int x, int y, TextBody *b, int fRow, int nRows); char enshift(char c); char enctrl(wCONSTRUCT *ctr, char c); #endif