| Flutter Impeller |

Public Attributes | List of all members
impeller::ClipCoverage Struct Reference

`#include <clip_contents.h>`

## Public Attributes
bool | is_difference_or_non_square = false
std::optional< Rect > | coverage = std::nullopt
| This coverage is the outer coverage of the clip. More...

## Detailed Description

Definition at line 14 of file clip_contents.h.

## Member Data Documentation

## ◆ coverage

std::optional<Rect> impeller::ClipCoverage::coverage = std::nullopt

This coverage is the outer coverage of the clip.

For example, if the clip is a circular clip, this is the rectangle that contains the circle and not the rectangle that is contained within the circle. This means that we cannot use the coverage alone to determine if a clip can be culled, and instead also use the somewhat hacky "is_difference_or_non_square" field.

Definition at line 26 of file clip_contents.h.

Referenced by impeller::ClipContents::GetClipCoverage(), and impeller::EntityPassClipStack::RecordClip().

## ◆ is_difference_or_non_square

bool impeller::ClipCoverage::is_difference_or_non_square = false

Definition at line 17 of file clip_contents.h.

Referenced by impeller::EntityPassClipStack::RecordClip().

The documentation for this struct was generated from the following file:

- impeller/entity/contents/clip_contents.h