/*
**      $VER: MIU_Gfx.h 0.381 (23.10.98)
**
**      gfx include file for MIU_Master.library
**
**      (C) Copyright 1998 Juha 'Asa' Pinola
**      All Rights Reserved.
*/

#ifndef MIUMASTER_MIUGFX_H
#define MIUMASTER_MIUGFX_H


#include <intuition/intuition.h>
#include <utility/tagitem.h>


struct WClipRect{
  short x,y,w,h;            /* x,y,width,height */
};

struct WClipRect2{
  short x,y,x2,y2;          /* x,y,x2,y2 */
};



/************************************************************************
** WImage
**
*************************************************************************/

/* */
struct WImage{
  struct WImage      *wimg_next,*wimg_prev;

  struct WClipRect    rect;                           /* clip region for image */

  /* private DON'T TOUCH ! */
  char               *id_name;
  long                usage;

  struct RastPort     RPort;                          /* RastPort */

  short               warea_width,warea_height;       /* dimensions of the image */
  short               warea_depth,warea_colors;

  ULONG              *pic_obj;                        /* datatype object */

  ULONG               flags;

  struct SignalSemaphore sigsem;
};


/*
** MIU Image tagitems
*/
#define MIUIMG_Dummy         (TAG_USER)

#define MIUIMG_Name          (MIUIMG_Dummy + 1)
#define MIUIMG_Flags         (MIUIMG_Dummy + 4)       /* MIUIFLG_ */
#define MIUIMG_Left          (MIUIMG_Dummy + 20)
#define MIUIMG_Top           (MIUIMG_Dummy + 21)
#define MIUIMG_Width         (MIUIMG_Dummy + 22)
#define MIUIMG_Height        (MIUIMG_Dummy + 23)

/* MIUIFLG_ */

#define MIUIFLG_RESIDENT     0x0001                   /* keep image resident */


#endif /* MIUMASTER_MIUGFX_H */

