2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <proto/graphics.h>
10 #include <proto/layers.h>
11 #include <graphics/clip.h>
12 #include <graphics/layers.h>
13 #include "layers_intern.h"
16 #include <aros/debug.h>
19 /*****************************************************************************
23 AROS_LH3(struct Layer
*, WhichLayer
,
26 AROS_LHA(struct Layer_Info
*, li
, A0
),
27 AROS_LHA(LONG
, x
, D0
),
28 AROS_LHA(LONG
, y
, D1
),
31 struct LayersBase
*, LayersBase
, 22, Layers
)
34 Determines in which layer the point (x,y) is to be found.
35 Starts with the frontmost layer.
38 li - pointer to Layers_Info structure
45 The function does not lock Layer_Info structure. It is
46 the responsibility of the caller to issue the lock via
47 LockLayerInfo()/UnlockLayerInfo()
58 27-11-96 digulla automatically created from
59 layers_lib.fd and clib/layers_protos.h
61 *****************************************************************************/
67 D(bug("WhichLayer(li @ $%lx, x %ld, y %ld)\n", li
, x
, y
));
72 l
!= NULL
&& !(IS_VISIBLE(l
) && IsPointInRegion(l
->visibleshape
, x
, y
));