Phoc.Output.surface_for_each_surface

### Method

# Phoc Outputsurface_for_each_surface

#### Declaration [src]

    void
    phoc_output_surface_for_each_surface (
      PhocOutput* self,
      wlr_surface* surface,
      double ox,
      double oy,
      PhocSurfaceIterator iterator,
      void* user_data
    )

#### Description [src]

Iterate over surfaces in a `wlr_surface`s surface tree.

#### Parameters

`surface`

  Type: `wlr_surface*`

  The wlr_surface.

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

`ox`

  Type: `double`

  X position in output coordinates.

`oy`

  Type: `double`

  Y position in output coordinates.

`iterator`

  Type: `PhocSurfaceIterator`

  The callback invoked on each iteration.

`user_data`

  Type: `void*`

  Callback user data.

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