1 #ifndef _ICONWINDOWBACKFILL_H_
2 #define _ICONWINDOWBACKFILL_H_
5 Copyright 2004, The AROS Development Team. All rights reserved.
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 /* 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
;
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
;
65 struct Screen
*bfi_Screen
;
66 struct RastPort
*bfi_RastPort
;
71 struct BackFillSourceImageRecord
*bfi_Source
;
72 struct BackFillSourceImageBuffer
*bfi_Buffer
;
73 struct BackFillOptions bfi_Options
;
76 #endif /* _ICONWINDOWBACKFILL_H_ */