OSDN Git Service

finalize changelog
[jnethack/source.git] / win / gem / gr_rect.h
1 /* gr_rect.h */
2 /*
3  * $NHDT-Date: 1432512809 2015/05/25 00:13:29 $  $NHDT-Branch: master $:$NHDT-Revision: 1.4 $
4  */
5 #include <e_gem.h>
6 /********** structs **********/
7 typedef struct {
8     GRECT *rects;
9     int max, used;
10 } dirty_rect;
11 /********* functions ************/
12 dirty_rect *new_dirty_rect(int size);
13 void delete_dirty_rect(dirty_rect *this);
14 int add_dirty_rect(dirty_rect *dr, GRECT *area);
15 int get_dirty_rect(dirty_rect *dr, GRECT *area);
16 int clear_dirty_rect(dirty_rect *dr);
17 int resize_dirty_rect(dirty_rect *dr, int new_size);