Phoc.Desktop.wlr_surface_at

### Method

# Phoc Desktopwlr_surface_at

#### Declaration [src]

    wlr_surface*
    phoc_desktop_wlr_surface_at (
      PhocDesktop* desktop,
      double lx,
      double ly,
      double* sx,
      double* sy,
      PhocView** view
    )

#### Description [src]

Looks up the surface at `lx,ly` and returns the topmost surface at that position (if any) and the surface-local coordinates of `sx,sy` on that surface.

#### Parameters

`lx`

  Type: `double`

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

`ly`

  Type: `double`

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

`sx`

  Type: `double*`

  Surface-local x coordinate.

  The argument will be set by the function.

`sy`

  Type: `double*`

  Surface-local y coordinate.

  The argument will be set by the function.

`view`

  Type: `PhocView`

  The corresponding `PhocView`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the method takes ownership of the returned data, and is responsible for freeing it.

#### Return value

Type: `wlr_surface*`

The `struct wlr_surface`.

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