OSDN Git Service

Initial Import
[nethackexpress/trunk.git] / win / gem / gr_rect.h
1 /* gr_rect.h */
2 #include <e_gem.h>
3 /********** structs **********/
4 typedef struct {
5         GRECT *rects;
6         int max,used;
7 } dirty_rect;
8 /********* functions ************/
9 dirty_rect *new_dirty_rect(int size);
10 void delete_dirty_rect(dirty_rect *this);
11 int add_dirty_rect(dirty_rect *dr,GRECT *area);
12 int get_dirty_rect(dirty_rect* dr,GRECT *area);
13 int clear_dirty_rect(dirty_rect *dr);
14 int resize_dirty_rect(dirty_rect *dr,int new_size);