typedef struct rg_feature_ops {
const char *type; /* Feature name */
AG_Size len; /* Size of structure */
const char *desc; /* Feature description */
int flags;
#define FEATURE_AUTOREDRAW 0x01 /* Automatic redraw on edit */
void (*init)(void *self, RG_Tileset *set, int flags);
int (*load)(void *self, AG_DataSource *ds);
void (*save)(void *self, AG_DataSource *ds);
void (*destroy)(void *self);
void (*apply)(void *self, RG_Tile *tile, int x, int y);
void (*menu)(void *self, AG_MenuItem *menu);
AG_Toolbar *(*toolbar)(void *self, RG_Tileview *view);
AG_Window *(*edit)(void *self, RG_Tileview *view);
}
|