Docs » Autodocs » layers.library » WhichLayer
WhichLayer -- Which Layer is this point in?
layer = WhichLayer( li, x, y ) d0 a0 d0 d1 struct Layer *WhichLayer(struct Layer_Info*, WORD, WORD);
Starting at the topmost layer check to see if this point (x,y) occurs in this layer. If it does return the pointer to this layer. Return NULL if there is no layer at this point.
li = pointer to LayerInfo structure (x,y) = coordinate in the BitMap
layer - pointer to the topmost layer that this point is in NULL if this point is not in a layer
<graphics/layers.h>
|