#ifndef _SKIN_SEAL_H_
#define _SKIN_SEAL_H_

extern l_bool use_skins;
extern l_text skin_file;

typedef struct t_skin {
  t_rect d;
  BITMAP *bmp;
  l_color text;
} t_skin, *p_skin;

#define SKIN(o) ((p_skin)(o))

t_point get_skin_space ( p_skin o, l_int w, l_int h );
l_int   get_skin_height ( p_skin o, l_int h );
l_int   get_skin_width ( p_skin o, l_int w );
#define get_skin_fcolor(o) ((o)->text)
p_skin  get_skin ( l_text skinfile, l_text section );
void    draw_skin ( BITMAP *out, p_skin o, t_rect r, t_rect *z );

#endif
