Unit 'layers' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

WhichLayer

Which Layer is this point in?

Declaration

Source position: layers.pas line 172

function WhichLayer(

  Li: PLayer_Info;

  X: LongInt;

  Y: LongInt

):PLayer;

Arguments

Li

  

pointer to LayerInfo structure

X

  

x coordinate in the BitMap

Y

  

y coordinate in the BitMap

Function result

pointer to the topmost layer that this point is in nil if this point is not in a layer

Description

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 nil if there is no layer at this point.


Documentation generated on: 2021-07-30