W.I.P AROS port of SDI examples
[AROS.git] / rom / hyperlayers / layers.conf
blobf49a8d334649f32fdbdcfff6ff776830d94c4e4a
1 ##begin config
2 version 50.0
3 libbasetype struct LayersBase
4 residentpri 64
5 options noexpunge
6 ##end config
8 ##begin cdef
9 #include <graphics/layers.h>
10 #include <graphics/gfx.h>
11 #include <graphics/clip.h>
12 ##end cdef
14 ##begin cdefprivate
15 #include "layers_intern.h"
16 ##end cdefprivate
18 ##begin functionlist
19 void InitLayers(struct Layer_Info *li) (A0)
20 struct Layer *CreateUpfrontLayer(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct BitMap *bm2) (A0, A1, D0, D1, D2, D3, D4, A2)
21 struct Layer *CreateBehindLayer(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct BitMap *bm2) (A0, A1, D0, D1, D2, D3, D4, A2)
22 LONG UpfrontLayer(LONG dummy, struct Layer *l) (A0, A1)
23 LONG BehindLayer(LONG dummy, struct Layer *l) (A0, A1)
24 LONG MoveLayer(LONG dummy, struct Layer *l, LONG dx, LONG dy) (A0, A1, D0, D1)
25 LONG SizeLayer(LONG dummy, struct Layer *l, LONG dw, LONG dh) (A0, A1, D0, D1)
26 void ScrollLayer(LONG dummy, struct Layer *l, LONG dx, LONG dy) (A0, A1, D0, D1)
27 LONG BeginUpdate(struct Layer *l) (A0)
28 void EndUpdate(struct Layer *l, UWORD flag) (A0, D0)
29 LONG DeleteLayer(LONG dummy, struct Layer *l) (A0, A1)
30 void LockLayer(LONG dummy, struct Layer *layer) (A0, A1)
31 void UnlockLayer(struct Layer *layer) (A0)
32 void LockLayers(struct Layer_Info *li) (A0)
33 void UnlockLayers(struct Layer_Info *li) (A0)
34 void LockLayerInfo(struct Layer_Info *li) (A0)
35 void SwapBitsRastPortClipRect(struct RastPort *rp, struct ClipRect *cr) (A0, A1)
36 struct Layer *WhichLayer(struct Layer_Info *li, LONG x, LONG y) (A0, D0, D1)
37 void UnlockLayerInfo(struct Layer_Info *li) (A0)
38 struct Layer_Info *NewLayerInfo() ()
39 void DisposeLayerInfo(struct Layer_Info *li) (A0)
40 LONG FattenLayerInfo(struct Layer_Info *li) (A0)
41 void ThinLayerInfo(struct Layer_Info *li) (A0)
42 LONG MoveLayerInFrontOf(struct Layer *layer_to_move, struct Layer *other_layer) (A0, A1)
43 struct Region *InstallClipRegion(struct Layer *l, struct Region *region) (A0, A1)
44 LONG MoveSizeLayer(struct Layer *l, LONG dx, LONG dy, LONG dw, LONG dh) (A0, D0, D1, D2, D3)
45 struct Layer *CreateUpfrontHookLayer(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct Hook *hook, struct BitMap *bm2) (A0, A1, D0, D1, D2, D3, D4, A3, A2)
46 struct Layer *CreateBehindHookLayer(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct Hook *hook, struct BitMap *bm2) (A0, A1, D0, D1, D2, D3, D4, A3, A2)
47 struct Hook *InstallLayerHook(struct Layer *layer, struct Hook *hook) (A0, A1)
48 .version 39
49 struct Hook *InstallLayerInfoHook(struct Layer_Info *li, struct Hook *hook) (A0, A1)
50 void SortLayerCR(struct Layer *layer, LONG dx, LONG dy) (A0, D0, D1)
51 void DoHookClipRects(struct Hook *hook, struct RastPort *rport, struct Rectangle *rect) (A0, A1, A2)
52 .version 45
53 struct Region *ChangeLayerShape(struct Layer *l, struct Region *newshape, struct Hook *callback) (A0, A1, A2)
54 ULONG ScaleLayer(struct Layer *l, struct TagItem *taglist) (A0, A1)
55 .version 50
56 struct Layer *CreateUpfrontLayerTagList(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct TagItem *tagList) (A0, A1, D0, D1, D2, D3, D4, A2)
57 struct Layer *CreateBehindLayerTagList(struct Layer_Info *li, struct BitMap *bm, LONG x0, LONG y0, LONG x1, LONG y1, LONG flags, struct TagItem *tagList) (A0, A1, D0, D1, D2, D3, D4, A2)
58 LONG ChangeLayerVisibility(struct Layer *l, int visible) (A0, D0)
59 .skip 1 # MorphOS: WhichLayerBehindLayer(l,x,y)(a0,d0/d1)
60 #.version 52 # We don't have V52 functions except IsLayerVisible(), so for now we are v50
61 LONG IsLayerVisible(struct Layer *l) (A0)
62 BOOL IsLayerHiddenBySibling(struct Layer *l, BOOL check_invisible) (A0, D0)
63 void CollectPixelsLayer(struct Layer *l, struct Region *r, struct Hook *callback) (A0, A1, A2)
64 # MorphOS V52 functions follow:
65 # private6()()
66 # RenderLayerInfoTagList(li,taglist) (A0, A1)
67 # LockLayerUpdates(l) (A0)
68 # UnlockLayerUpdates(l) (A0)
69 # IsVisibleInLayer(l,x0,y0,x1,y1) (A0, D0 D1, D2, D3)
70 # IsLayerHitable(l) (A0)
71 ##end functionlist