/* Copyright 2008 Jeffrey Lee
   This file is part of Pale.
   Pale is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   Pale is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   You should have received a copy of the GNU General Public License
   along with Pale.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SPRFILE_H
#define _SPRFILE_H

#include "pale.h"

//DEPPEND

extern void open_sprfile_menu(sprfile *s,int index,limpx_mouse_obj *m);
extern void sprfile_rebuildicons(sprfile *s);
extern void *sprfile_getsprite(sprfile *s,int index); /* return ptr */
extern rgb *sprfile_getpalette(void *spr); /* return palette, 0 if incompatible */
extern void sprfile_redraw(sprfile *s,void *spr); /* redraw main window + previews for spr */
extern void sprfile_updatetitle(sprfile *s);
extern void sprfile_startdrag(sprfile *s,int index);

extern void palette_remap(rgb *pal,char *remap);
extern void sprite_remap(sprfile *s,void *spr,char *remap);

#endif
