cctools
|
00001 /* 00002 Copyright (C) 2008- The University of Notre Dame 00003 This software is distributed under the GNU General Public License. 00004 See the file COPYING for details. 00005 */ 00006 00007 #ifndef TEXT_ARRAY_H 00008 #define TEXT_ARRAY_H 00009 00021 struct text_array *text_array_create(int w, int h); 00022 00026 void text_array_delete(struct text_array *t); 00027 00032 int text_array_width(struct text_array *t); 00033 00038 int text_array_height(struct text_array *t); 00039 00046 const char *text_array_get(struct text_array *t, int x, int y); 00047 00054 int text_array_set(struct text_array *t, int x, int y, const char *c); 00055 00060 int text_array_load(struct text_array *t, const char *filename); 00061 00066 int text_array_save(struct text_array *t, const char *filename); 00067 00076 int text_array_save_range(struct text_array *t, const char *filename, int x, int y, int w, int h); 00077 00078 #endif