Phoc.Output.damage_from_layer_surface

### Method

# Phoc Outputdamage_from_layer_surface

#### Declaration [src]

    void
    phoc_output_damage_from_layer_surface (
      PhocOutput* self,
      PhocLayerSurface* layer_surface,
      gboolean whole
    )

#### Description [src]

Adds a `PhocLayerSurface`‘s damage to the damaged area of `self`. If `whole` is `TRUE` the whole surface area is explicitly damaged. Otherwise only already present damage is collected.

#### Parameters

`layer_surface`

  Type: `PhocLayerSurface`

  The layer surface providing the damage.

  The data is owned by the caller of the method.

`whole`

  Type: `gboolean`

  Whether to damage the whole surface.