Phoc.View.from_wlr_surface
Description: Reference for Phoc.View.from_wlr_surface

### Function

# Phoc Viewfrom_wlr_surface

#### Declaration [src]

    PhocView*
    phoc_view_from_wlr_surface (
      wlr_surface* wlr_surface
    )

#### Description [src]

Given a `wlr_surface` return the corresponding `PhocView`.

#### Parameters

`wlr_surface`

  Type: `wlr_surface*`

  The wlr_surface.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `PhocView`

The corresponding view.

The data is owned by the called function.