Phoc.Desktop.layer_surface_at

### Method

# Phoc Desktoplayer_surface_at

#### Declaration [src]

    PhocLayerSurface*
    phoc_desktop_layer_surface_at (
      PhocDesktop* self,
      double lx,
      double ly,
      double* sx,
      double* sy
    )

#### Description [src]

Looks up the surface at `lx,ly` and returns the topmost surface at that position if it is a layersurface, `NULL` otherwise.

#### Parameters

`lx`

  Type: `double`

  X coordinate the layer surface to look up at in layout coordinates.

`ly`

  Type: `double`

  Y coordinate the layer surface to look up at in layout coordinates.

`sx`

  Type: `double*`

  Surface relative x coordinate.

  The argument will be set by the function.
  The argument can be set to `NULL` by the method.

`sy`

  Type: `double*`

  Surface relative y coordinate.

  The argument will be set by the function.
  The argument can be set to `NULL` by the method.

#### Return value

Type: `PhocLayerSurface`

The `PhocLayerSurface`.

The returned data is owned by the instance.
The return value can be `NULL`.