add casts to zune macros to silence some warnings
[tangerine.git] / workbench / system / Wanderer / iconwindowbackfill.h
blob7a8f50ca34c60fd6d7173c147b0a3a6d60ed7c0b
1 #ifndef _ICONWINDOWBACKFILL_H_
2 #define _ICONWINDOWBACKFILL_H_
4 /*
5 Copyright 2004, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <exec/types.h>
10 #include <utility/hooks.h>
11 #include <intuition/screens.h>
12 #include <graphics/rastport.h>
13 #include <datatypes/pictureclass.h>
15 #define MOD(x,y) ((x)<0 ? (y)-((-(x))%(y)) : (x)%(y))
17 #define RECTSIZEX(r) (((r)->MaxX - (r)->MinX)+1)
18 #define RECTSIZEY(r) (((r)->MaxY - (r)->MinY)+1)
20 #define blit_MODE_Blit 1
21 #define blit_MODE_Clip 2
23 #warning "TODO: Make Floating/Fixed tiles preference settable"
24 #define TILE_MODE_FLOAT 0
25 #define TILE_MODE_FIX 1
27 struct BackFillOptions
29 IPTR bfo_MaxCopyWidth;
30 IPTR bfo_MaxCopyHeight;
31 IPTR bfo_OffsetX;
32 IPTR bfo_OffsetY;
33 IPTR bfo_TileMode;
36 struct BackFillSourceImageBuffer
38 struct Node bfsib_Node;
39 int bfsib_OpenerCount;
40 struct BitMap *bfsib_BitMap;
41 struct RastPort *bfsib_BitMapRastPort;
42 ULONG bfsib_BitMapWidth;
43 ULONG bfsib_BitMapHeight;
46 struct BackFillSourceImageRecord
48 /* Record and data for currently in use images */
49 struct Node bfsir_Node;
50 int bfsir_OpenerCount;
51 char *bfsir_SourceImage; /* Full name of image */
53 IPTR bfsir_BackGroundRenderMode;
55 Object *bfsir_DTPictureObject;
56 struct RastPort *bfsir_DTRastPort;
57 struct BitMap *bfsir_DTBitMap;
58 struct BitMapHeader *bfsir_DTBitMapHeader;
60 struct List bfsir_Buffers;
63 struct BackFillInfo
65 struct Screen *bfi_Screen;
66 struct RastPort *bfi_RastPort;
68 ULONG bfi_CopyWidth;
69 ULONG bfi_CopyHeight;
71 struct BackFillSourceImageRecord *bfi_Source;
72 struct BackFillSourceImageBuffer *bfi_Buffer;
73 struct BackFillOptions bfi_Options;
76 #endif /* _ICONWINDOWBACKFILL_H_ */