00001 #ifndef TEXT_ARRAY_H 00002 #define TEXT_ARRAY_H 00003 00015 struct text_array * text_array_create( int w, int h ); 00016 00020 void text_array_delete( struct text_array *t ); 00021 00026 int text_array_width( struct text_array *t ); 00027 00032 int text_array_height( struct text_array *t ); 00033 00040 const char * text_array_get( struct text_array *t, int x, int y ); 00041 00048 int text_array_set( struct text_array *t, int x, int y, const char *c ); 00049 00054 int text_array_load( struct text_array *t, const char *filename ); 00055 00060 int text_array_save( struct text_array *t, const char *filename ); 00061 00070 int text_array_save_range( struct text_array *t, const char *filename, int x, int y, int w, int h ); 00071 00072 #endif